SLAAEM1 June   2024 MSPM0C1104 , MSPM0C1104 , MSPM0L1105 , MSPM0L1105

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2System Architecture Introduction
  6. 3Hardware Design Introduction
    1. 3.1 Power Supply Circuit
    2. 3.2 Drive Circuit
    3. 3.3 Sampling Circuit
    4. 3.4 Main Controller Circuit
    5. 3.5 Control System Introduction
      1. 3.5.1 Drive Method
      2. 3.5.2 Control Method
  7. 4Software Design Introduction
    1. 4.1 Parameters Initialization
    2. 4.2 Direction Setup
    3. 4.3 Timer Interrupt
    4. 4.4 Closed Loop Controller
  8. 5Evaluation

System Architecture Introduction

Figure 2-1 shows the system block diagram for the motor driver solution. In addition to the MSPM0C1104 and power loop, the system primarily consists of three components: the power supply circuit, the driver circuit, and the sampling circuit.

 System Block Diagram Figure 2-1 System Block Diagram

The sampling circuit collects the motor's current and velocity information through an encoder and operational amplifier, and then sends them to the MCU. The MCU computes the duty cycle through a PID closed-loop and generates PWM signals based on real-time velocity and current information. The MOSFET driver circuit converts the PWM signal generated by the MCU into a driving signal to control the MOSFET switch. The power supply circuit provides proper power rails to all the components in the system, such as MCU, encoder, driver, OPA and so on. A detailed description of the hardware circuitry and a portion of the software control code will be provided as follows.