SLAAEU2 August   2025 MSPM0C1104

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 System Introduction
    2. 1.2 MSPM0C110x Introduction
    3. 1.3 MCF8315D Introduction
  5. 2Hardware Setup
    1. 2.1 LP-MSPM0C1104 Hardware Setup
    2. 2.2 MCF8315PWPEVM Hardware Setup
  6. 3Software Structure
    1. 3.1 Software Function and Flow Diagram
    2. 3.2 Project File Structure
    3. 3.3 Configure and Control MCF8315
      1. 3.3.1 MCF8315D I2C Protocol Description
      2. 3.3.2 CRC Verification and Parity Check
      3. 3.3.3 MCF EEPROM or RAM Program
  7. 4System Test
    1. 4.1 Test Setup
    2. 4.2 System Value Monitor
  8. 5Summary
  9. 6References

MCF EEPROM or RAM Program

MCF8315D integrates EEPROM, which can program the default configurations to support a fast system power-up. The corresponding RAM address is 0x000080-0x0000AE. The fast power-up is practical in battery power supply applications, such as portable fan. This can also support the MCF8315D to operate as a stand-alone once the device has been configured. Due to the write cycle limitations of EEPROM, TI recommends to program the EEPROM only at first power-up. Once the EEPROM is programed, MCUs need to check whether the EEPROM data is correct when the system is powered up again.

If the configuration needs to be changed during MCF8315D run, then change the data in RAM (0x000080-0x0000AE) to make the change effect in real time, without changing the EEPROM data.

EEPROM write procedure:

  • Write all the default configuration data into shadow or RAM register (0x000080-0x0000AE)
  • Write 0x8A500000 into register 0x0000EA to write the shadow or RAM register (0x000080-0x0000AE) values into the EEPROM
  • Wait for 750ms for the EEPROM write operation to complete
  • After 750ms, read 0x0000EA register to make sure this has been reset to 0x0

EEPROM Write procedure:

  • Write 0x40000000 into register 0x0000EA to copy the EEPROM data into the shadow/RAM registers (0x000080-0x0000AE)
  • Wait for 100ms for the EEPROM read operation to complete
  • Read the shadow/RAM register values
Note: MCF8315D allows EEPROM write and read operations only when the motor is not spinning. EEPROM can be written and read using the I2C serial interface but erase cannot be performed using I2C serial interface.