CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Internal vs external BOR and WDT

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
C-H Wu
Guest







Internal vs external BOR and WDT
PostPosted: Thu Apr 28, 2005 10:43 pm     Reply with quote

Dear friends:

In case of power glitch, my 18F4620 sometimes stucked in RESET and sometimes jumped to wrong locations and of course ... crashed my project Crying or Very sad Confused

My question is, if I enable internal WDT and BOR, would it be necessary to add external system supervisor like MCP130 (MCU Voltage Supervisor) or TC32M (System Supervisor with Power Supply Monitor and Watchdog) to get more reliability ?

Thanks a lot for your suggestion and comments

C-H Wu
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Apr 29, 2005 6:54 am     Reply with quote

I'm not an expert in these things, but my guess is the internal circuits of the PIC are just as good as any external power monitoring devices you can add externally. I just use the internal circuits.

Running a serious project without any of these protective features enabled is asking for troubles.

If your power-up time can spare a few miliseconds I recommend to enable the Power Up Timer (PUT) as well.
Ttelmah
Guest







PostPosted: Fri Apr 29, 2005 7:41 am     Reply with quote

Realistically, the internal circuits are fine, if they do what you want. The advantage of external circuits, is that you can sometimes do more, with different voltages, detection at different points in the supply, and more accurate watchdog timings, as 'examples').
Generally, I'd say that the oscillator startup timer is your friend, if you are using a crystal oscillator, where many units can display 'spurious' behaviour as the oscillation starts and stabilises (you don't mention this one). BOR, is essential, unless you are providing some other form of protection (watchdog, or an external 'power fail' based on an incoming rail). Designing good watchdog code, is important if you use this (remember that the watchdog being reset, should depend on the chip actually being in a 'good' running state, just putting lots of resets throughout the code, can partially invalidate the usefulness of this circuit). The WDT on it's own, if properly implemented, can recover from a 'brownout', but the two together are a 'safer' solution.

Best Wishes
C-H Wu
Guest







PostPosted: Sat Apr 30, 2005 12:00 am     Reply with quote

I do have PUT, however, I never realized that BOR can be so important Embarassed Laughing

Thanks a lot for your comments.

Best regards

C-H Wu
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group