comparison 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
comparison
equal deleted inserted replaced
648:436f6d8a2bf8 649:ea2bc3b9224e
157 movlw HIGH 0x103 157 movlw HIGH 0x103
158 movwf EEADRH ; OLED brightness (=0: Eco, =1: High) 158 movwf EEADRH ; OLED brightness (=0: Eco, =1: High)
159 movlw .0 159 movlw .0
160 movwf EEDATA 160 movwf EEDATA
161 call write_eeprom ; write byte 161 call write_eeprom ; write byte
162 clrf EEADRH ; Reset EEADRH 162 clrf EEADRH ; Reset EEADRH
163
164 ; New in 2.52 Diluents stored seperately in EEPROM Bank0
165 ; EEPROM BANK0 Byte96-97:
166 ; Diluent 1 (%O2,%He)
167 ; EEPROM BANK0 Byte98-99:
168 ; Diluent 2 (%O2,%He)
169 ; EEPROM BANK0 Byte100-101:
170 ; Diluent 3 (%O2,%He)
171 ; EEPROM BANK0 Byte102-103:
172 ; Diluent 4 (%O2,%He)
173 ; EEPROM BANK0 Byte104-105:
174 ; Diluent 5 (%O2,%He)
175 clrf EEADRH
176 movlw .21
177 movwf EEDATA
178 write_int_eeprom d'96'
179 write_int_eeprom d'98'
180 write_int_eeprom d'100'
181 write_int_eeprom d'102'
182 write_int_eeprom d'104'
183 clrf EEDATA
184 write_int_eeprom d'97'
185 write_int_eeprom d'99'
186 write_int_eeprom d'101'
187 write_int_eeprom d'103'
188 write_int_eeprom d'105'
163 189
164 restart: 190 restart:
165 movlw b'00000011' 191 movlw b'00000011'
166 movwf T3CON ; Timer3 with 32768Hz clock running 192 movwf T3CON ; Timer3 with 32768Hz clock running
167 clrf TMR3L 193 clrf TMR3L