Mercurial > public > hwos_code
comparison src/adc_lightsensor.asm @ 266:6a1ac89e2098
Charge done indicator (cR and 2 Hardware)
| author | heinrichsweikamp |
|---|---|
| date | Tue, 14 Apr 2015 16:16:14 +0200 |
| parents | e1cd6848863d |
| children | bddb63835035 |
comparison
equal
deleted
inserted
replaced
| 265:7eddbcb27109 | 266:6a1ac89e2098 |
|---|---|
| 53 btfsc CHRG_IN | 53 btfsc CHRG_IN |
| 54 return | 54 return |
| 55 ;cv_active: | 55 ;cv_active: |
| 56 decfsz safety_stop_countdown,F | 56 decfsz safety_stop_countdown,F |
| 57 return | 57 return |
| 58 movlw .16 | 58 movlw .15 |
| 59 cpfslt batt_voltage+1 ; Batt Voltage more then 16*256mV (4,096V)? | 59 cpfsgt batt_voltage+1 ; Batt Voltage >= 16*256mV (4,096V)? |
| 60 bra charge_cc_active ; No | 60 bra charge_cc_active ; No |
| 61 bsf cc_active | 61 bsf cc_active |
| 62 bsf cv_active | 62 bsf cv_active |
| 63 bsf LEDr ; Indicate charging | 63 bsf LEDr ; Indicate charging |
| 64 call lt2942_charge_done ; Reset accumulating registers to 0xFFFF | 64 call lt2942_charge_done ; Reset accumulating registers to 0xFFFF |
