Thanks for the reply and the advice.
I don't have a schematic as yet as it's all breadboarded and constantly changing as I learn new things. I really must do one though.
One thing I don't understand is why with the exact same port settings and commands @SLEEP is 1.2mA and END is 0.4mA. Shouldn't they be the same, either both 1.2mA or both 0.4mA?
CYCLE:
CMCON=7
VRCON=%01101100 'VRCON bit7 is OFF for no current drain
TRISA = %10011
PORTA = 0
TRISB = %01000101
PORTB = %10000000
@SLEEP 'ASM Sleep
GOTO CYCLE
SHUTDOWN:
CMCON=7
VRCON=%01101100 'VRCON bit7 is OFF for no current drain
TRISA = %10011
PORTA = 0
TRISB = %01000101
PORTB = %10000000
END
Regards,
Rubicon.




Bookmarks