comparison src/i2c.asm @ 211:4147cd5c0c8e

minor
author heinrichsweikamp
date Wed, 10 Dec 2014 09:13:36 +0100
parents dcd513840c6c
children 23311219dacc
comparison
equal deleted inserted replaced
209:56276a2418f9 211:4147cd5c0c8e
518 movff SSP1BUF,sub_a+0 ; battery_acumulated_charge+0 518 movff SSP1BUF,sub_a+0 ; battery_acumulated_charge+0
519 bsf SSP1CON2,PEN ; Stop condition 519 bsf SSP1CON2,PEN ; Stop condition
520 rcall WaitMSSP 520 rcall WaitMSSP
521 521
522 ; Compute batt_percent 522 ; Compute batt_percent
523 ; charge-battery_offset/382 523 ; (charge-battery_offset)/365
524 movlw LOW battery_offset 524 movlw LOW battery_offset
525 movwf sub_b+0 525 movwf sub_b+0
526 movlw HIGH battery_offset 526 movlw HIGH battery_offset
527 movwf sub_b+1 527 movwf sub_b+1
528 call subU16 ; sub_c = sub_a - sub_b (with signed values) 528 call subU16 ; sub_c = sub_a - sub_b (with signed values)