Rev. 1.00, 09/03, page 423 of 704
15.5 Usage
Notes
15.5.1
Notes on Register Access
TCNT and TCSR differ from other registers in being more difficult to write to. The procedures for
writing to and reading from these registers are given below.
(1) Writing to TCNT and TCSR
These registers must be written to by a word transfer instruction. They cannot be written to by a
byte transfer instruction.
TCNT and TCSR both have the same write address. Therefore, satisfy the relative condition
shown in figure 15.6 to write to TCNT or TCSR. To write to TCNT, the upper bytes must contain
the value H
′
5A and the lower bytes must contain the write data before the transfer instruction
execution. To write to TCSR, the upper bytes must contain the value H
′
A5 and the lower bytes
must contain the write data before the transfer instruction execution.
<TCNT write>
<TCSR write>
Address : H'FFBC
Address : H'FFBC
H'5A
Write data
15
8 7
0
H'A5
Write data
15
8 7
0
Figure 15.6 Writing to TCNT and TCSR
(2) Reading from TCNT and TCSR
These registers are read in the same way as other registers. The read address is H'FFBC for TCSR
and H'FFBD for TCNT.
Содержание H8S/2437
Страница 2: ...Rev 1 00 09 03 page ii of xxxviii ...
Страница 8: ...Rev 1 00 09 03 page viii of xxxviii ...
Страница 32: ...Rev 1 00 09 03 page xxxii of xxxviii ...
Страница 38: ...Rev 1 00 09 03 page xxxviii of xxxviii ...
Страница 168: ...Rev 1 00 09 03 page 130 of 704 ...
Страница 336: ...Rev 1 00 09 03 page 298 of 704 ...
Страница 402: ...Rev 1 00 09 03 page 364 of 704 ...
Страница 454: ...Rev 1 00 09 03 page 416 of 704 ...
Страница 512: ...Rev 1 00 09 03 page 474 of 704 ...
Страница 562: ...Rev 1 00 09 03 page 524 of 704 ...
Страница 648: ...Rev 1 00 09 03 page 610 of 704 ...
Страница 672: ...Rev 1 00 09 03 page 634 of 704 ...
Страница 732: ...Rev 1 00 09 03 page 694 of 704 ...
Страница 742: ...Rev 1 00 09 03 page 704 of 704 ...
Страница 745: ......
Страница 746: ...H8S 2437 Group Hardware Manual REJ09B0059 0100Z ...