Forum Discussion
snehal_p
Contributor
3 years agointerfacing RTC module to hps driven i2c pins
Hello,
I need help in interfacing RTC 3231 breakout board to the hps driven pins. While trying to read the rtc I'm getting connection timed out. PFA screenshot for the error.
Can anyone help wit...
tehjingy_Altera
Regular Contributor
3 years agoHi snehal_p
I found that the DE1SOC has a multiplexer for the I2C.
Could you try setting the HPS_I2C_CONTROL (GPIO48) high before trying out the i2c command?
Regards
Jingyang, Teh
snehal_p
Contributor
3 years agoHello Jingyang,
PFA screenshot of the debug console, 68h is the address for the rtc breakout board. It seems that it is detecting rtc and also returns value for i2cget command but when executing rtc application it returns wrong values.
PFA rtc.c code.
Thanks,
snehal_p