Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/start.asm @ 392:8e272339fb68 64kByte Logbook
1.91beta RC
author | heinrichsweikamp |
---|---|
date | Tue, 21 Jun 2011 17:37:32 +0200 |
parents | a847f416e67e |
children | 392c14a1d6d1 |
comparison
equal
deleted
inserted
replaced
391:ee5e1c65657c | 392:8e272339fb68 |
---|---|
126 incf EEADR,F ; set to 0x102 | 126 incf EEADR,F ; set to 0x102 |
127 movlw softwareversion_y | 127 movlw softwareversion_y |
128 movwf EEDATA | 128 movwf EEDATA |
129 call write_eeprom ; write version y | 129 call write_eeprom ; write version y |
130 clrf EEADRH ; Reset EEADRH | 130 clrf EEADRH ; Reset EEADRH |
131 | |
132 ; Reset CF48 | |
133 movlw d'1' | |
134 movwf EEADRH ; Bank1 | |
135 clrf EEDATA ; =0 | |
136 write_int_eeprom d'191' | |
137 write_int_eeprom d'192' | |
138 write_int_eeprom d'193' | |
139 write_int_eeprom d'194' ; Reset Default and Current Value to zero | |
131 ; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart" | 140 ; goto reset_all_cf ; resets all custom functions bank0 and bank1 and jumps to "restart" |
132 | 141 |
133 restart: | 142 restart: |
134 movlw b'00000011' | 143 movlw b'00000011' |
135 movwf T3CON ; Timer3 with 32768Hz clock running | 144 movwf T3CON ; Timer3 with 32768Hz clock running |