rtc_pcf8563

Programme to read and control PCF8563 real time IC

Author Andy Brooker, Copyright © 2008..2011, all rights reserved.
Adapted-by (Joep Suijs)
Compiler >=2.4m

Description

Programme to read and control the PCF8563 real time IC
IC address is 0xA2
PCF8563 read sequence
 1. Send a START condition and the slave address for write (A2h).
 2. Set the address pointer to 2 (VL_seconds) by sending 02h.
 3. Send a RESTART condition or STOP followed by START.
 4. Send the slave address for read (A3h).
 5. Read VL_seconds.         02
 6. Read Minutes.            03
 7. Read Hours.              04
 8. Read Days.               05
 9. Read Weekdays.           06
10. Read Century_months.     07
11. Read Years.              08
12. Send a STOP condition.



To use set:


 const byte pcf8563_address = 0xA2


 include rtc_pcf8563


Dependencies

No dependency found



Summary

Global variables/contants

Procedures

Functions


API details

Global variables/contants

Procedures

Functions


Related samples

Here are the list of samples which use this library:

16f877a16f877a_rtc_pcf8563.jal