EasyManua.ls Logo

Cypress PSoC 4000 Series - EZ Slave Mode Transfer Example

Cypress PSoC 4000 Series
178 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
96 PSoC 4000 Family: PSoC 4 Architecture TRM, Document No. 001-89309 Rev. *D
Inter-Integrated Circuit (I2C)
15.2.11 EZ Slave Mode Transfer Example
The EZ Slave mode transmits or receives data.
15.2.11.1 EZ Slave Transmit
Figure 15-9. EZI2C Slave Mode Write Operation Flow Chart
Transmitting one byte
data complete?
EZ buffer
empty?
Yes
Yes
E
Byte ACK’ed
or NACK’ed?
ACK
No
E
Error
Begin
No
NACK
Data transfer
complete?
No
Yes
Select transmit
mode
E
Report and
handle error
Begin
Disable Fixed
Function I2C block
Select Slave
mode
Enable
TX FIFO
Enable Fixed
Function I2C block
Select EZ
mode
Receiving
one byte
slave address
complete?
No
(stretch)
E
Address ACK’ed or
NACK’ed?
Error
Yes
NACK
START detected
Wake up
Wait for START
End

Table of Contents

Related product manuals