hello everyone!
I need your help, im using mikro c and trying to use sleep mode on a pic16f88 mcu and wake from a interrupt on RB0 pin (internal osc)
what I want to do is a simple project so I can understand how to use sleep mode, for example:
I have a sensor on RB0 pin, when this is '1' then a led will blink, when it goes '0' for more than 3secs then the mcu goes to sleep till RB0 goes '1' again and then repeat the process.
can anyone help me with the code? thank you!
I need your help, im using mikro c and trying to use sleep mode on a pic16f88 mcu and wake from a interrupt on RB0 pin (internal osc)
what I want to do is a simple project so I can understand how to use sleep mode, for example:
I have a sensor on RB0 pin, when this is '1' then a led will blink, when it goes '0' for more than 3secs then the mcu goes to sleep till RB0 goes '1' again and then repeat the process.
can anyone help me with the code? thank you!