Low battery signal from an RTC


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    448

    Default Low battery signal from an RTC

    I am using a Philips RTC PCF8563 in a design. The RTC chip is being powered by a separate supply, a CR2032 coin cell.

    The basic functions seem to be working fine, as per expectation. Now here is the problem:

    The PCF8563 has a low battery detector, which is a bit in a register that is '0' if the battery is within acceptable limit, or '1' if its lower.

    The issue is, when there is no battery connected, or if the battery is too low to operate the RTC, this bit is of course read as a '0' by the PIC; so, how does one differentiate between a 'battery good' and a 'no battery' condition?

    Is there a way to detect a lack of I2C activity?

    Regards,

    Anand

  2. #2
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    947


    Did you find this post helpful? Yes | No

    Default

    Write some data to a RAM location in the RTC(I haven't checked if this RTC has RAM). If you find the same data when the bit says battery good, the battery is good and present. But, if the data has changed, it means that the battery was not present.

  3. #3
    Join Date
    Oct 2004
    Posts
    448


    Did you find this post helpful? Yes | No

    Default

    Hey, that sounds good! Thanks, Jerson.

    This RTC does not have a RAM, but I guess I could use some of the calendar registers for that purpose, as I am not using the calendar.

    Regards,

    Anand

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  3. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  4. Problems with RC2 and RC3
    By Christopher4187 in forum General
    Replies: 11
    Last Post: - 29th May 2006, 17:19
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 03:14

Members who have read this thread : 1

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