brown out resets


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    968


    Did you find this post helpful? Yes | No

    Default

    What I'd recommend is to use an early warning signal. The raw voltage input to the 5V regulator would be a good point to monitor the power. Use this voltage to signal a power failing and if this is set properly, you can get sufficient time to put your counter to EEPROM. Your 5V should be bypassed sufficiently to allow the write to complete.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This might give you an idea or two
    http://www.picbasic.co.uk/forum/showthread.php?t=11567
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    thanks guys, unforuantely i didnt really understand much of what was going on in that thread mack! it seems a bit advanced for me..

    i havnt actually got a voltage regulator, or ever used one... so they take the input and then give me an output voltage which i can send to the pic? how would i measure the output voltage, just use an ADC port?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    OK, lets back up and tell how you are powering the PIC. Voltage and voltage source(source is from wind machine) but it has to be brought down/up to PIC levels.

    If you are still on the same PIC and project I think you are running at 20Mhz, so I will assume you are getting around 5 volts from some place. ????
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    well basically we have got the analogue high voltage part of the circuit which is converted to a 5v voltage for the CAP inputs and the ADC measuring voltages.

    we also have a DC 12v supply from another part of the power electronics which i attach to a 12DC to 5DC converter... this is wheree i get the voltage to power the pic

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    OK, that gives you plenty to work with. You should be able to adapt the schematic in the thread I linked you to.

    What we are basically doing is monitoring the 12 volt in this case. An ADC could be used but you will have to keep checking it in your code. If you use the interrupt on change then it all happens for you...

    Either way, the trick is having large enough caps to run the PIC long enough to write the data to eeprom. When the voltage coming to the PIC or the power supply drops beyond a certain point your software will jump to a SAVE/SHUT DOWN routine.

    The problem I see happening with you setup is the voltage drops enough to go to the SAVE routine then comes back up before the PIC actually stops from lack of voltage.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2009
    Posts
    63


    Did you find this post helpful? Yes | No

    Default

    how do these interupts on change work? is this the DT instant interupt stuff? are there any specific brown out reset interupts?

    edit: actually just found it in data sheet, looking through it now
    Last edited by robertpeach; - 23rd September 2009 at 09:29.

Similar Threads

  1. 16f877a porta.5 resets chip
    By lecoind in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 1st October 2009, 18:29
  2. Device Resets / erratic operation - 16F88
    By turbokinetic in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 11th April 2009, 03:08
  3. servo motor resets 16f877a
    By burak450 in forum mel PIC BASIC Pro
    Replies: 85
    Last Post: - 19th October 2008, 22:25
  4. PIC resets every now and then
    By passion1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th June 2007, 21:41
  5. Freqout resets port pins?
    By MikeLewis in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 16th July 2004, 04:29

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