Notes On Register Access - Hitachi H8/3062 Hardware Manual

Single-chip microcomputer
Hide thumbs Also See for H8/3062:
Table of Contents

Advertisement

Bit 6—Reset Output Enable (RSTOE): Enables or disables external output at the RESO pin of
the reset signal generated if TCNT overflows during watchdog timer operation. Note that there is
no RESO pin in the versions with on-chip flash memory.
Bit 6
RSTOE Description
0
Reset signal is not output externally
1
Reset signal is output externally
Bits 5 to 0—Reserved: These bits cannot be modified and are always read as 1.
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. The procedures for writing and reading these registers are given below.
Writing to TCNT and TCSR: These registers must be written by a word transfer instruction.
They cannot be written by byte instructions. Figure 11.2 shows the format of data written to TCNT
and TCSR. TCNT and TCSR both have the same write address. The write data must be contained
in the lower byte of the written word. The upper byte must contain H'5A (password for TCNT) or
H'A5 (password for TCSR). This transfers the write data from the lower byte to TCNT or TCSR.
TCNT write
Address
TCSR write
Address
Note:
*
Lower 20 bits of the address in advanced mode.
Figure 11.2 Format of Data Written to TCNT and TCSR
15
H'FFF8C *
15
H'FFF8C *
8 7
H'5A
8 7
H'A5
(Initial value)
0
Write data
0
Write data
351

Advertisement

Table of Contents
loading

Table of Contents