Hi,
I programmed a 12f675 with comparotors off and digital i/o's.
I have a 32.768 k osc.
I programmed the watchdog off.
I use the example in picbasic for wake up from interupt and change the Port statements to GPIO and set INTCON.3 = 1 to enable int on change and INTCON.0 = 0 to clear it.
I put the device into sleep, give a change of level interupt on GPIO.2, the device momtarily wakes up, but then goes to sleep again.
I put a statement in so if the GPIO.2 goes low (ie Interupt) then exit the sleep loop and flash a led continiuously.
I know it wakes up as the current drawn goes up as observed by my current meter.
Any assistance appreciated.
I programmed a 12f675 with comparotors off and digital i/o's.
I have a 32.768 k osc.
I programmed the watchdog off.
I use the example in picbasic for wake up from interupt and change the Port statements to GPIO and set INTCON.3 = 1 to enable int on change and INTCON.0 = 0 to clear it.
I put the device into sleep, give a change of level interupt on GPIO.2, the device momtarily wakes up, but then goes to sleep again.
I put a statement in so if the GPIO.2 goes low (ie Interupt) then exit the sleep loop and flash a led continiuously.
I know it wakes up as the current drawn goes up as observed by my current meter.
Any assistance appreciated.