microT
Newbie level 6

pic12f675 sleep
Hi ....
I am using PIC12f675 for my application and need help for this ....
For a module in my application i am using the ADC of this controller for input voltage conversion and compare this input voltage with the predeined value and to indicate for the battery low condition ....
However this is tobe done only once and then the microcontroller has to go in SLEEP mode. Next time to check for the same ... the power is CUT OFF and then again the supply is given.....
Now the problem i m facing is that, for the first time ....the conversion and comparision is done well ... however the next time the supply is given, it does not work .... i feel as if the controller is not coming out of SLEEP or is HANGED ... (but thats not possible right ??? :?: ... on POWER ON RESET ... the controller has to work normally ... shouldnt it ???)
Also note that before putting the controller in SLEEP mode ... i m setting all GPIO pins to HIGH ... so that the current in the SLEEP mode is minimum ...
Pls. help ....
Thanx in advance ...
Regards
Micro
Hi ....
I am using PIC12f675 for my application and need help for this ....
For a module in my application i am using the ADC of this controller for input voltage conversion and compare this input voltage with the predeined value and to indicate for the battery low condition ....
However this is tobe done only once and then the microcontroller has to go in SLEEP mode. Next time to check for the same ... the power is CUT OFF and then again the supply is given.....
Now the problem i m facing is that, for the first time ....the conversion and comparision is done well ... however the next time the supply is given, it does not work .... i feel as if the controller is not coming out of SLEEP or is HANGED ... (but thats not possible right ??? :?: ... on POWER ON RESET ... the controller has to work normally ... shouldnt it ???)
Also note that before putting the controller in SLEEP mode ... i m setting all GPIO pins to HIGH ... so that the current in the SLEEP mode is minimum ...
Pls. help ....
Thanx in advance ...
Regards
Micro