Master Receiver Mode - Texas Instruments CC253x User Manual

System-on-chip for 2.4ghz
Table of Contents

Advertisement

Operation
Status
Code
Status of the
2
(Value of
I
C
I2CSTAT)
0x30
Data byte in
I2CDATA has
been
transmitted.
0x38
Arbitration lost
in SLA+R/W or
data bytes
2
20.1.4.2.2 I
C Master Receiver Mode
To enable master receive mode, set the I2CCFG.ENS1 and the I2CCFG.STA bits. The I
2
waits until the I
C bus is free. When the I
address, and transfers a receive direction bit. It then generates an interrupt, and the first byte is received.
Table 20-4
provides more details regarding the master receiver operation.
Status
Code
Status of the
(Value of
I2C
I2CSTAT)
0x08
A START
condition has
been
transmitted.
0x10
A repeated
START
condition has
been
transmitted.
0x38
Arbitration lost
in not-ACK bit.
0x40
SLA+R has
been
transmitted;
ACK has been
received.
0x48
SLA+R has
been
transmitted;
not-ACK has
been received.
0x50
Data byte has
been received;
ACK has been
returned.
0x58
Data byte has
been received;
not-ACK has
been returned.
176
2
I
C
Table 20-3. Master Transmitter Mode (continued)
Application Software Response
To I2CCFG
To or From
I2CDATA
STA
STO
Data byte
0
0
or
1
0
no action
or
0
1
no action
or
1
1
no action
No action
0
0
or
1
0
no action
2
C bus is free, it generates a START condition, sends the slave
Table 20-4. Master Receiver Mode
Application Software Response
To I2CCFG
To or From
I2CDATA
STA
STO
Load SLA+R
X
0
Load SLA+R
X
0
or
X
0
load SLA+W
No action
0
0
or
1
0
no action
No action
0
0
or
0
0
no action
No action
1
0
or
0
1
no action
or
1
1
no action
Read data byte
0
0
or
0
0
read data byte
Read data byte
1
0
or
0
1
read data byte
or
1
1
read data byte
Copyright © 2009–2014, Texas Instruments Incorporated
Next Action Taken by I
SI
AA
0
X
Data byte is transmitted; ACK is received.
0
X
Repeated START is transmitted.
0
X
STOP condition is transmitted; STO flag is reset.
0
X
STOP condition followed by a START condition is
transmitted; STO flag is reset.
2
0
X
I
C bus is released; not-addressed slave is entered.
0
X
A START condition is transmitted when the bus
becomes free.
Next Action Taken by I
SI
AA
0
X
SLA+R is transmitted.
ACK is received.
0
X
As above
0
X
SLA+W is transmitted; I
mode.
2
0
X
I
C bus is released; I
0
X
A start condition is transmitted when the bus
becomes free.
0
0
Data byte is received; not-ACK is returned.
0
1
Data byte is received; ACK is returned.
0
X
Repeated START condition is transmitted.
0
X
STOP condition is transmitted; STO flag is reset.
0
X
STOP condition followed by a START condition is
transmitted; STO flag is reset.
0
0
Data byte is received; not-ACK is returned.
0
1
Data byte is received; ACK is returned
0
X
Repeated START condition is transmitted.
0
X
STOP condition is transmitted; STO flag is reset.
0
X
STOP condition followed by a START condition is
transmitted; STO flag is reset.
SWRU191F – April 2009 – Revised April 2014
www.ti.com
2
C Hardware
2
C module then
2
C Hardware
2
C is switched to MST-TRX
2
C enters slave mode.
Submit Documentation Feedback

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents