PUC!

Hi everybody! Can you help me to answer this question: How to recognize a PUC when it occur?

Thank so much!

Reply to
Viet Tran
Loading thread data ...

OK, I'll bite, What's a "PUC" ???

Reply to
hamilton

Power-up Clear : PUC

it occur when The watchdog timer over=EF=AC=82ows in watchdog mode

Reply to
Viet Tran

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 ??????

Reply to
hamilton

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
Reply to
Viet Tran

formatting link

Reply to
hamilton

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.

Reply to
mike

?ã 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.

Reply to
David Brown

Start reading the datasheet of the MSP430. It should all be in there!

Meindert

Reply to
Meindert Sprang

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.