cancel
Showing results for 
Search instead for 
Did you mean: 

Code Examples

MotooTanaka
Esteemed Contributor

Hi,

In a discussion below, the problem seemed to be complicate, so I ordered the similar PCF 8563 RTC Module to test with,

https://community.infineon.com/t5/PSoC-5-3-1/PSOC-5LP-interfacing-with-WaveShare-PCF-8563-RTC-module...

I placed my order 19-Nov-2021, but the sensors did not arrive until 1-Dec-2021.

And by that time the issue was solved, and I ended up with 5 of these modules. 😜

Fortunately there were remaining issues about using I2C_WriteBuf() and I2C_ReadBuf(),

so I tried

(1) Write a sample program to use PCF 8563 RTC Module.

(2) Use both I2C_ReadBuf() and I2C_WriteBuf() somewhere in the project.

IMG_4938.JPG

Anyway, here is my sample of using PCF 8563 RTC Module with CY8CKIT-059.

schematic

002-schematic.JPG

pins

003-Pins.JPG

Tera Term (serial terminal)

001-Tera-Term-log.JPG

When started, the program shows the splash and command list.

The command "get all" shows both date and time.

The command "init YYYY/MM/DD hh:mm:ss" set date and time directly to the registers

by using I2C_WriteBuf().

The command "dump" reads out all registers by using I2C_ReadBuf().

And I added some ore commands,  but this time I could not afford to implement timer and/or alarm functions.

moto

 

 

0 Likes
0 Replies