real time clock


Results 1 to 40 of 45

Thread: real time clock

Threaded View

  1. #30
    Join Date
    Jan 2006
    Location
    Istanbul
    Posts
    1,185


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by jessey

    Code:
    IF hour > 12 THEN
    
         IF Mode = am THEN
                    Mode = pm
         ELSE
                    Mode = am
         ENDIF
         
         hour = 1
    
    ENDIF
    Why don't you try this:

    Code:
    IF hour > 12 THEN
         TOGGLE Mode
         hour = 1
    ENDIF

    For the Bit7 and Bit5, I checked again, you are right. I apologize.

    Say your Bit7 and Bit5 are set correctly.
    The rest, Bit4,Bit3,Bit2,Bit1 and Bit0 are consisting your hour data (in AM mode). In PM mode, Bit5 is also consisting hour data.
    You are setting the hour data the same each time.
    Last edited by sayzer; - 4th September 2006 at 12:16.
    "If the Earth were a single state, Istanbul would be its capital." Napoleon Bonaparte

Similar Threads

  1. Real Time Clock
    By in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd June 2012, 04:52
  2. real time clock - PCF8583
    By maria in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 15th April 2010, 15:41
  3. Real time clock ICs
    By Eng4444 in forum mel PIC BASIC Pro
    Replies: 66
    Last Post: - 20th October 2008, 16:05
  4. Real Time Clock
    By savnik in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 8th December 2006, 02:02
  5. Real time clock... what a headache!
    By Eng4444 in forum mel PIC BASIC
    Replies: 2
    Last Post: - 8th June 2006, 21:56

Members who have read this thread : 4

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts