In MCx devices, the EEPROM read
procedure (also shown in Figure 2-1) is as follows,
- Stop driving the motor to place
the device in idle/standby state. In MCF devices, motor can be stopped by
writing 0x8000000 to ALGO_DEBUG1 register located at 0xEC. In MCT devices, motor
can be stopped by writing 0x00008000 to DEVICE_CTRL register located at
0xE8.
- Issue a clear fault command to
clear faults, in case the device encountered a fault during motor stop
operation. In MCF devices, faults can be cleared by writing 0x30000000 to
ALGO_CTRL1 register located at 0xEA. In MCT devices, faults can be cleared by
writing 0x30000000 to ALGO_CTRL1 register located at 0xE6.
- Issue an EEPROM read command by
writing 0x40000000 into ALGO_CTRL1 register (located at 0xEA in MCF and at 0xE6
in MCT devices) to read the EEPROM data into the shadow/RAM registers located
between 0x000080-0x0000AE.
- Wait for 200ms after issuing an
EEPROM read command.
- After 200ms, read the ALGO_CTRL1
register value; a read-back value of 0x00000000 indicates that the EEPROM read
is successful.