There are 9 messages in this thread.
You are currently looking at messages 1 to 9.
So far in May, you have voted 0 times ou of a total of 20 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.
Hi everybody! Can you help me to answer this question: How to recognize a PUC when it occur? Thank so much!
On 8/4/2012 8:51 PM, Viet Tran wrote: > 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" ???
On 8/4/2012 9:23 PM, Viet Tran wrote: > Power-up Clear : PUC > > it occur when The watchdog timer overï¬ows 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 ??????
Và o 11:37:54 UTC+8 Chá»§ nháºt, ngà y 05 tháng tám nÄm 2012, hamilton Äã viết: > On 8/4/2012 9:23 PM, Viet Tran wrote: > > > Power-up Clear : PUC > > > > > > it occur when The watchdog timer overï¬ows 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?
On 8/4/2012 9:46 PM, Viet Tran wrote: > 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? http://lmgtfy.com/?q=MSP430+PUC
On 8/4/2012 8:23 PM, Viet Tran wrote: > Power-up Clear : PUC > > it occur when The watchdog timer overï¬ows in watchdog mode 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.
On 05/08/12 05:46, Viet Tran wrote: > Và o 11:37:54 UTC+8 Chá»§ nháºt, ngà y 05 tháng tám nÄm 2012, hamilton Äã viết: >> On 8/4/2012 9:23 PM, Viet Tran wrote: >> >>> Power-up Clear : PUC >> >>> >> >>> it occur when The watchdog timer overï¬ows 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? > 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.
"Viet Tran" <q...@gmail.com> wrote in message news:f...@googlegroups.com... > 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? Start reading the datasheet of the MSP430. It should all be in there! Meindert