Chapter 8
8-bit Timer
VIII - 22 Control Registers
■ Timer 4 Mode Register (TM4MD: 0x0000A1A0) [8-bit Access Register]
..
When the count clock source is set to IOCLK/128, set the TM4IN flag of the external prescaler control
register TMEXPSC8 to “1” and the EXPSCNE flag to “ 1”.
..
bp 76543210
Flag TM4
CNE
TM4
LDE
---TM4
CK2
TM4
CK1
TM4
CK0
At reset 00000000
Access R/W R/W R R R R/W R/W R/W
bp Flag Description Set condition
7 TM4CNE
Timer operation enable 0: Operation disabled
1: Operation enabled
6TM4LDE
Timer initialization 0: Normal operation
1: Initialization
TM4BR value is loaded into TM4BC. Timer output 4 is set to “L” level.
5-3 - - -
2-0
TM4CK2
TM4CK1
TM4CK0
Count clock source selection 000: IOCLK
001: IOCLK/8
010: IOCLK/32
011: Setting prohibited
100: Setting prohibited
101: Timer 5 underflow
110: Timer 6 underflow
111: TM4IO pin input (rising edge), IOCLK/128
When 1/8 IOCLK and 1/32 IOCLK are used, the prescaler control reg-
ister (TM47PSC) should be set.