You are here

Regarding I2C in Psoc 4 | Cypress Semiconductor

Regarding I2C in Psoc 4

Summary: 2 Replies, Latest post by danaaknight on 04 Dec 2014 10:53 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
ohhoohei's picture
3 posts

 Hello everyone,

I have a problem with sending i2c data. I use pioneer kit psoc4 but when I try to send somedata with i2c, it has no anysignal because I try measure it with osciloscope.

This is my code:

 #include <device.h>

int main()








I try to write code simply to test i2c signal. I set pin out of i2c signal as P4[0] and P4[1].


Please help me,

Thank you so much.

user_1377889's picture
9274 posts

You actually do not send much data. The start condition will not be acknowledged by your slave since you never made up a real connection which needs


Send one or more bytes

Stop or Restart

In case of Restart read some bytes.


All the functions return a value that can be an error-status, have a look into the datasheet. So best is to check for errors.


What is the device you are talking to? Link to datasheet??



user_14586677's picture
7646 posts

There are several example projects you can look at , start page of Creator,

"Find Example..."


Log in to post new comments.