EasyManua.ls Logo

Cypress PSoC 4000 Series - Master Mode Transfer Examples

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...
92 PSoC 4000 Family: PSoC 4 Architecture TRM, Document No. 001-89309 Rev. *D
Inter-Integrated Circuit (I2C)
15.2.9 Master Mode Transfer Examples
Master mode transmits or receives data.
15.2.9.1 Master Transmit
Figure 15-5. Single Master Mode Write Operation Flow Chart
Begin
Disable Fixed
Function I2C block
Select Master
mode
Enable
TX FIFO
Enable SCB I2C
block
Transmission
of one byte
slave address
complete?
No
(stretch)
E
Address ACK’ed or
NACK’ed?
Error
Yes
NACK
STOP/
RESTART
Set Fixed
Function I2C
block to transmit
mode
Transmission
of one byte
data complete?
Byte ACK’ed or
NACK’ed?
Yes
NACK
STOP/
RESTART
Data transfer
complete?
ACK
No
Send STOP
signal
Yes
Send START
signal
ACK
No
(stretch)
E
Error
STOP
E
Report and
handle error
TX FIFO
Empty?
E
Yes
No
RESTART
End

Table of Contents

Related product manuals