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

TACH Capture

The TACH signal is generated from the fan module and captured by the timers in the MSPM0. The timer capture the period of the pules and can be read from the register starting at 0x30. Two registers here show one capture value. For example 0x30 is the MSB of FAN1 and 0x31 is the LSB of FAN1. The valid bits for capture values are 16 bits. In this demo code, the capture timer frequency is configured as 8192Hz. Calculate the RPM with the capture value with Equation 1.

Equation 1. R P M = ( 8192 N C A P × 60 N p )

Ncap is the capture value.

Np: generated pulses turn a cycle.

Calcuate Tp as shown in Equation 2

Equation 2. Tp=Ncap/8192