In MCT8329A, EEPROM write procedure is as follows,
- Write register 0x000080 (ISD_CONFIG) with ISD configuration like resync enable, reverse drive enable, stationary detect threshold etc.,
- Write register 0x000082 (MOTOR_STARTUP1) with motor start-up configuration like start-up method, first cycle frequency, IPD parameters, align parameters etc.,
- Write register 0x000084 (MOTOR_STARTUP2) with motor start-up configuration like open loop acceleration, minimum duty cycle etc.,
- Write register 0x000086 (CLOSED_LOOP1) with motor control configuration like closed loop acceleration, PWM frequency, PWM modulation etc.,
- Write register 0x000088 (CLOSED_LOOP2) with motor control configuration like FG signal parameters, motor stop options etc.,
- Write register 0x00008A (CLOSED_LOOP3) with motor control configuration like dynamic degauss parameters, BEMF thresholds, duty cycle thresholds etc.,
- Write register 0x00008C (CLOSED_LOOP4) with motor control configuration like fast deceleration parameters including fast deceleration duty threshold, window, current limits etc.,
- Write register 0x00008E (CONST_SPEED) with motor control configuration like speed loop parameters including closed loop mode, saturation limits, Kp, Ki etc.,
- Write register 0x000090 (CONST_PWR) with motor control configuration like input power regulation parameters including maximum power, constant power mode, power level hysteresis, maximum speed etc.,
- Write register 0x000092 (FAULT_CONFIG1) with fault control configuration like CBC, lock current limits and actions, retry times etc.,
- Write register 0x000094 (FAULT_CONFIG2) with fault control configuration like OV, UV limits and actions, abnormal speed level, motor lock setting etc.,
- Write registers 0x000096 and 0x000098 (150_DEG_TWO_PH_PROFILE, 150_DEG_THREE_PH_PROFILE) with PWM duty cycle configurations for 150o modulation.
- Write registers 0x00009A, 0x00009C, 0x00009E, 0x0000A0, 0x0000A2, 0x0000A4 (REF_PROFILES1 to REF_PROFILES6) with input profile configuration like profile type, duty cycle, clamp level etc.
- Write registers 0x0000A6 and 0x0000A8 (PIN_CONFIG1 and PIN_CONFIG2) with pin configuration for DIR, BRAKE, DACOUT etc.,
- Write register 0x0000AA (DEVICE_CONFIG) with device configuration like device mode, external clock enable, clock source, input PWM frequency range etc.,
- Write registers 0x0000AC and 0x0000AE (GD_CONFIG1 and GD_CONFIG2) with gate driver configuration like CSA configurations, gate driver protections etc.
- Write 0x8A500000 into register 0x0000E6 to write the shadow register (0x000080-0x0000AE) values into the EEPROM.
- Wait for 300ms for the EEPROM write operation to complete
Steps 1-16 can be selectively executed based on registers/parameters that need to be modified. After all shadow registers have been updated with the required values, step 17 should be executed to copy the contents of the shadow registers into the EEPROM.
Note: EEPROM reserved bit field defaults settings must not be changed. To avoid changing the content of reserved bits, TI recommends using “read-modify-write” sequence to perform EEPROM write operation.