h8s-2138 Renesas Electronics Corporation., h8s-2138 Datasheet - Page 434

no-image

h8s-2138

Manufacturer Part Number
h8s-2138
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 14 Watchdog Timer (WDT)
Bit 3—External Reset (XRST): Indicates the reset source. When the watchdog timer is used, a
reset can be generated by watchdog timer overflow in addition to external reset input. XRST is a
read-only bit. It is set to 1 by an external reset, and when the RST/NMI bit is 1, is cleared to 0 by
an internal reset due to watchdog timer overflow.
Bit 3
XRST
0
1
14.2.4
The watchdog timer’s TCNT and TCSR registers differ from other registers in being more difficult
to write to. The procedures for writing to and reading these registers are given below.
Writing to TCNT and TCSR (Example of WDT0): These registers must be written to by a word
transfer instruction. They cannot be written to with byte transfer instructions.
Figure 14.2 shows the format of data written to TCNT and TCSR. TCNT and TCSR both have the
same write address. For a write to TCNT, the upper byte of the written word must contain H'5A
and the lower byte must contain the write data. For a write to TCSR, the upper byte of the written
word must contain H'A5 and the lower byte must contain the write data. This transfers the write
data from the lower byte to TCNT or TCSR.
Reading TCNT and TCSR (Example of WDT0): These registers are read in the same way as
other registers. The read addresses are H'FFA8 for TCSR, and H'FFA9 for TCNT.
Rev. 4.00 Jun 06, 2006 page 380 of 1004
REJ09B0301-0400
TCNT write
TCSR write
Figure 14.2 Format of Data Written to TCNT and TCSR (Example of WDT0)
Notes on Register Access
Address: H'FFA8
Address: H'FFA8
Description
Reset is generated by watchdog timer overflow
Reset is generated by external reset input
15
15
H'5A
H'A5
8 7
8 7
Write data
Write data
(Initial value)
0
0

Related parts for h8s-2138