Binary Coded Decimal


Results 1 to 12 of 12

Threaded View

  1. #10
    Join Date
    Jul 2007
    Posts
    38


    Did you find this post helpful? Yes | No

    Default

    hey,

    yer that is an old topic i kinda give up some time ago on the rtc.

    But i tought i would pick it back up and finally get my head around it

    when i posted that topic i didn't even no what bcd was... so as you can imagine i didn't get any were near as far as i have now.


    i am watching the value of the seconds register and it is incrementing correctly from 0-59 and the minutes are incrementing when the seconds reaches 0

    i'll look in to the voltage low bit in the seconds register and see if that is the cause of my problem, i'll let you know how i get on.

    and yes ive tried another one of these rtc and get the same error

    thanks for taking the time to help me



    Quote Originally Posted by sinoteq View Post
    I am sorry I don't have that RTC here so I can test code for you yet.

    There are some things in your code that are inconsistent with the datasheet so you should start with fixing this.

    Please look at http://www.datasheetcatalog.org/data...s/PCF8563P.pdf Table 5. As you see the Seconds register is only 7 bits wide and not 8, the 8th bit is VL. So start by making sure that bit is not included in you conversion and setting of the RTC.

    Are you sure you chip is healty? Have you tested this on more than one RTC?
    Please forgive me for asking, but is this related to this previous 2007 posting?http://www.picbasic.co.uk/forum/arch...hp/t-7567.html
    In that case I can only say you have had this problem for some time and then it is really time to solve this.

    I will swing by the market some day and pick up a chip so I can help you better.
    Last edited by -Dan-; - 23rd May 2009 at 12:53.

Similar Threads

  1. Convert long binary number to ASCII Decimal
    By Joe Rocci in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th July 2009, 13:58
  2. How to convert binary to decimal?
    By Cabomba in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th October 2007, 01:27
  3. Decimal to Binary Conversion
    By schlaray in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 23rd December 2006, 14:58
  4. Binary to Decimal from ADC
    By RYTECH in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th July 2005, 18:51
  5. Decimal to binary conversion
    By Demon in forum Code Examples
    Replies: 9
    Last Post: - 25th February 2005, 20:05

Members who have read this thread : 0

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