> Van: Starfire Zhu > Aan: PICLIST@MITVMA.MIT.EDU > Onderwerp: RESET Problems on PICs > Datum: woensdag 22 april 1998 19:24 > > Hi, pauls on the list, > > I just entountered a problem in my recent project. As I am a green hand > in PIC application, I'd like to share this with you, and hope I can get > some advice. > > My problem is about the identification of RESET STATUS of PICs at work. > If the PIC(e.g. P16c54) has disabled the WDT and doesn't use SLEEP on > whole process, after RESET on MCLR, how could I reliably determine > whether this RESET is caused by POWER-ON or MCLR? In other words, > is there any FLAG BIT that can change its value in different RESETs? > > Do you have any suggestion? Thanks in advance! Yes, I have. In the documents about the PIC16C5? it say's : Document : DS30015N Page : 4-31 Reset conditions for special registers: Condition Status-register ------------------------------ ---------------------- Power-On reset 0001 1xxx MCLR 000u uuuu MCLR from Sleep 0001 0uuu WDT reset 0000 1uuu WDT from Sleep 0000 0uuu x = Unknown u = Unchanged Hope this helps Greetz, Rudy Wieser P.s. This document is available at the Microchip-site