changeset 649:ea2bc3b9224e

reset 5 diluents after update
author heinrichsweikamp
date Wed, 10 Oct 2012 21:25:05 +0200
parents 436f6d8a2bf8
children 9463a031490e
files code_part1/OSTC_code_asm_part1/start.asm
diffstat 1 files changed, 27 insertions(+), 1 deletions(-) [+]
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'