Hi, this is a code snippet for writing to and reading from the registers of a BQ3287(DS12885-DS12C887A) Real Time Clock using INTEL timing, it has been tested using 16Mhz, 4Mhz, 10Mhz XTALs.
Code:
//Cut and paste these register definitions in your main code,
//add this C file and call the read and write functions
//whenever a Read or Write operation is to be performed.The syntax of the functions is:
//write_RTC(address,data);
//data=read_RTC(address);
// where data and address are 8...