Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/start.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 | 620c95e23e32 |
children | a847f416e67e |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Fri Jun 17 00:13:36 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Sat Jun 18 11:26:22 2011 +0200 @@ -95,9 +95,9 @@ movlb b'00000001' ; select ram bank 1 ; check firmware and reset Custom Functions after an update - movlw LOW 0x101 + movlw d'1' movwf EEADR - movlw HIGH 0x101 + movlw d'1' movwf EEADRH call read_eeprom ; read current version x movff EEDATA,temp1 @@ -116,9 +116,9 @@ bra restart ; x and y are equal -> do not reset cf check_firmware_new: - movlw LOW 0x101 ; store current version in EEPROM + movlw d'1' ; store current version in EEPROM movwf EEADR - movlw HIGH 0x101 + movlw d'1' movwf EEADRH movlw softwareversion_x movwf EEDATA