natraj20
Member level 3
What happens exactly in the sleep mode ?
And what is the exact steps to bring the processor to sleep mode with low power? Do we have to modify any bits in the configuration registers ??
Do we have to turn off all the peripherals in the code ?
Do we have to change all the port pins into i/p or o/p ? By default, what state the port pins will be in ?? - Floating ??
Is the sleep() function as defined in the headers of the pic compiler not sufficient?
void sleep(void)
{
_asm
sleep
_endasm
}
Please advice !
And what is the exact steps to bring the processor to sleep mode with low power? Do we have to modify any bits in the configuration registers ??
Do we have to turn off all the peripherals in the code ?
Do we have to change all the port pins into i/p or o/p ? By default, what state the port pins will be in ?? - Floating ??
Is the sleep() function as defined in the headers of the pic compiler not sufficient?
void sleep(void)
{
_asm
sleep
_endasm
}
Please advice !