HD643303x Hitachi, HD643303x Datasheet - Page 319

no-image

HD643303x

Manufacturer Part Number
HD643303x
Description
Hitachi Microcomputer
Manufacturer
Hitachi
Datasheet
Writing to RSTCSR: RSTCSR must be written by a word transfer instruction. It cannot be
written by byte transfer instructions. Figure 10-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 H'00 in the lower byte clears the WRST bit in RSTCSR 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.
Reading TCNT, TCSR, and RSTCSR: These registers are read like other registers. Byte access
instructions can be used. The read addresses are H'FFA8 for TCSR, H'FFA9 for TCNT, and
H'FFAB for RSTCSR, as listed in table 10-3.
Table 10-3 Read Addresses of TCNT, TCSR, and RSTCSR
Address*
H'FFA8
H'FFA9
H'FFAB
Note: * Lower 16 bits of the address.
Writing 0 in WRST bit
Writing to RSTOE bit
Note:
Address
Address
*
Lower 16 bits of the address.
Figure 10-3 Format of Data Written to RSTCSR
H'FFAA*
H'FFAA*
Register
TCSR
TCNT
RSTCSR
15
15
H'A5
H'5A
304
8 7
8 7
Write data
Write data
0
0

Related parts for HD643303x