CrazyHellos
The address I have used for the RTC is $A2 because the pin 3 is tied to Vcc in my board. gr[0] is a register I have defined in my program; you may rename it to whatever you like.
Rest of the program is self explaining if you refer the datasheet for the RTC. However, you must remember, all registers of the RTC are in BCD format. Not binary. So, a month of 12 (december) should be entered as $12 or decimal(18). Maybe this is where you have the problem.
Regarding sharing my code, I have already shared the relevant part. Beyond this, I am sorry, you will have to work it out. The joy you get when your own code works will be something you will cherish.
Jerson





Bookmarks