Datasheet
Appendix B Internal I/O Registers
Rev. 4.00 Jun 06, 2006 page 931 of 1004
REJ09B0301-0400
TCSR0—Timer Control/Status Register 0 H'FFA8 WDT0
7
OVF
0
R/(W)
*
6
WT/IT
0
R/W
5
TME
0
R/W
4
RSTS
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
TCSR0
Clock select 2 to 0
CKS2
0
1
φ/2
φ/64
φ/128
φ/512
φ/2048
φ/8192
φ/32768
φ/131072
CKS1
0
1
0
1
CKS0
0
1
0
1
0
1
0
1
Note: * Only 0 can be written, to clear the flag.
Clock
Reset or NMI
0 NMI interrupt requested
1 Internal reset requested
Timer enable
0 TCNT is initialized to H'00 and halted
1 TCNT counts
Reserved bit
Timer mode select
0
Interval timer: Sends the CPU an interval timer interrupt
request (WOVI) when TCNT overflows
1
Watchdog timer: Generates a reset or NMI interrupt when
TCNT overflows
Overflow flag
0 [Clearing conditions]
•
Write 0 in the TME bit
•
Read TCSR when OVF = 1, then write 0 in OVFA
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.)