comparison code_part1/OSTC_code_asm_part1/menu_reset.asm @ 605:c3336f944e53

reset CFIII properly
author heinrichsweikamp
date Wed, 04 Jul 2012 22:21:07 +0200
parents f3735da18809
children bbf5e1506c39
comparison
equal deleted inserted replaced
604:f8239a6279b8 605:c3336f944e53
406 write_int_eeprom d'38' ; reset mix3 to ppO2=1.20bar 406 write_int_eeprom d'38' ; reset mix3 to ppO2=1.20bar
407 407
408 clrf nofly_time+0 ; Clear nofly time 408 clrf nofly_time+0 ; Clear nofly time
409 clrf nofly_time+1 ; Clear nofly time 409 clrf nofly_time+1 ; Clear nofly time
410 410
411 reset_all_cf_bank0: 411 reset_all_cf_bank0:
412 clrf EEADRH 412 clrf EEADRH ; EEPROM BANK 0
413 movlw d'127' ; address of low byte of first custom function 413 movlw d'127' ; address of low byte of first custom function
414 movwf EEADR 414 movwf EEADR
415 415
416 movlw LOW cf_default_table0 ; Load PROM pointer. 416 movlw LOW cf_default_table0 ; Load PROM pointer.
417 movwf TBLPTRL,A 417 movwf TBLPTRL,A
456 rcall reset_customfunction ; saves default and current value 456 rcall reset_customfunction ; saves default and current value
457 bra cf_bank2_loop 457 bra cf_bank2_loop
458 458
459 cf_bank2_end: 459 cf_bank2_end:
460 clrf EEADRH ; EEPROM BANK 0 460 clrf EEADRH ; EEPROM BANK 0
461
462 ;call reset_external_eeprom ; delete profile memory
463 return 461 return
464 462
465 reset_gases: 463 reset_gases:
466 clrf EEADRH ; EEPROM BANK 0 464 clrf EEADRH ; EEPROM BANK 0
467 465