This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TM4C1233H6PM: DS1307 in 12 hour mode

Part Number: TM4C1233H6PM

Tool/software: TI C/C++ Compiler

I wanna run ds1307 (RTC) in 12 hor mode. I know bit 6 of second register must be set to enable it. and bit 5 is set for PM and cleared for AM But i dont know how to do that

If i wanna set 16:00. It must be 4 pm. And for that i have to send 0x64 .

tell me if m doing that wrong? and whats the right way. bcz if i write 64 it is not the expected result that is displayed...