|
HD64F2168 Datasheet, PDF (380/874 Pages) Renesas Technology Corp – Renesas 16-Bit Single-Chip Microcomputer | |||
|
◁ |
13.3 Register Descriptions
The WDT has the following registers. To prevent accidental overwriting, TCSR and TCNT have
to be written to in a method different from normal registers. For details, see section 13.6.1, Notes
on Register Access. For details on the system control register, see section 3.2.2, System Control
Register (SYSCR).
⢠Timer counter (TCNT)
⢠Timer control/status register (TCSR)
13.3.1 Timer Counter (TCNT)
TCNT is an 8-bit readable/writable up-counter.
TCNT is initialized to H'00 when the TME bit in timer control/status register (TCSR) is cleared
to 0.
13.3.2 Timer Control/Status Register (TCSR)
TCSR selects the clock source to be input to TCNT, and the timer mode.
⢠TCSR_0
Bit Bit Name Initial Value R/W Description
7
OVF
0
R/(W)* Overflow Flag
Indicates that TCNT has overflowed (changes from H'FF
to H'00).
[Setting conditions]
⢠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.
[Clearing conditions]
⢠When TCSR is read when OVF = 1, then 0 is written
to OVF
6
WT/IT 0
⢠When 0 is written to TME
R/W Timer Mode Select
Selects whether the WDT is used as a watchdog timer or
interval timer.
0: Interval timer mode
1: Watchdog timer mode
Rev. 3.00, 03/04, page 340 of 830
|
▷ |