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

Software Function and Flow Diagram

MSPM0C1104 configures and controls MCF8315D through I2C interface by changing MCF8315D registers. The APIs of MCF8315D EEPROM data checking and updating, MCF8315D RAM programming, motor speed control, speed feedback through FG pin, VM checking are included in the demo code.

The code starts with MSPM0C1104 initialization, then MCF initialization is done through EEPROM checking and RAM programming, and the motor spin command is sent to MCF8315D after all the initiation is done. The motor speed command is updated in the timer A interrupt. Speed feedback and VM voltage monitor is done in main loop. Software flow diagram is shown in Figure 3-1.

 MSPM0 Software Diagram Figure 3-1 MSPM0 Software Diagram