Datasheet
Appendix B Internal I/O Registers
Rev. 4.00 Sep 27, 2006 page 1073 of 1130
REJ09B0327-0400
TCSR1—Timer Control/Status Register 1 H'FFEA WDT1
7
OVF
0
R/(W)
*
1
6
WT/IT
0
R/W
5
TME
0
R/W
4
PSS
0
R/W
3
RST/NMI
0
R/W
0
CKS0
0
R/W
2
CKS2
0
R/W
1
CKS1
0
R/W
Bit
Initial value
Read/Write
Clock select 2 to 0
PSS
0
1
ClockCKS2
0
1
0
1
CKS1
0
1
0
1
0
1
0
1
CKS0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
Notes: 1.
2.
φ/2
φ/64
φ/128
φ/512
φ/2048
φ/8192
φ/32768
φ/131072
φSUB/2
φSUB/4
φSUB/8
φSUB/16
φSUB/32
φSUB/64
φSUB/128
φSUB/256
Reset or NMI
0
NMI interrupt requested
1 Internal reset requested
Prescaler select
*
2
0 TCNT counts on a ø-based prescaler (PSM) scaled clock
1 TCNT counts on a øSUB-based prescaler (PSS) scaled clock
Timer enable
0
TCNT is initialized to H'00 and halted
1 TCNT counts
Timer mode select
0
Interval timer mode: Interval timer interrupt request (WOVI)
sent to CPU when TCNT overflows
1 Watchdog timer mode: Reset or NMI interrupt request sent
to CPU when TCNT overflows
Only 0 can be written, to clear the flag.
For operation control when a transition is made to power-down mode, see section 25.2.3, Timer Control/Status Register (TCSR).
Note: * When OVF is polled and the interval timer interrupt is disabled,
OVF = 1 must be read at least twice.
Overflow flag
0 [Clearing conditions]
•
Write 0 in the TME bit
•
Read TCSR when OVF = 1
*
, then write 0 in OVF
1 [Setting condition]
When TCNT overflows (changes from H'FF to H'00)
(When internal reset request generation is selected in watchdog
timer mode, OVF is cleared automatically by the internal reset.)