Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/altimeter.asm @ 384:904863f96582 64kByte Logbook
Work-Around for "Reset all" overwriting 0x00 to 0x04 in EEPROM Bank1
author | heinrichsweikamp |
---|---|
date | Sat, 18 Jun 2011 11:26:22 +0200 |
parents | 797e2ac42d24 |
children | 6e57b5bb98ce |
comparison
equal
deleted
inserted
replaced
383:d7a70654d968 | 384:904863f96582 |
---|---|
362 movlw d'1' ; Upper EEPROM Bank | 362 movlw d'1' ; Upper EEPROM Bank |
363 movwf EEADRH | 363 movwf EEADRH |
364 movlw 4*(.49-.32) + 0x82 ; CF#49 low byte address in EEPROM | 364 movlw 4*(.49-.32) + 0x82 ; CF#49 low byte address in EEPROM |
365 movwf EEADR | 365 movwf EEADR |
366 call write_eeprom | 366 call write_eeprom |
367 clrf EEADRH ; Reset EEADRH for compatibility | |
367 bra altimeter_menu_2 | 368 bra altimeter_menu_2 |
368 | 369 |
369 ;---- Reset sea level pressure to reference ---------------------------------- | 370 ;---- Reset sea level pressure to reference ---------------------------------- |
370 alt_menu_reset: | 371 alt_menu_reset: |
371 rcall altimeter_reset | 372 rcall altimeter_reset |