PIC and RTC DS1307 problem - hardware vs software ?


Results 1 to 15 of 15

Threaded View

  1. #6
    Join Date
    Dec 2006
    Location
    Brasil, Sao Paulo, Campinas
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: PIC and RTC DS1307 problem - hardware vs software ?

    Quote Originally Posted by jorge View Post
    thanks for all the advices !

    i guess my problem is really in the powersupply that makes DS1307 reset and looses all the settings (even with the 3v coin cell battery ) , but i was hoping some software magic to workaround this.

    Just a doubt, why should the BROWNOUT RESET setting make it more reliable in noise related problems ?!?
    thanks again for all answers!
    I think that your circuit reset the PIC when the noise occurs! For example, if the VDD down it can reset the PIC , by something with current consume, a rele, a servo, step motor, or a noise by power as an oscilation on Vout...With me occured this problem when was using a servo. Then I change the BOR to off and solved my problem...then I suggested it to you. I think that would be more robust to the noises, therefore reset I could be occurring when pic is in communicating with RTC.

    It is a part of datasheet of 16f877A...
    12.7 Brown-out Reset (BOR)
    The configuration bit, BODEN, can enable or disable
    the Brown-out Reset circuit. If VDD falls below VBOR
    (parameter D005, about 4V) for longer than TBOR
    (parameter #35, about 100μS), the brown-out situation
    will reset the device. If VDD falls below VBOR for less
    than TBOR, a RESET may not occur.
    Once the brown-out occurs, the device will remain in
    Brown-out Reset until VDD rises above VBOR. The
    Power-up Timer then keeps the device in RESET for
    TPWRT (parameter #33, about 72mS). If VDD should fall
    below VBOR during TPWRT, the Brown-out Reset process
    will restart when VDD rises above VBOR with the
    Power-up Timer Reset. The Power-up Timer is always
    enabled when the Brown-out Reset circuit is enabled,
    regardless of the state of the PWRT configuration bit.

    Good luck

    Pimentel
    Last edited by Pimentel; - 8th April 2011 at 04:31. Reason: correction

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