Download Print this page

Hitachi H8S/2633 Hardware Manual page 747

Advertisement

18.3.7
Operation Using the DTC
2
The I
C bus format provides for selection of the slave device and transfer direction by means of
the slave address and the R/W bit, confirmation of reception with the acknowledge bit, indication
of the last frame, and so on. Therefore, continuous data transfer using the DTC must be carried out
in conjunction with CPU processing by means of interrupts.
Table 18-5 shows some examples of processing using the DTC. These examples assume that the
number of transfer data bytes is known in slave mode.
Table 18-5 Examples of Operation Using the DTC
Master Transmit
Item
Mode
Slave address +
Transmission by
R/W bit
DTC (ICDR write)
transmission/
reception
Dummy data
read
Actual data
Transmission by
transmission/
DTC (ICDR write)
reception
Dummy data
(H'FF) write
Last frame
Not necessary
processing
Transfer request
1st time: Clearing
processing after
by CPU
last frame
2nd time: End
processing
condition issuance
by CPU
Setting of
Transmission:
number of DTC
Actual data count
transfer data
+ 1 (+1 equivalent
frames
to slave address +
R/W bits)
Master Receive
Mode
Transmission by
CPU (ICDR write)
Processing by
CPU (ICDR read)
Reception by
DTC (ICDR read)
Reception by
CPU (ICDR read)
Not necessary
Reception: Actual
data count
Slave Transmit
Mode
Reception by
CPU (ICDR read)
Transmission by
DTC (ICDR write)
Processing by
DTC (ICDR write)
Not necessary
Automatic clearing
on detection of end
condition during
transmission of
dummy data (H'FF)
Transmission:
Actual data count
+ 1 (+1 equivalent
to dummy data
(H'FF))
Slave Receive
Mode
Reception by CPU
(ICDR read)
Reception by DTC
(ICDR read)
Reception by CPU
(ICDR read)
Not necessary
Reception: Actual
data count
729

Advertisement

loading

This manual is also suitable for:

Hd6432633Hd6432631Hd64f2633H8s/2632Hd6432632H8s/2631