Skip to content

Commit

Permalink
perf: Remove adc conversion call
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasvr committed Oct 25, 2020
1 parent 753bb73 commit 1d69c07
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions Bluejay.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1478,21 +1478,6 @@ set_pwm_limit_high_rpm_store:
ret


;**** **** **** **** **** **** **** **** **** **** **** **** ****
;
; Start ADC conversion
;
; No assumptions
;
; Start conversion used for measuring power supply voltage
;
;**** **** **** **** **** **** **** **** **** **** **** **** ****
start_adc_conversion:
; Start adc
Start_Adc
ret


;**** **** **** **** **** **** **** **** **** **** **** **** ****
;
; Check temperature, power supply voltage and limit power
Expand Down Expand Up @@ -3497,7 +3482,7 @@ init_start:
;**** **** **** **** ****
mov Adc_Conversion_Cnt, #8 ; Make sure a temp reading is done
call wait1ms
call start_adc_conversion
Start_Adc ; Start adc conversion
read_initial_temp:
jnb ADC0CN0_ADINT, read_initial_temp
Read_Adc_Result ; Read initial temperature
Expand Down Expand Up @@ -3629,7 +3614,7 @@ run5:
; Run 6 = B(p-on) + A(n-pwm) - comparator C evaluated
; Out_cC changes from high to low
run6:
call start_adc_conversion
Start_Adc ; Start adc conversion
call wait_for_comp_out_low
; setup_comm_wait
; evaluate_comparator_integrity
Expand Down

0 comments on commit 1d69c07

Please # to comment.