Moving Message Display

Discussion in 'Embedded Systems and Microcontrollers' started by kvns.kapil, Oct 11, 2010.

  1. kvns.kapil

    Thread Starter New Member

    Aug 31, 2010
    10
    0
    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...
     
  2. n1ist

    Active Member

    Mar 8, 2009
    171
    16
    According to the DS1307 data sheet,
    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
     
  3. kvns.kapil

    Thread Starter New Member

    Aug 31, 2010
    10
    0
    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.....
     
  4. kvns.kapil

    Thread Starter New Member

    Aug 31, 2010
    10
    0
    Hello sir,
    how to set the bits to show "AM" or "PM"
     
Loading...