Hi sayzer,

Thanks for the explanation of your eeprom code.

I went over the DS1302 data sheet again (actually many times) and I think I got it now, I'm hoping. I finally realized that you wrote your code for the reads and writes of the Registers in hex which threw me off. When I converted them over to binary for the hours then it made some sense. I set bit 7 and bit 5 in the binary number then converted them back to hex. I haven't tried it yet but I think this might work.

for am 12 hr mode
writehour = 00100011 = $C4
readhour = 10100011 = $A3

for pm 12 hr mode
readhour = 10101011 = $AB
writehour = 00101011 = $D4

Do you think this will do it? If I have this part right then I don't think I'll have any problems converting over the rest of the code to display it with the am and pm.

Thanks
jessey