CY8C28xxx PSoC Programmable System-on-Chip TRM, Document No. 001-52594 Rev. *G
195
I2Cx_SCR
0,D7h
13.2.64
I2Cx_SCR
I
2
C Status and Control Register
This register is used by both master and slave to control the flow of data bytes and to keep track of the bus state during a
transfer.
Bits in this register are held in reset until one of the enable bits in I2C_CFG is set. Note that the second I
2
C block is available
in the CY8C28x03, CY8C28x23, CY8C28x43, and CY8C28x45 PSoC devices only. For additional information, refer to the
“Register Definitions” on page 497
in the I
2
C chapter
.
7
Bus Error
0
This status bit must be cleared by firmware by writing a ‘0’ to the bit position. It is never
cleared by the hardware.
1
A misplaced Start or Stop condition was detected.
6
Lost Arb
0
This bit is set immediately on lost arbitration; however, it does not cause an interrupt. This
status may be checked after the following Byte Complete interrupt. Any Start detect or a
write to the Start or Restart generate bits (I2C_MSCR register), when operating in Master
mode, will also clear the bit.
1
Lost Arbitration
5
Stop Status
0
This status bit must be cleared by firmware with write of ‘0’ to the bit position. It is never
cleared by the hardware.
1
A Stop condition was detected.
4
ACK
Acknowledge Out. This bit is automatically cleared by hardware on a Byte Complete event.
0
NAK the last received byte.
1
ACK the last received byte
3
Address
0
This status bit must be cleared by firmware with write of ‘0’ to the bit position.
1
The received byte is a slave address.
2
Transmit
Transmit bit is set by firmware to define the direction of the byte transfer. Any Start detect or a write to
the Start or Restart generate bits, when operating in Master mode, will also clear the bit.
0
Receive mode
1
Transmit mode
1
LRB
Last Received Bit. The value of the ninth bit in a Transmit sequence, which is the acknowledge bit
from the receiver. Any Start detect or a write to the Start or Restart generate bits, when operating in
Master mode, will also clear the bit.
0
Last transmitted byte was ACKed by the receiver.
1
Last transmitted byte was NAKed by the receiver.
(continued on next page)
Individual Register Names and Addresses:
0,D7h
I2C0_SCR
: 0,D7h
I2C1_SCR
: 0,E4h
7
6
5
4
3
2
1
0
Access : POR
RC : 0
RC : 0
RC : 0
RW : 0
RC : 0
RW : 0
RC : 0
RC : 0
Bit Name
Bus Error
Lost Arb
Stop Status
ACK
Address
Transmit
LRB
Byte Complete
Bit
Name
Description
Summary of Contents for CY8C28 series
Page 65: ...64 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G RAM Paging ...
Page 125: ...124 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 311: ...310 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G IDAC_CR0 1 FDh ...
Page 317: ...316 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 393: ...392 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...
Page 477: ...476 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G Digital Clocks ...
Page 561: ...560 CY8C28xxx PSoC Programmable System on Chip TRM Document No 001 52594 Rev G ...