I am using a PIC18F2620 to interface with a DS1302 real time clock. I haven't manually set the time using push button switches yet. I have a set of functions including various data transfer functions, a set of functions that involves setting the current time, a set of functions involving reading the time and displaying it on the LCD, and a function that starts or stops the clock and another function that sets or clears the write protect bit. It appears that the displaying part of the routine is correct, but the actual time displayed is nowhere close to the time that I have set it to. I have checked the timing on the chip enable as well as the SCLK pin, however, they are quite erratic. Does someone have any recommendations on what I should do next? Thanks!