Moving Message Display

Thread Starter

kvns.kapil

Joined Aug 31, 2010
10
Hi,
I am new to Embedded programming, My project is about moving message display in which i am using PIC 16F877A, 5x7 dot matrix display, DS1307 RTC.
Already the program is written for this project, i wanted to change time from 24 hour format to 12 hour format. I am sending that code in attached file, please verify this one and suggest me the modifications.
Please help me for this code...
thanks...
 

Attachments

n1ist

Joined Mar 8, 2009
189
According to the DS1307 data sheet,
The DS1307 can be run in either 12-hour or 24-hour mode. Bit 6 of the hours register is defined as the 12-hour or
24-hour mode-select bit. When high, the 12-hour mode is selected. In the 12-hour mode, bit 5 is the AM/PM bit with
logic high being PM.
So whenever you set the hours, or in 0x40. Whenever you read the hours, use bit 5 do decide whether to show "AM" or "PM".
/mike
 

Thread Starter

kvns.kapil

Joined Aug 31, 2010
10
Hi,
I had changed bit 6 to high but i could not get the 12 hour mode, please could you modify the code and send me please.....
 
Top