SLLA664 March   2025 MCF8315A , MCF8315C , MCF8315C-Q1 , MCF8315D , MCF8316A , MCF8316C-Q1 , MCF8316D , MCF8329A , MCT8315A , MCT8316A , MCT8316A-Q1 , MCT8329A

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2EEPROM Read and Write Procedure
    1. 2.1 EEPROM Read
    2. 2.2 EEPROM Write
    3. 2.3 CRC
  6. 3Summary
  7. 4References

EEPROM Read

In MCx devices, the EEPROM read procedure (also shown in Figure 2-1) is as follows,

  1. 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.
  2. 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.
  3. 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.
  4. Wait for 200ms after issuing an EEPROM read command.
  5. After 200ms, read the ALGO_CTRL1 register value; a read-back value of 0x00000000 indicates that the EEPROM read is successful.
 EEPROM Read Procedure Figure 2-1 EEPROM Read Procedure