PSOC 4 not getting i2c data and hangs from DS1307 RTC | Cypress Semiconductor
PSOC 4 not getting i2c data and hangs from DS1307 RTC
Hi, this is a modification of Project 35 from element14 website. i took out the SPI component and code as I didn't need it and kept is as simple as possible
The wiring is the same except I used P0.4 and P0.5 for RX and tX as thats what the UART project and guide shows to use and it works. I don't know why project 35 uses different pins P0.5 and 3.7 to connect to 12.6 and 7
All other connections are the same for SDA, SCL , V5 and gnd pins as seen on webiste
Adafruit DS1307 breakout board and it does work with an arduino.
UART_UartPutChar and String do work up until the function to get the time from the RTC DS1307
Seems to hang on the GetTime Function that calls the I2C functions.
Will not display anything past that.
Its the same code for getting data from RTC as in project 35.
What am I missing?.
See attached bundle
(sorry if this may be a double post my first attempt doesn't post to the forum once I log out.