comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 153:17de42ab02b6

realtime clock defaults
author heinrichsweikamp
date Thu, 13 Jan 2011 09:05:45 +0100
parents 2907b42c195b
children d19445e0cb2f
comparison
equal deleted inserted replaced
152:e5f1cfec8113 153:17de42ab02b6
49 rcall onesec_sleep ; check switches, check pressure sensor, etc. 49 rcall onesec_sleep ; check switches, check pressure sensor, etc.
50 50
51 btfss sleepmode ; wake up? (This bit will be set in other routines) 51 btfss sleepmode ; wake up? (This bit will be set in other routines)
52 goto restart ; yes 52 goto restart ; yes
53 nop 53 nop
54 btfss nsm
54 sleep ; Sleep until Timer1 will wake up the device 55 sleep ; Sleep until Timer1 will wake up the device
55 nop 56 nop
56 bra sleeploop_loop ; do loop until someting happens 57 bra sleeploop_loop ; do loop until someting happens
57 58
58 59