help : I can't get the pic16f88 to sleep

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
rasekh
Posts: 1
Joined: Tue Oct 24, 2017 11:44 am
Contact:

help : I can't get the pic16f88 to sleep

Post by rasekh »

Hi Benj,
I am new to flowcode programming . I need to get the pic16f88 micro to sleep and wakeup either on watchdog timeout ( approx. 4 mins ), or interrupt pin ( RB0) . I have setup WDTCON and OPTION_REG as follows :
WDTCON=0b00010010;
OPTION_REG=0b00001111;
And used
The SLEEP() command at the end of my program

The chip does not sleep . Am I missing something ? , do I need to set the INTCON register as well?
Your help will be appreciated
Rasekh

Post Reply