Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help Pls. !! Probs with PIC12F675 ....

Status
Not open for further replies.

microT

Newbie level 6
Newbie level 6
Joined
Oct 6, 2005
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,425
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
 

VVV

Advanced Member level 5
Advanced Member level 5
Joined
Nov 26, 2004
Messages
1,575
Helped
384
Reputation
768
Reaction score
88
Trophy points
1,328
Activity points
19,971
pic12f675 sleep mode

What wakes up the micro?
Or maybe I should ask, are you sure the micro wakes up?
If it does the job properly once, it should work the second time around. I would check if there is uninitialized RAM locations that are later used to do the checking or something that could produce a different result.
 

marwan naboulsi

Junior Member level 2
Junior Member level 2
Joined
Feb 22, 2006
Messages
21
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,420
can you upload you software (.asm ) to chek'it please
 

waseem

Full Member level 5
Full Member level 5
Joined
Apr 13, 2005
Messages
284
Helped
64
Reputation
128
Reaction score
19
Trophy points
1,298
Location
Pakistan
Activity points
3,674
Hi!
I think that the microcontroller is not properly shut down before u start it agin.
Give it a proper time so that the voltage across the controller is zero. I mean that if u r using a large capacitor in ur supply then it is possible that the controller is not properly shutting down before u start it agin, because the ram retention voltage is very low.
I hope it helps u.
Regards.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top