In
MCT8316A-Q1, 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 fast start-up and dynamic
degauss parameters including 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 and
0x00009C (TRAP_CONFIG1 and TRAP_CONFIG2) with algorithm parameters like ISD BEMF
threshold, blanking time, AVS current limits etc.,
- Write registers 0x0000A4 and
0x0000A6 (PIN_CONFIG1 and PIN_CONFIG2) with pin configuration for DIR, BRAKE,
DACOUT1 and DACOUT2, SOX, external watchdog etc.,
- Write register 0x0000A8
(DEVICE_CONFIG) with device configuration like device mode, external clock
enable, clock source, speed input PWM frequency range etc.,
- Write registers 0x0000AC and
0x0000AE (GD_CONFIG1 and GD_CONFIG2) with gate driver configuration like slew
rate, CSA gain, OCP level, mode, OVP enable etc.,
- Write 0x80000000 into register
0x0000E6 to write the shadow register (0x000080-0x0000AE) values into the
EEPROM.
- Wait for 100ms 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.