Chapter 8
8-bit Timer
8-bit Timer Control Registers VIII - 11
Timer 2 Mode Register (TM2MD: 0x03F84)
bp 76543210
Bit name - TM2POP TM2MOD TM2PWM TM2EN - TM2CK1-0
At reset00000000
Access R R/W R/W R/W R/W R R/W R/W
bp Bit name Description
7 - Always read as 0.
6TM2POP
Initial polarity of output signal select
0: Timer output Low→High, PWM High→Low
1: Timer output High→Low, PWM Low→High
5 TM2MOD
Pulse width measurement control
0: Normal timer operation
1: Pulse width measurement (P80/P62)
4TM2PWM
Timer 2 operation mode control
0: Normal timer operation
1: PWM operation
3TM2EN
Timer 2 count enable
0: Disabled
1: Enabled
2 - Always read as 0.
1-0 TM2CK1-0
Clock source select
00: HCLK
01: TM2PSC (prescaler output)
10: SCLK
11: TM2IO input