PCF8563 date data corrupted


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    australia
    Posts
    2,692


    Did you find this post helpful? Yes | No

    Default Re: PCF8563 date data corrupted

    you need to mask off the bits that are not used for the value being returned

    Code:
        minu = minu & $7f
        hrs  = hrs  & $3f
        Dow  = dow  & 7
        Dom  = dom  & $3f
        mon  = mon  & $1f
    Warning I'm not a teacher

  2. #2
    Join Date
    Nov 2011
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: PCF8563 date data corrupted

    Thank you very much Richard , your advice fixed my problem.
    I am so happy 'cause I really like this chip.
    Now I can apply my mind to getting an interrupt every minute which
    appears to be quite cumbersome.

    Regards
    Hebe

Similar Threads

  1. My date this weekend.
    By Christopher4187 in forum Off Topic
    Replies: 16
    Last Post: - 29th January 2008, 17:45
  2. Bootloader corrupted at low voltage
    By BrianT in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 2nd November 2007, 15:56
  3. Array data being corrupted
    By caverman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th March 2006, 05:22
  4. calculate with date
    By Pedro Pinto in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th October 2005, 17:49
  5. 16F88.bas corrupted
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 26th April 2005, 18:21

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