MSPM0 Timer Module Introduction
MSPM0 Timer Module Introduction
Presented by Johnson He
1
MCU level overview
——MSPM0Lxx series Up to 8 CH
PWM
Timer Module
General purpose 16-bit 2CC (4)
TIMG0 TIMG2
I2C
TIMG1 TIMG4
Timer Module
Advanced control 16-bit 4CC (1)
Advanced control 16-bit 2CC (1)
General purpose 16-bit 2CC (2)
Low power 16-bit 2CC(2)
General purpose 32-bit 2CC (1)
TIMA0 TIMG0
TIMA1 TIMG6
I2C TIMG8
TIMG7
TIMG12
Instance Power Domain Counter Resolution Prescaler Repeat Counter CCP Channels External PWM Phase Load Shadow Load Shadow CC Dead band Fault Handler QEI
TIMA0 PD1 16-bit 8-bit 8-bit 4 8 Yes Yes Yes Yes Yes -
TIMA1 PD1 16-bit 8-bit - 2 4 Yes Yes Yes Yes Yes -
TIMG0 PD0 16-bit 8-bit - 2 2 - - - - - -
TIMG1 PD0 16-bit 8-bit - 2 2 - - - - - -
TIMG2 PD0 16-bit 8-bit - 2 2 - - - - - -
TIMG3 PD0 16-bit 8-bit - 2 2 - - - - - -
TIMG4 PD0 16-bit 8-bit - 2 2 - Yes Yes - - -
TIMG5 PD0 16-bit 8-bit - 2 2 - Yes Yes - - -
TIMG6 PD1 16-bit 8-bit - 2 2 - Yes Yes - - -
TIMG7 PD1 16-bit 8-bit - 2 2 - Yes Yes - - -
TIMG8 PD0 16-bit 8-bit - 2 2 - - - - - Yes
TIMG9 PD0 16-bit 8-bit - 2 2 - - - - - Yes
TIMG10 PD1 16-bit 8-bit - 2 2 - - - - - Yes
TIMG11 PD1 16-bit 8-bit - 2 2 - - - - - Yes
TIMG12 PD1 32-bit - - 2 2 - - Yes - - -
TIMG13 PD0 32-bit - - 2 2 - - Yes - - -
Compare/Capture:
• Up to two independent channels for
• Output compare
TIM_CH0
• Input capture TIM_CH0 Compare/Capture
0
• PWM output
• One-shot mode
Signal Signal
• Pipelined compare mode for CC register Input Output
Control Control
Others: Compare/Capture TIM_CH1
TIM_CH1
• Quadrature encoder/Hall interface (TIMG8 – TIMG11) 1
• 32bit Counter(TIMG12-TIMG13)
Compare/Capture:
TIM_CH0
• Up to four independent channels for TIM_CH0 Compare/Capture
0 TIM_CH0N
• Output compare
• Input capture
TIM_CH1
• PWM output TIM_CH1 Compare/Capture
TIM_CH1N
• One-shot mode Signal
1
Signal
• Pipelined compare mode for CC register Input Output
Control Control TIM_CH2
• Complementary PWM output with dead-band TIM_CH2 Compare/Capture
2 TIM_CH2N
Others:
• Fault handling mechanism TIM_CH3 Compare/Capture
TIM_CH3
3 TIM_CH3N
MSPM0G350x datasheet
MSPM0L13xx datasheet
MSPM0Gxx technical reference manual
MSPM0Lxx technical reference manual
7
Timer module quick start
Sysconfig Entrance for Timer Setting – MSPM0L Series Sysconfig Entrance for Timer Setting – MSPM0G Series
Step 2:
Step 2:
Step 1:
Step 1:
8
To find more MSPM0 training series, please visit:
• TI.com.cn
• WeChat (德州仪器公众号)
• Bilibili
• 21IC