![Texas Instruments CC2533 Скачать руководство пользователя страница 185](http://html.mh-extra.com/html/texas-instruments/cc2533/cc2533_user-manual_1094592185.webp)
Operation
Table 20-3. Master Transmitter Mode (continued)
Status
Application Software Response
Code
To
I2CCFG
Status of the
(Value of
Next Action Taken by I
2
C Hardware
I
2
C
To/From
I2CDATA
I2CSTAT.
STA
STO
SI
AA
STAC
)
0x30
Data byte in
Data byte
0
0
0
X
Data byte is transmitted; ACK is received.
I2CDATA
has
or
1
0
0
X
Repeated START is transmitted.
been
no action
transmitted.
or
0
1
0
X
STOP condition is transmitted; STO flag is reset.
no action
or
1
1
0
X
STOP condition followed by a START condition is
no action
transmitted; STO flag is reset.
0x38
Arbitration lost
No action
0
0
0
X
I
2
C bus is released; not-addressed slave is entered.
in SLA+R/W or
or
1
0
0
X
A START condition is transmitted when the bus
data bytes
no action
becomes free.
20.1.4.2.2 I
2
C Master Receiver Mode
To enable master receive mode, set the
I2CCFG.ENS1
and the
I2CCFG.STA
bits. The I
2
C module then
waits until the I
2
C bus is free. When the I
2
C bus is free, it generates a START condition, sends the slave
address, and transfers a receive direction bit. It then generates an interrupt, and the first byte is received.
provides more details regarding the master receiver operation.
Table 20-4. Master Receiver Mode
Status
Application Software Response
Code
To
I2CCFG
Status of the
(Value of
Next Action Taken by I
2
C Hardware
I2C
To/From
I2CDATA
I2CSTAT.
STA
STO
SI
AA
STAC
)
0x08
A START
Load SLA+R
X
0
0
X
SLA+R is transmitted.
condition has
ACK is received.
been
transmitted.
0x10
A repeated
Load SLA+R
X
0
0
X
As above
START
or
X
0
0
X
SLA+W is transmitted; I
2
C is switched to MST/TRX
condition has
load SLA+W
mode.
been
transmitted.
0x38
Arbitration lost
No action
0
0
0
X
I
2
C bus is released; I
2
C enters slave mode.
in not-ACK bit.
or
1
0
0
X
A start condition is transmitted when the bus
no action
becomes free.
0x40
SLA+R has
No action
0
0
0
0
Data byte is received; not-ACK is returned.
been
or
0
0
0
1
Data byte is received; ACK is returned.
transmitted;
no action
ACK has been
received.
0x48
SLA+R has
No action
1
0
0
X
Repeated START condition is transmitted.
been
or
0
1
0
X
STOP condition is transmitted; STO flag is reset.
transmitted;
no action
not-ACK has
or
1
1
0
X
STOP condition followed by a START condition is
been received.
no action
transmitted; STO flag is reset.
0x50
Data byte has
Read data byte
0
0
0
0
Data byte is received; not-ACK is returned.
been received;
or
0
0
0
1
Data byte is received; ACK is returned
ACK has been
read data byte
returned.
185
SWRU191C
–
April 2009
–
Revised January 2012
I
2
C
Copyright
©
2009
–
2012, Texas Instruments Incorporated