>> Van: Starfire Zhu <
.....zhuxhKILLspam
.....cheerful.com>
>> Aan:
EraseMEPICLISTspam_OUT
TakeThisOuTMITVMA.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?
>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
>