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 Test Result

Figure 2-3 shows the test result of PWM method.

The phase difference can be controlled by adjusting the CC value of each timer:

  • Timer A0 CC1 controls the pd value, which is the phase difference between PWM0 and PWM1.
  • Timer A0 CC2 controls the pd0 value, which is fixed at 180°, phase difference between PWM0+ and PWM0-.
  • Timer G6 CC1 controls the pd1 value, which is fixed at 180°, phase difference between PWM1+ and PWM1-.

The duty cycle can be controlled by adjusting the CC value of each timer's CC0:

  • Timer A0 CC0 and Timer A1 CC0 control the dc0, which is PWM0+ and PWM0-'s duty cycle.
  • Timer G6 CC0 and Timer G7 CC0 control the dc1, which is PWM1+ and PWM1-'s duty cycle.

Also, by changing these timer load value, MSPM0 can output different period control PWM waveform.

 PWM Method Test Result Figure 2-3 PWM Method Test Result