- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Labels:
-
PSoC 5 Device Programming
-
PSoC 5LP
- Tags:
- ez i2c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm just curious, but can you re-target my sample below and try i2c > scan and i2c > readreg ?
MCU Tester, a Swiss Army Knife for PSoC (CY8CKIT-059 version)
May be you need to comment out Start() functions of unused components, too.
moto
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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