
575
16.3
Interface with CPU
Although A/D data register ADDR (ADDRA0–ADDRD0, ADDRA1–ADDRD1) are 16-bit
registers, the bus width within the chip that integrates with the CPU is 8-bits. So, upper and lower
data of the ADDR must be read separately.
To avoid change in data while reading the upper/lower 2 bytes of ADDR, the lower byte data is
read through the temporary register (TEMP). The upper byte data can be read directly.
The procedure for reading data from ADDR is as follows: First, read the upper byte data from
ADDR. At this time, the upper byte data is read directly into the CPU and the lower byte data is
transferred to TEMP of the mid-speed A/D converter. Next, read the lower byte to read the TEMP
contents into the CPU.
When reading the ADDR in byte size, read the upper byte before the lower byte. Furthermore, it is
possible to read only the upper byte, however, please note that contents are not guaranteed when
reading only the lower byte. In addition, when reading ADDR in word size, upper byte is
automatically read before the lower byte.
Figure 16.2 shows the data flow when reading from ADDR.
CPU
(H'AA)
ADDRnH
(H'AA)
ADDRnL
(H'40)
TEMP
(H'40)
CPU
(H'40)
ADDRnH
(H'AA)
ADDRnL
(H'40)
TEMP
(H'40)
<Reading the upper byte>
Bus interface
Module data bus
Bus interface
Module data bus
<Reading of the lower byte>
Figure 16.2 ADDR Access Operation (During Reading of (H'AA40))
Содержание SH7041 Series
Страница 2: ......
Страница 6: ......
Страница 38: ...xvi ...
Страница 44: ...6 ...
Страница 46: ...8 ...
Страница 48: ...10 ...
Страница 82: ...44 ...
Страница 114: ...76 ...
Страница 118: ...80 ...
Страница 124: ...86 ...
Страница 170: ...132 ...
Страница 250: ...212 ...
Страница 492: ...454 ...
Страница 506: ...468 ...
Страница 604: ...566 ...
Страница 684: ...646 ...
Страница 706: ...668 ...
Страница 778: ...740 ...
Страница 780: ...742 ...
Страница 818: ...780 ...
Страница 850: ...812 ...
Страница 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...