Download Print this page

Hitachi H8S/2633 Hardware Manual page 742

Advertisement

Master transmit mode
SCL
9
(master output)
SDA
A
(slave output)
SDA
(master output)
RDRF
Interrupt request
IRIC
generation
ICDRS
ICDRR
User processing
[1] TRS cleared to 0
Figure 18-8 Example of Master Receive Mode Operation Timing
18.3.4
Slave Receive Operation
In slave receive mode, the master device outputs the transmit clock and transmit data, and the
slave device returns an acknowledge signal. The reception procedure and operations in slave
receive mode are described below.
(1) Set the ICE bit in ICCR to 1. Set the MLS bit in ICMR and the MST and TRS bits in ICCR
according to the operating mode.
(2) When the start condition output by the master device is detected, the BBSY flag in ICCR is set
to 1.
(3) When the slave address matches in the first frame following the start condition, the device
operates as the slave device specified by the master device. If the 8th data bit (R/W) is 0, the
TRS bit in ICCR remains cleared to 0, and slave receive operation is performed.
(4) At the 9th clock pulse of the receive frame, the slave device drives SDA low and returns an
acknowledge signal. At the same time, the IRIC flag in ICCR is set to 1. If the IEIC bit in
ICCR has been set to 1, an interrupt request is sent to the CPU. If the RDRF internal flag has
been cleared to 0, it is set to 1, and the receive operation continues. If the RDRF internal flag
724
Master receive mode
1
2
3
Bit 7
Bit 6
Bit 5
[2] ICDR read
(dummy read)
(MLS = WAIT = ACKB = 0)
4
5
6
7
Bit 4
Bit 3
Bit 2
Bit 1
Data 1
[2] IRIC clearance
8
9
1
Bit 0
Bit 7
Data 2
[3]
A
Interrupt request
generation
Data 1
Data 1
[4] ICDR read
[4] IRIC clearance
2
Bit 6

Advertisement

loading

This manual is also suitable for:

Hd6432633Hd6432631Hd64f2633H8s/2632Hd6432632H8s/2631