Mercurial > public > hwos_code
comparison src/start.asm @ 204:93085f540746
minor
author | heinrichsweikamp |
---|---|
date | Sun, 23 Nov 2014 22:33:41 +0100 |
parents | dcd513840c6c |
children | f5d909e03f52 |
comparison
equal
deleted
inserted
replaced
203:dd9b167e82dc | 204:93085f540746 |
---|---|
49 movlw 0x0F | 49 movlw 0x0F |
50 cpfseq FSR0H ; Bank 14 done? | 50 cpfseq FSR0H ; Bank 14 done? |
51 bra clear_rambank ; clear... | 51 bra clear_rambank ; clear... |
52 | 52 |
53 call init_ostc3 | 53 call init_ostc3 |
54 call speed_normal | |
55 | |
56 bsf no_sensor_int ; disable sensor interrupt | 54 bsf no_sensor_int ; disable sensor interrupt |
57 | 55 |
58 call disable_rs232 ; disable UART module | |
59 ; Air pressure compensation after reset | 56 ; Air pressure compensation after reset |
60 call get_calibration_data ; Get calibration data from pressure sensor | 57 call get_calibration_data ; Get calibration data from pressure sensor |
61 banksel common ; get_calibration_data uses isr_backup | 58 banksel common ; get_calibration_data uses isr_backup |
62 bcf no_sensor_int ; normal sensor interrupt mode | 59 bcf no_sensor_int ; normal sensor interrupt mode |
63 | 60 |
172 cpfseq temp2 ; compare version y | 169 cpfseq temp2 ; compare version y |
173 bra check_firmware_new ; is not equal -> reset CF and store new version in EEPROM | 170 bra check_firmware_new ; is not equal -> reset CF and store new version in EEPROM |
174 bra restart ; x and y are equal -> do not reset cf | 171 bra restart ; x and y are equal -> do not reset cf |
175 | 172 |
176 check_firmware_new: | 173 check_firmware_new: |
177 call speed_normal | |
178 call TFT_boot ; Initialize TFT (includes clear screen) | 174 call TFT_boot ; Initialize TFT (includes clear screen) |
179 clrf CCPR1L ; Backlight off | 175 clrf CCPR1L ; Backlight off |
180 WIN_TOP .50 | 176 WIN_TOP .50 |
181 WIN_LEFT .10 | 177 WIN_LEFT .10 |
182 movlw LOW 0x1E000 | 178 movlw LOW 0x1E000 |