I want to be able to read and write to a DS3231 real time clock module using a PIC16F690. I have read about using the 'bit banging' method as when reading about the PICs I2C hardware control, it seems very long and complicated.
Has anyone successfully read and written to a DS3231? In the datasheet for it, it says that if the power is removed from the microprocessor while a read or write is in progress, the 2 devices will be 'out of sync' as the DS3231 (as it is battery backed) could still be halfway through a data transfer the next time the microprocessor tries to talk to it.
I program in assembly language so would appreciate any help and links directing me to any source for this.
Thanks
Has anyone successfully read and written to a DS3231? In the datasheet for it, it says that if the power is removed from the microprocessor while a read or write is in progress, the 2 devices will be 'out of sync' as the DS3231 (as it is battery backed) could still be halfway through a data transfer the next time the microprocessor tries to talk to it.
I program in assembly language so would appreciate any help and links directing me to any source for this.
Thanks