comparison code_part1/OSTC_code_asm_part1/start.asm @ 685:aebb6d039249

Use 4byte in EEPROM for diluents (Same as OC gases) Show active gas indicator below first gas in surfacemode
author heinrichsweikamp
date Sat, 26 Jan 2013 14:11:07 +0100
parents 6e456a6398e0
children 8c293e76a517
comparison
equal deleted inserted replaced
684:99b3fb0ab4c7 685:aebb6d039249
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 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'
189
190 restart: 164 restart:
191 movlw b'00000011' 165 movlw b'00000011'
192 movwf T3CON ; Timer3 with 32768Hz clock running 166 movwf T3CON ; Timer3 with 32768Hz clock running
193 clrf TMR3L 167 clrf TMR3L
194 nop 168 nop