Help With I2C Read

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
BeS__284136
Level 3
Level 3
5 sign-ins 10 replies posted 5 replies posted

Hello,

I have two circuit boards interconnected by a cable that communicate using I2C. The JCK-1 board contains the I2C master. THe PSU-1 board contains the slave. The code as it is written now is able to write information successfully to the slave.

However, I am having trouble getting the master to read back information from the slave. The master, after sending out the read request, just sits in the read status loop and hangs. I set up an array of 4 numbers as test information to keep things simple.

Please assist in troubleshooting my code. The issue probably is simple.

Best Regards,

Ben

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I modified my sample the following way

(1) Component(s) to be tested can be selected by enabling/disabling the schematic

(2) Re-target the device to CY8C5868AXI-LP035

(3) i2c pins are changed to match with your JCK project

(4) But my sample needs tty (UART), so I assigned rx/tx to usual P12[6]/P12[7] for USB-Serial connection.

moto

View solution in original post

2 Replies