comparison code_part1/OSTC_code_asm_part1/surfmode.asm @ 789:380a07e4fc15

work on new battery information output
author heinrichsweikamp
date Thu, 28 Aug 2014 16:34:55 +0200
parents 4452837aff37
children c50296c3059e
comparison
equal deleted inserted replaced
788:9eba1eb8ca38 789:380a07e4fc15
313 clrf EEADRH 313 clrf EEADRH
314 btfss charge_done ; charge done? 314 btfss charge_done ; charge done?
315 bra test_charger2 ; No, add incomplete cycle! 315 bra test_charger2 ; No, add incomplete cycle!
316 316
317 ; Yes, store all data for complete cycle 317 ; Yes, store all data for complete cycle
318
319 clrf on_time_seconds+0
320 clrf on_time_seconds+1
321 clrf on_time_seconds+2 ; Clear on-time counter
322
318 bcf charge_started ; Clear flag 323 bcf charge_started ; Clear flag
319 bcf charge_done ; Clear flag 324 bcf charge_done ; Clear flag
320 ; Store incomplete cycles 325 ; Store incomplete cycles
321 read_int_eeprom d'50' ; Read byte (stored in EEDATA) 326 read_int_eeprom d'50' ; Read byte (stored in EEDATA)
322 movff EEDATA,temp1 ; Low byte 327 movff EEDATA,temp1 ; Low byte