Author | Andy Brooker, Copyright © 2008..2011, all rights reserved. |
Adapted-by | (Joep Suijs) |
Compiler | >=2.4m |
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
No dependency found
var bit r
No documentation found
pcf8563_register_write(byte in ic_address, byte in reg, byte in data)
procedure to write a register - send data as decimal
16f877a | 16f877a_rtc_pcf8563.jal |