Peter_wadley
New Member
Im trying to make my PIC16F629 go into the SLEEP mode.. but cant seem to do it...
I have the INT on gpio2 set to wake it up from sleep..
here is the code to make it sleep..
Loop
bsf GPIO,1
bcf GPIO,1
movlw d'255'
call delay
movlw d'255'
call delay
SLEEP
goto Loop
basically I want it to pulse pin 1 .. then goto sleep then wake up when the INT is made .. do it again then back to sleep.
I have the INT on gpio2 set to wake it up from sleep..
here is the code to make it sleep..
Loop
bsf GPIO,1
bcf GPIO,1
movlw d'255'
call delay
movlw d'255'
call delay
SLEEP
goto Loop
basically I want it to pulse pin 1 .. then goto sleep then wake up when the INT is made .. do it again then back to sleep.