Chapter 8
8-bit Timer
8-bit Timer Control Registers VIII - 13
Timer 4 Mode Register (TM4MD: 0x03F94)
bp 76543210
Bit name - TM4POP TM4MOD TM4PWM TM4EN - TM4CK1-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.
6TM4POP
Initial polarity of output signal select
0: Timer output Low→High, PWM High→Low
1: Timer output High→Low, PWM Low→High
5 TM4MOD
Pulse width measurement control
0: Normal timer operation
1: Pulse width measurement (P14/P72/P12)
4TM4PWM
Timer 4 operation mode select
0: Normal timer operation
1: PWM operation
3TM4EN
Timer 4 count enable
0: Disabled
1: Enabled
2 - Always read as 0.
1-0 TM4CK1-0
Clock source select
00: HCLK
01: TM4PSC (prescaler output)
10: SCLK
11: TM4IO input