dsPIC30F Family Reference Manual
DS70068C-page 21-28 © 2004 Microchip Technology Inc.
Figure 21-18: Master Message (10-bit Reception)
1
- Setting the SEN bit starts a Start event.
AKDT
ACKEN
SEN
SCL
SDA
SCL
SDA
I2CTRN
TBF
I2CRCV
RBF
MI2CIF
ACKSTAT
1 2 3 4 5 6 7 8
A9A8
9
A
PEN
RCEN
1 2 3 4 5 6 7 8
D3D2D1D0D7D6D5D4
A7A6A5A4A3A2A1A0
1 2 3 4 5 6 7 8 9
W01 1 1 1
RSEN
A9A8
01 1 1 1 R
1 2 3 4 5 6 7 8 9
1 32
9
A
1 2 3 4 5 6 7 8
D3D2D1D0D7D6D5D4
9
N
AA
4 5 6 7 8 9
10
2
- Writing the I2CTRN register starts a master transmission. The data is the first
3
- Writing the I2CTRN register starts a master transmission. The data is the second
4
- Setting the RSEN bit starts a master REStart event.
5
- Writing the I2CTRN register starts a master transmission. The data is a resend
6
- Setting the RCEN bit starts a master reception. On interrupt, the software reads
7
- Setting the ACKEN bit starts an Acknowledge event. ACKDT = 1 to send ACK
.
8
- Setting the RCEN bit starts a master reception.
9
- Setting the ACKEN bit starts an Acknowledge event. ACKDT = 0 to send NACK.
- Setting the PEN bit starts a master Stop event.
byte of the address with the R/W
bit cleared.
byte of the address.
of the first byte with the R/W
bit set.
the I2CRCV register, which clears the RBF flag.
10
(Slave)
(Slave)
(Master)
(Master)
MI2CIF cleared in user software.