PSOC 5LP interfacing with WaveShare PCF 8563 RTC module not working

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

cross mob
Y_r
Level 4
Level 4
50 replies posted 50 sign-ins 25 replies posted

Hello, @MotooTanaka san,

Apologies for bothering you again.
The current thread is an extension to the earlier thread where I was seeking your assistance link.

As mentioned in the earlier thread, I am trying to get the PCF 8563 RTC module to work with the PSOC 5LP over the I2C interface, but sadly, I am not able to do so.
I have tried the I2C write and read operations as mentioned in the I2C component datasheet with the slave address changed, but that didn't help.
Also, I tried the implementation mentioned in the thread which is DS1307, but that implementation didn't work out either.

 

The datasheet of the PCF 8563 can be accessed from the link:https://www.waveshare.com/w/upload/5/5d/PCF8563.pdf
(To read the time, the seconds register 0x02 is to be accessed and a buffer of 6 bytes can be read to display the time and date.)

I have tried the same RTC with STM32F407, and it worked out just fine. The implementation and API working is a bit different and I am not able to figure out what is going wrong with PSOC.

I will really appreciate any help on this.

Regards,
Yash

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

To test basic components, I posted sample projects below

(CY8CKIT-059)

https://community.infineon.com/t5/Code-Examples/MCU-Tester-a-Swiss-Army-Knife-for-PSoC-CY8CKIT-059-v...

(CY8CKIT-050)

https://community.infineon.com/t5/Code-Examples/MCU-Tester-a-Swiss-Army-Knife-for-PSoC-CY8CKIT-050-v...

Please try one close to your environment and access I2C via a serial terminal, such as Tera Term.

If it works, you can refer to my i2c_utils.[ch] source to access I2C.

If it does not work, may be you are having some problem with hardware.

moto

View solution in original post

10 Replies