SLAAEU3 June   2025 MSPM0C1104

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Four Wire Cooling Fans
  5. 2Cooling FAN Controller with MSPM0 Designs
    1. 2.1 Design with MSPM0C1104 and MSPM0C1106
    2. 2.2 Design with MSPM0H3215 and MSPM0H3216
  6. 3Software Introduction
    1. 3.1 Software Working Flow
    2. 3.2 Function Description
      1. 3.2.1 PWM Output
      2. 3.2.2 TACH Capture
      3. 3.2.3 ADC Sample
      4. 3.2.4 FAN Fault Detection and Overflow Maximum Value
    3. 3.3 I2C Communication Protocol
    4. 3.4 Registers Definition in the Demo
  7. 4Demo Test with Hardware
    1. 4.1 Hardware Setup
    2. 4.2 Software Setup
    3. 4.3 Running Demo Code
  8. 5Summary
  9. 6References

Running Demo Code

  1. Connect the hardware as mentioned in previous sections.
  2. Import the demo codes into CCS.
  3. Open project FAN_Control_host_LP_MSPM0L1306 and comment out #define MSPH3216_6FANs if using MSPM0C1104 as the fan controller in the file fan_control_host.c. Comment the FANs operations code if the user is not connected to a FAN in hardware.
  4. Build project FAN_Control_host_LP_MSPM0L1306 and download the project into LP-MSPM0L1306.
  5. Build project FAN_Controller_MSPM0C1104 or FAN_Controller_MSPM0H3216 depending on which board is used and download the project into the board.
  6. Keep both boards powered up, run the logic analyzer, and press the reset button on LP-MSPM0L1306 to resend the commands, or make the project of FAN_Control_host_LP_MSPM0L1306 start debug mode and start running debug mode. When all the fans stop after running, pause the code and add the temp_c4 to watch the window to obtain the temperature result.
  7. The fans starts running from FAN1 to FAN4/6 in turn and stopped at the same time.
  8. Figure 4-1 shows signals captured with Saleae (The Saleae only has eight channels. Only a few signals were captured). Analyze the signals with I2C commands to verify if the Saleae matches expectations.
 Few Test Results Captured by
          Saleae Figure 4-1 Few Test Results Captured by Saleae