PSoC4 I2C Communication | Forum | PSoC Developer

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —


— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
PSoC4 I2C Communication
sp_BlogLink Read the original blog post
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
November 24, 2014
1:01 PM

Forum Posts: 67
Member Since:
May 7, 2014
sp_UserOfflineSmall Offline

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

Forum Timezone: America/Los_Angeles

Most Users Ever Online: 66

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity
Members Birthdays
Today None
Upcoming None

Top Posters:

graaja: 3086

danadak: 2052

Bob Marlowe: 1509

wrightpc: 736

ericb: 678

lovell: 665

eg2ah: 516

alager: 506

jiml: 440

baxsie: 420

Member Stats:

Guest Posters: 0

Members: 15186

Moderators: 0

Admins: 1

Forum Stats:

Groups: 12

Forums: 41

Topics: 6139

Posts: 28750

Newest Members:

Kyaraldfer, BrianBib, Zeraodgok, Aiuxsirigok, Slepolisklgok, Galcktgok, Jgelaomengok, dianntx11, LesterSwese, Kellyexiny

Administrators: HazAdmin: 67