CY7C65113C
12.0I2C-compatible Controller
The
The
The
The I2C clock (SCL) is connected to bit 0 of GPIO port 1, and the I2C SDA data is connected to bit 1 GPIO port 1. The port selection is determined by settings in the I2C Port Configuration Register (Section 11.0). Once the
All control of the I2C clock (SCL) and data (SDA) lines is performed by the
I2C Data |
|
|
|
|
|
|
| Address 0x29 | |
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
| 0 |
|
|
|
|
|
|
|
|
|
|
Bit Name | I2C Data 7 | I2C Data 6 | I2C Data 5 | I2C Data 4 | I2C Data 3 | I2C Data 2 | I2C Data 1 |
| I2C Data 0 |
Read/Write | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
| R/W |
|
|
|
|
|
|
|
|
|
|
Reset | X | X | X | X | X | X | X |
| X |
|
|
|
|
|
|
|
|
|
|
|
|
| Figure |
|
|
|
|
Bits [7..0]: I2C Data
Contains the
I2C Status and Control |
|
|
|
|
|
| Address 0x28 | |
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|
|
|
|
|
|
|
|
|
Bit Name | MSTR Mode | Continue/Bu | Xmit Mode | ACK | Addr | ARB | Received | I2C Enable |
|
| sy |
|
|
| Lost/Restart | Stop |
|
Read/Write | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
|
|
|
|
|
|
|
|
|
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Figure 12-2. I2C Status and Control Register
The I2C Status and Control register bits are defined in Table
Table
| Bit | Name | Description |
|
| 0 | I2C Enable | When set to ‘1’, the | |
|
|
| normally. |
|
| 1 | Received Stop | Reads 1 only in slave receive mode, when I2C Stop bit detected (unless firmware did not ACK the | |
|
|
| last transaction). |
|
| 2 | ARB Lost/Restart | Reads 1 to indicate master has lost arbitration. Reads 0 otherwise. |
|
|
|
| Write to 1 in master mode to perform a restart sequence (also set Continue bit). |
|
| 3 | Addr | Reads 1 during first byte after start/restart in slave mode, or if master loses arbitration. | |
|
|
| Reads 0 otherwise. This bit should always be written as 0. |
|
| 4 | ACK | In receive mode, write 1 to generate ACK, 0 for no ACK. |
|
|
|
| In transmit mode, reads 1 if ACK was received, 0 if no ACK received. |
|
| 5 | Xmit Mode | Write to 1 for transmit mode, 0 for receive mode. |
|
|
|
|
|
|
Document #: | Page 21 of 49 |
[+] Feedback