Read a Bunch more last nite and put an amp meter on my breadboard. Circuit draws around 700uA when button is pushed, then drops off to nearly 0. This is indicating to me that its not comming out of sleep. Refined the fuses a little and tried to add the GPIE commands to enable and disable change on pin interupts, but I get a syntax error. Anyone got any quips of wisdom?
@ DEVICE pic12F629, INTRC_OSC_NOCLKOUT
' System Clock Options
@ DEVICE pic12F629, WDT_ON
' Watchdog Timer
@ DEVICE pic12F629, PWRT_ON
' Power-On Timer
@ DEVICE pic12F629, MCLR_OFF
' Master Clear Options (Internal)
@ DEVICE pic12F629, BOD_OFF
' Brown-Out Detect
@ DEVICE pic12F629, CPD_ON
' Data Memory Code Protect
@ DEVICE pic12F629, PROTECT_OFF
SEN VAR GPIO.4
POW VAR GPIO.1
SHT VAR GPIO.2
LOW SEN
LOW POW
LOW SHT
INPUT SEN
OUTPUT POW
OUTPUT SHT
BASE:
GPIE = 1
ON INTERRUPT GOTO LOOP
SLEEP 100
GPIE = 0
GOTO BASE
LOOP:
HIGH sht
PAUSE 100
HIGH pow
PAUSE 2000
LOW POW
PAUSE 4000
LOW SHT
PAUSE 6000
HIGH POW
PAUSE 1000
LOW POW
RESUME
Bookmarks