comparison src/adc_lightsensor.asm @ 636:2737ddc643bb

3.11 release
author heinrichsweikamp
date Mon, 25 May 2020 17:35:30 +0200
parents 4050675965ea
children 8c1f1f334275
comparison
equal deleted inserted replaced
635:9a64914a8fca 636:2737ddc643bb
64 bcf cv_active ; clear CV charing status by default 64 bcf cv_active ; clear CV charing status by default
65 bcf cc_active ; clear CC charing status ny default 65 bcf cc_active ; clear CC charing status ny default
66 bcf LEDr ; switch off red LED 66 bcf LEDr ; switch off red LED
67 bcf TRISJ,2 ; activate Chrg-Out output 67 bcf TRISJ,2 ; activate Chrg-Out output
68 bsf CHRG_OUT ; start charger 68 bsf CHRG_OUT ; start charger
69 nop ; Ignore some noise
70 nop
71 nop
72 nop
69 btfss CHRG_IN ; charging? 73 btfss CHRG_IN ; charging?
70 bra charge_cc_active ; YES - charging in CC mode 74 bra charge_cc_active ; YES - charging in CC mode
71 bcf CHRG_OUT ; NO - stop charger 75 bcf CHRG_OUT ; NO - stop charger
72 bsf TRISJ,2 ; - set Chrg-Out output to high impedance 76 bsf TRISJ,2 ; - set Chrg-Out output to high impedance
73 WAITMS d'1' ; - wait 1 ms 77 WAITMS d'1' ; - wait 1 ms