Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/sleepmode.asm @ 125:2907b42c195b
Altimeter:
- use H = 19902 log10(P0/P)
- Interface to select sea level mbars.
- Average over 32 values, using 1/16 of mbar.
- Display in customview area.
- Fix display ****m when not yet computed
- Fix reset when exiting sleep mode
- Fix : edit menu in 1/4 of mbar.
- Fix use CF#49 to enable/disable altimeter, also in altimeter menu.
- Fix visible in Menu 2
author | JeanDo |
---|---|
date | Wed, 29 Dec 2010 01:41:13 +0100 |
parents | 14a074e1a375 |
children | 17de42ab02b6 |
comparison
equal
deleted
inserted
replaced
124:4f9f477bb452 | 125:2907b42c195b |
---|---|
164 bcf switch_left_isr | 164 bcf switch_left_isr |
165 bcf switch_right | 165 bcf switch_right |
166 bcf switch_left | 166 bcf switch_left |
167 bcf T0CON,TMR0ON ; Stop Timer 0 | 167 bcf T0CON,TMR0ON ; Stop Timer 0 |
168 bcf sleepmode ; wake up! | 168 bcf sleepmode ; wake up! |
169 bsf show_startup_screen ; | 169 bsf show_startup_screen ; |
170 | |
171 ; Reset altimeter, so next averaging starts right over... | |
172 call altimeter_reset | |
173 | |
170 return | 174 return |
171 | 175 |
172 pressuretest_sleep_fast: ; Get pressure without averaging (Faster to save some power in sleep mode) | 176 pressuretest_sleep_fast: ; Get pressure without averaging (Faster to save some power in sleep mode) |
173 call get_temperature_start ; and start temperature integration (73,5us) | 177 call get_temperature_start ; and start temperature integration (73,5us) |
174 sleep | 178 sleep |