You are here

CE95314 - PSoC® 3, PSoC 4, and PSoC 5LP EZI2C | Cypress Semiconductor

CE95314 - PSoC® 3, PSoC 4, and PSoC 5LP EZI2C

Last Updated: 
Jul 28, 2016


These code examples demonstrate the usage of EZI2C slave and I2C master Components in PSoC 3, PSoC 4, and PSoC 5LP.


These code examples show how two I2C Components – EZI2C slave and I2C master – communicate with each other. Normally, these Components would be on separate devices, but for this example project, they are on the same PSoC chip. An off-chip connection is made between them.

There are two examples:

  • For PSoC 3 and PSoC 5LP, running on a kit with two buttons and a character LCD, such as the Cypress CY8CKIT-030 and CY8CKIT-050 kits.
  • For PSoC 4200, running on the Cypress CY8CKIT-042 kit, which has one button and an RGB LED.

Each I2C Component maintains its own data buffer. Note that an EZI2C buffer can be defined such that only the first N bytes are writeable by the master and the remaining bytes are read-only. This functionality is demonstrated in this example.


Tool: PSoC Creator 3.0 SP2.
Programming Language: C (DP8051 Keil 9.51, ARM GCC 4.7.3, and ARM MDK compilers)
Associated Parts: All PSoC 3, PSoC 4200, and PSoC 5LP parts
Related Hardware: CY8CKIT-030, CY8CKIT-050, CY8CKIT-042, CY8CKIT-001