comparison code_part1/OSTC_code_asm_part1/start.asm @ 493:4b2add2adde3

no more cf48 reset after update
author heinrichsweikamp
date Sun, 06 Nov 2011 16:59:27 +0100
parents f53aa96ff2f4
children 2ac77db9c150
comparison
equal deleted inserted replaced
492:19b9e19ea4da 493:4b2add2adde3
132 movwf EEDATA 132 movwf EEDATA
133 call write_eeprom ; write version y 133 call write_eeprom ; write version y
134 clrf EEADRH ; Reset EEADRH 134 clrf EEADRH ; Reset EEADRH
135 135
136 ; Reset CF48 136 ; Reset CF48
137 movlw d'1' 137 ; movlw d'1'
138 movwf EEADRH ; EEPROM Bank1 138 ; movwf EEADRH ; EEPROM Bank1
139 clrf EEDATA ; =0 139 ; clrf EEDATA ; =0
140 write_int_eeprom d'191' 140 ; write_int_eeprom d'191'
141 write_int_eeprom d'192' 141 ; write_int_eeprom d'192'
142 write_int_eeprom d'193' 142 ; write_int_eeprom d'193'
143 write_int_eeprom d'194' ; Reset Default and Current Value to zero 143 ; write_int_eeprom d'194' ; Reset Default and Current Value to zero
144 clrf EEADRH 144 ; clrf EEADRH
145 145 ;
146 ; reset gases (Bug in 2.0 stable)
147 call reset_gases
148 ; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart" 146 ; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart"
149 147
150 restart: 148 restart:
151 movlw b'00000011' 149 movlw b'00000011'
152 movwf T3CON ; Timer3 with 32768Hz clock running 150 movwf T3CON ; Timer3 with 32768Hz clock running