Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 274:a728b4a1b660
Setpoint changes stored in profile, EAD and END displayed in divemode (Customview 7)
author | heinrichsweikamp |
---|---|
date | Sun, 17 Apr 2011 17:57:44 +0200 |
parents | f0cba9cff25c |
children | ceedf078b2d8 |
comparison
equal
deleted
inserted
replaced
273:35bbab4d3c6f | 274:a728b4a1b660 |
---|---|
148 btfsc switch_right | 148 btfsc switch_right |
149 bra onesec_sleep1a | 149 bra onesec_sleep1a |
150 ; No button pressed | 150 ; No button pressed |
151 bcf INTCON,INT0IF ; Clear flag | 151 bcf INTCON,INT0IF ; Clear flag |
152 bcf INTCON3,INT1IF ; Clear flag | 152 bcf INTCON3,INT1IF ; Clear flag |
153 bcf switch_right_isr | |
154 bcf switch_left_isr | |
155 bcf switch_right | 153 bcf switch_right |
156 bcf switch_left | 154 bcf switch_left |
157 bcf T0CON,TMR0ON ; Stop Timer 0 | 155 bcf T0CON,TMR0ON ; Stop Timer 0 |
158 return | 156 return |
159 onesec_sleep1a: ; At least one button pressed.... | 157 onesec_sleep1a: ; At least one button pressed.... |
160 bcf INTCON,INT0IF ; Clear flag | 158 bcf INTCON,INT0IF ; Clear flag |
161 bcf INTCON3,INT1IF ; Clear flag | 159 bcf INTCON3,INT1IF ; Clear flag |
162 bcf switch_right_isr | |
163 bcf switch_left_isr | |
164 bcf switch_right | 160 bcf switch_right |
165 bcf switch_left | 161 bcf switch_left |
166 bcf T0CON,TMR0ON ; Stop Timer 0 | 162 bcf T0CON,TMR0ON ; Stop Timer 0 |
167 bcf sleepmode ; wake up! | 163 bcf sleepmode ; wake up! |
168 bsf show_startup_screen ; | 164 bsf show_startup_screen ; |