User guide

Arch Meter Corporation PS1000 Ver1.2
PS1000Rev. 1.2 May 2006
43/ 67
www.archmeter.com
9.3 Status Codes
In this section, the appropriate action to be taken for each status code is shown
below.
Master Transmitter Mode
Application software response
to I2CCTLR
Status
code
(I2CS
TAR)
Status of the I2C
bus hardware
to/from
I2CDATR
STA
STO
SI AA
Next action taken by I2C
hardware
08H
START condition has
been transmitted
Load SLA+W x 0 0 0 SLA+W will be transmitted
Load SLA+W x 0 0 0 SLA+W will be transmitted 10H Repeated START
condition has been
transmitted
Load SLA+R x 0 0 0 I2C will be switched to Master
Receiver Mode
Load data byte 0 0 0 0 Data byte will be transmitted
No I2CDATR
action
1 0 0 0
Repeated START condition will
be transmitted
No I2CDATR
action
0 1 0 0 STOP condition will be
transmitted; STO flag will be
reset
18H SLA+W has been
transmitted; ACK has
been received
No I2CDATR
action
1 1 0 0 STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset
Load data byte 0 0 0 0 Data byte will be transmitted
No I2CDATR
action
1 0 0 0
Repeated START condition will
be transmitted
No I2CDATR
action
0 1 0 0 STOP condition will be
transmitted; STO flag will be
reset
20H SLA+W has been
transmitted; NACK
has been received
No I2CDATR
action
1 1 0 0 STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset
Load data byte 0 0 0 0 Data byte will be transmitted;
ACK will be received
No I2CDATR
action
1 0 0 0
Repeated START condition will
be transmitted
No I2CDATR
action
0 1 0 0 STOP condition will be
transmitted; STO flag will be
reset
28H Data byte in
I2CDATR has been
transmitted; ACK has
been received
No I2CDATR
action
1 1 0 0 STOP condition followed by a
START condition will be
transmitted; STO flag will be
reset