Free

PSoC4 I2C Communication

This example project demonstrates I2C communication between I2C master (SCB mode) and I2C slave (SCB mode).
PSoC4-I2CCommunication1
Google Plus
Linked in
Pin Interest
Pay to download
Free

9,974 Views / 403 Downloads

ToolBox

9,974 Views

0 Comments

Print this page

Add Favorites

This example project demonstrates I2C communication between I2C master (SCB mode) and I2C slave (SCB mode).

Development Kit Configuration:

  1. This project is written for a 2X16 LCD display as there is one available in the Cypress kit CY8CKIT-001.
  2. Build the project and program the hex file on to PSoC 4 device using MiniProg3.
  3. Connect I2C Master and I2C Slave pins as shown on the schematic to create I2C bus. The external pull-up resistors have to be connected to the I2C bus. For more information, please refer to the “External Electrical Connections” of the datasheet.
  4. Connect P0[0] to SW1 and P1[0] to SW2.
  5. Power cycle the device.
  6. Press SW1 to update and write message to the I2C slave.
  7. Press SW2 to read back and display message from the I2C slave.
  8. Observe the results on the LCD.

Project Setting: The example project consists of the I2C and Character LCD components. The Character LCD component (default configuration) is used to display the data written and read by the I2C component. When switch SW1 is pressed the I2C master writes a corresponding message to the I2C slave and when switch SW2 is pressed the I2C master will read back the data from the I2C slave component. Both the written and read back data are displayed on LCD if both write and read operations happens successfully. The Character LCD legend is described in the main.c file

Development Tool PSoC Creator
Project Version 1.0
Project Type Full Project
PSoC Family PSoC 4
Development Tool Version 3.0
Supported Compilers GCC
Development Kit CY8CKIT-042 PSoC4®A Pioneer Kit
Category ,
Keywords    
License freeware