I'm working on a project that uses the Dallas-Maxim RTC DS12887A to keep time and alarms, plus save some user data, using a Microchip PIC16F877A (@20MHz) for a programmable alarm-clock for using at colleges and offices. I'm finding difficulty in writing assembly code for reading from and writing to the RTC memory (control registers and general RAM). The code works fairly well in simulators (PICsimulator IDE from Oshonsoft), but does not work with the hardware. To keep the code compact, i prefer coding in Assembly. Anyone who has experience in these stuff, please help.
I'm working on same project as pramodp however I am using a Microcontroller from ATMEL (AT89S8253) and I have to code it using C language.
Since I'm a newbie on C what do I need to do to interface my RTC DS12887A with my microcontroller? (I only need the explanation code cause the hardware is done).