SLAAEQ8 February   2025 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1 , MSPM0C1105 , MSPM0C1106 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1518 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3518 , MSPM0G3518-Q1 , MSPM0G3519 , MSPM0G3519-Q1 , MSPM0H3216 , MSPM0L1117 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1303 , MSPM0L1304 , MSPM0L1304-Q1 , MSPM0L1305 , MSPM0L1305-Q1 , MSPM0L1306 , MSPM0L1306-Q1 , MSPM0L1343 , MSPM0L1344 , MSPM0L1345 , MSPM0L1346 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
    1. 1.1 Laser Speckle Reduction
    2. 1.2 MSPM0 Requirements
  5. 2PWM
    1. 2.1 PWM Implementation
    2. 2.2 PWM Test Result
  6. 3PWM and GPIO
    1. 3.1 PWM and GPIO Implementation
    2. 3.2 Interrupt Time Calibration
    3. 3.3 PWM and GPIO Test Result
  7. 4Timer and GPIO
    1. 4.1 Timer and GPIO Implementation
  8. 5Summary
  9. 6References

PWM and GPIO Implementation

In MSPM0 C-series, such as MSPM0C1104, there are only three timers available, Timer A0, Timer G14, and Timer G8. MSPM0 needs another GPIO to output the last channel PWM. Figure 3-1 shows the internal hardware control chain of timers, events, and interrupt of this method.

Between timers, an event is still used as the hardware trigger method to control timers synchronously. A group of GPIO, such as GPIO A, supports one event to subscribe the channel, and one channel to support one GPIO action (set, clear or toggle). The MSPM0 needs additional timer interrupt to clear the GPIO while using an event to set GPIO.

 PWM and GPIO Method Control
          Chain Figure 3-1 PWM and GPIO Method Control Chain