Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/start.asm @ 649:ea2bc3b9224e
reset 5 diluents after update
author | heinrichsweikamp |
---|---|
date | Wed, 10 Oct 2012 21:25:05 +0200 |
parents | e6ac142e82b0 |
children | 8a8124f6b389 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/start.asm Wed Oct 10 20:59:35 2012 +0200 +++ b/code_part1/OSTC_code_asm_part1/start.asm Wed Oct 10 21:25:05 2012 +0200 @@ -159,7 +159,33 @@ movlw .0 movwf EEDATA call write_eeprom ; write byte - clrf EEADRH ; Reset EEADRH + clrf EEADRH ; Reset EEADRH + +; New in 2.52 Diluents stored seperately in EEPROM Bank0 +; EEPROM BANK0 Byte96-97: +; Diluent 1 (%O2,%He) +; EEPROM BANK0 Byte98-99: +; Diluent 2 (%O2,%He) +; EEPROM BANK0 Byte100-101: +; Diluent 3 (%O2,%He) +; EEPROM BANK0 Byte102-103: +; Diluent 4 (%O2,%He) +; EEPROM BANK0 Byte104-105: +; Diluent 5 (%O2,%He) + clrf EEADRH + movlw .21 + movwf EEDATA + write_int_eeprom d'96' + write_int_eeprom d'98' + write_int_eeprom d'100' + write_int_eeprom d'102' + write_int_eeprom d'104' + clrf EEDATA + write_int_eeprom d'97' + write_int_eeprom d'99' + write_int_eeprom d'101' + write_int_eeprom d'103' + write_int_eeprom d'105' restart: movlw b'00000011'