Hitachi H8S/2338 Series Hardware Manual page 389

Table of Contents

Advertisement

TCNT write
Address: H'FFBC
TCSR write
Address: H'FFBC
Writing to RSTCSR: RSTCSR must be written to by a word transfer instruction to address
H'FFBE. It cannot be written to with byte instructions.
Figure 10-3 shows the format of data written to RSTCSR. The method of writing 0 to the WOVF
bit differs from that for writing to the RSTE bit.
To write 0 to the WOVF bit, the write data must have H'A5 in the upper byte and H'00 in the
lower byte. This clears the WOVF bit to 0, but has no effect on the RSTE bit. To write to the
RSTE bit, the upper byte must contain H'5A and the lower byte must contain the write data. This
writes the value in bit 6 of the lower byte into the RSTE bit, but has no effect on the WOVF bit.
Writing 0 to WOVF bit
Address: H'FFBE
Writing to RSTE bit
Address: H'FFBE
Reading TCNT, TCSR, and RSTCSR: These registers are read in the same way as other
registers. The read addresses are H'FFBC for TCSR, H'FFBD for TCNT, and H'FFBF for
RSTCSR.
378
15
H'5A
15
H'A5
Figure 10-2 Writing to TCNT and TCSR
15
15
Figure 10-3 Writing to RSTCSR
8 7
8 7
8 7
H'A5
8 7
H'5A
0
Write data
0
Write data
0
H'00
0
Write data

Advertisement

Table of Contents
loading

This manual is also suitable for:

H8s/2328 seriesH8s/2318 series

Table of Contents