Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

Back
Top