English
Language : 

HD6432345 Datasheet, PDF (417/907 Pages) Hitachi Semiconductor – H8S/2345 F-ZTAT Hardware Manual
11.2.4 Notes on Register Access
The watchdog timer’s TCNT, TCSR, and RSTCSR 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: These registers must be written to by a word transfer instruction.
They cannot be written to with byte instructions.
Figure 11.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.
TCNT write
15
Address: H'FFBC
H'5A
87
0
Write data
TCSR write
15
Address: H'FFBC
H'A5
87
0
Write data
Figure 11.2 Format of Data Written to TCNT and TCSR
402