Hitachi H8/3062 Hardware Manual page 370

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

Advertisement

Writing to RSTCSR: RSTCSR must be written by a word transfer instruction. It cannot be
written by byte transfer instructions. Figure 11.3 shows the format of data written to RSTCSR. To
write 0 in the WRST bit, the write data must have H'A5 in the upper byte and H'00 in the lower
byte. The data (H'00) in the lower byte is written to RSTCSR, clearing the WRST bit to 0. To
write to the RSTOE bit, the upper byte must contain H'5A and the lower byte must contain the
write data. Writing this word transfers a write data value into the RSTOE bit.
Writing 0 in WRST bit
Address
Writing to RSTOE bit
Address
Note:
*
Lower 20 bits of the address in advanced mode.
Reading TCNT, TCSR, and RSTCSR: For reads of TCNT, TCSR, and RSTCSR, address
H'FFF8C is assigned to TCSR, address H'FFF8D to TCNT, and address H'FFF8F to RSTCSR.
These registers are therefore read like other registers. Byte transfer instructions can be used for
reading. Table 11.3 lists the read addresses of TCNT, TCSR, and RSTCSR.
Table 11.3 Read Addresses of TCNT, TCSR, and RSTCSR
Address*
H'FFF8C
H'FFF8D
H'FFF8F
Note: * Lower 20 bits of the address in advanced mode.
352
15
H'FFF8E*
15
H'FFF8E*
Figure 11.3 Format of Data Written to RSTCSR
Register
TCSR
TCNT
RSTCSR
8 7
H'A5
8 7
H'5A
0
H'00
0
Write data

Advertisement

Table of Contents
loading

Table of Contents