PIC18F452 sleep problem

Status
Not open for further replies.

darvaish

New Member
I want to use sleep mode to save power consumption of my mcu PIC18F452

I am using a seperate 32KHz oscillator for timer1.what i am doing is when i want to put my mcu to sleep mode i switch the oscillator to timer1 oscilltor and then put my mcu in sleep mode using sleep(); function

what i expect is that after the overflow of timer1 an interrupt will be generated and the mcu will come out of sleep mode automatically.

But my mcu once entered in sleep mode is not coming out of this state.

what is the problem any suggestion?
is there problem with the function sleep();
I am using Microchips C18 compiler
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…