Surviving 1 second without battery power


Results 1 to 28 of 28

Threaded View

  1. #22


    Did you find this post helpful? Yes | No

    Default

    One thing to remember. The diode D1 is isolating the PIC supply from the LED. So the PIC should be able to stay in a brown out mode for a small amount of time. But your test circuit may have a problem if the indicator LED is directly connected to a PIC I/O pin. The LED may then drain the PIC power too fast and the PIC will go into POR quicker. The AMC7135 parts in the original design isolate the PIC pin enough so that it can still run off the cap charge. You need a higher impedance connection, on your test board, to the PIC to keep this from happening. Maybe you can put a buffer (like a HC04) between the indicator LED and the PIC pin and power the buffer straight off the supply.

    Also in your code, when you check the BOD, you also need to check the POR. This is because you will have one of two situations:

    BOD cleared but POR still set - Switch click
    BOD cleared and POR cleared - powered down

    Your code also needs to set both bits after they are checked, otherwise they will never be '1'. The hardware only clears the bits when a situation happens. It is the program's responsibility to set these bits.
    Last edited by falingtrea; - 13th March 2008 at 15:50.
    Tim Barr

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 08:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 14:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 04:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 13:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 15:23

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