Hi everybody! Can you help me to answer this question: How to recognize a PUC when it occur?
Thank so much!
Hi everybody! Can you help me to answer this question: How to recognize a PUC when it occur?
Thank so much!
OK, I'll bite, What's a "PUC" ???
Power-up Clear : PUC
it occur when The watchdog timer over=EF=AC=82ows in watchdog mode
Power Up Clear !!!
Did you just make that up ???
Its called "Power Up Reset", Or its called "Watch Dog Reset", if that is what you really mean.
But, what is it you want to know ??
What processor are you using ? What peripherals are you concerned about ??
What are you talking about ??????
Thank for your answer!
1/ i'm using MSP430 2/ i want make a LED light at the time a PUC occur 3/ i want to know that : if a PUC occur: any flag to be set? =20
What are you trying to accomplish? The watchdog timer should never overflow. If it does, something has gone horribly wrong. And it resets the processor, so whatever you flagged is likely gone. Might depend on the processor...RTFM
Fix the code to detect the condition you're looking for.
You can turn the led at boot and turn it off manually with a switch. If it's on after you reset it, there's been a reboot.
Still, not a substitute for fixing the code.
?ã vi?t:
Have you looked in the reference manuals for the msp430? Like most microcontrollers, it has a register holding the cause of reset. Note that you need to clear the various flags yourself after reading them - for obvious reasons, they are not cleared automatically at reset.
Start reading the datasheet of the MSP430. It should all be in there!
Meindert
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.