; Generated by holtek-gcc v3.19, Mon Jan 18 15:31:18 2021
; 
; Configuration:
;       with long instruction
;       Single ROM, Multi-RAM
;       bits_per_rom_unit:16
;       with mp1
;       with tbhp, address(0x9)
;          Use tabrd-const
;       
; SFR address of long-instruction arch:
;    mp0 = -1,1,0
;    mp1 = 4,3,2
;    mp2 = 14,13,12
;    tbp = 9,7,8
;    acc = 5
;    pcl = 6
;    status = 10
;    bp = 11
;    intc = 33
;       
;       
; use 'tabrdc' instead of 'tabrd'
;       

#pragma translator "holtek-gcc 4.6.4" "3.19" "build 20130711"
; Rebuild 718

ir equ [2]
mp equ [3]
sbp equ [4]
acc equ [5]
bp equ [11]
tblp equ [7]
tbhp equ [9]
status equ [10]
c equ [10].0
ac equ [10].1
z equ [10].2
ov equ [10].3
cz equ [10].6
sc equ [10].7
intc equ [33]

extern ra:byte
extern rb:byte
extern rc:byte
extern rd:byte
extern re:byte
extern rf:byte
extern rg:byte
extern rh:byte
extern _Crom2Prom:near
extern _Crom2PromNext:near

RAMBANK 0 @BITDATASEC, @BITDATASEC1
@HCCINIT	.section 'data'
@HCCINIT0	.section 'data'
@BITDATASEC	 .section 'data'
@BITDATASEC1	 .section 'data'

#pragma debug scope 1 1
	extern __DELAY3:near
	extern __DELAYX3:near
	extern __DELAYX6:near
	extern __DELAYY5:near
	extern __DELAYY3:near
	extern _builtin_holtek_delay_2:byte
___pwrc equ [104]
___pgac0 equ [105]
___adcs equ [101]
public _fun_ADC_Power_Enable
#pragma debug scope 2 1
#line 88 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_Power_Enable .section 'code'
_fun_ADC_Power_Enable proc
#line 90 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [104].1
	clr [104].0
#line 92 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].6
	clr [105].5
#line 93 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [101]
#line 94 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [104].7
	ret
_fun_ADC_Power_Enable endp
#line 94 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_ADC_Power_Disable
#pragma debug scope 3 1
#line 105 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_Power_Disable .section 'code'
_fun_ADC_Power_Disable proc
	ret
_fun_ADC_Power_Disable endp
#line 105 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
___adcr0 equ [102]
___adcr1 equ [103]
public _fun_ADC_Enable
#pragma debug scope 4 1
#line 116 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_Enable .section 'code'
_fun_ADC_Enable proc
#line 117 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[0]
#line 118 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[25].0
#line 119 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[25].1
#line 120 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [102].5
#line 121 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [102].6
#line 122 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [102].7
#line 123 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [102].7
#line 124 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [102].7
#line 125 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].1
	ret
_fun_ADC_Enable endp
#line 125 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
___pgacs equ [107]
___pgac1 equ [106]
public _fun_VTP_INIT
#pragma debug scope 5 1
#line 24 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_VTP_INIT .section 'code'
_fun_VTP_INIT proc
#line 25 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [105].2
	set [105].1
	clr [105].0
#line 26 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].4
	clr [105].3
#line 27 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,117
	mov [107],a
	clr [106].5
	clr [106].4
#line 28 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].7
	set [103].6
	clr [103].5
	clr [102].4
	clr [102].3
	set [102].2
#line 29 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Power_Enable
#line 30 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Enable
	ret
_fun_VTP_INIT endp
#line 30 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_TEMP1_INIT
#pragma debug scope 6 1
#line 40 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_TEMP1_INIT .section 'code'
_fun_TEMP1_INIT proc
#line 41 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].2
	clr [105].1
	clr [105].0
#line 42 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].4
	clr [105].3
#line 43 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,54
	mov [107],a
	clr [106].5
	clr [106].4
#line 44 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].7
	set [103].6
	clr [103].5
	clr [102].4
	set [102].3
	set [102].2
#line 45 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Power_Enable
#line 46 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Enable
	ret
_fun_TEMP1_INIT endp
#line 46 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_TEMP2_INIT
#pragma debug scope 7 1
#line 56 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_TEMP2_INIT .section 'code'
_fun_TEMP2_INIT proc
#line 57 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].2
	clr [105].1
	clr [105].0
#line 58 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].4
	clr [105].3
#line 59 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,114
	mov [107],a
	set [106].5
	set [106].4
#line 60 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].7
	set [103].6
	clr [103].5
	clr [102].4
	set [102].3
	set [102].2
#line 61 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Power_Enable
#line 62 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Enable
	ret
_fun_TEMP2_INIT endp
#line 62 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_BAT_INIT
#pragma debug scope 8 1
#line 72 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_BAT_INIT .section 'code'
_fun_BAT_INIT proc
#line 73 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].2
	clr [105].1
	clr [105].0
#line 74 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [105].4
	clr [105].3
#line 75 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,22
	mov [107],a
	set [106].5
	set [106].4
#line 76 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].7
	set [103].6
	clr [103].5
	clr [102].4
	set [102].3
	set [102].2
#line 77 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Power_Enable
#line 78 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Enable
	ret
_fun_BAT_INIT endp
#line 78 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_ADC_Disable
#pragma debug scope 9 1
#line 135 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_Disable .section 'code'
_fun_ADC_Disable proc
#line 136 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[0]
#line 137 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[25].0
#line 138 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [102].6
#line 139 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [102].7
#line 140 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [102].5
	ret
_fun_ADC_Disable endp
#line 140 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_filter_adc
#pragma debug scope 10 1
#line 151 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_filter_adc .section 'code'
_fun_filter_adc proc
    local _fun_filter_adc_2 db 8 dup(?)	; 0,8
#line 157 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,_SDK_ADC[1]
	mov _fun_filter_adc_2[0],a
	mov a,_SDK_ADC[2]
	mov _fun_filter_adc_2[1],a
#line 158 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,_fun_filter_adc_2[0]
	mov _fun_filter_adc_2[2],a
	mov a,_fun_filter_adc_2[1]
	mov _fun_filter_adc_2[3],a
#line 157 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,10
	mov rh,a
#line 153 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr rd
	clr re
	clr rf
	clr rg
#line 160 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr ra
_L13:
#line 162 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,ra
	mov rb,a
	clr rc
	clr c
	rlc rb
	rlc rc
	mov a,low (offset _SDK_ADC+1)
	add a,rb
	mov mp,a
	mov a,high (offset _SDK_ADC+1)
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rb
	addm a,rd
	mov a,rc
	adcm a,re
	clr acc
	sz rc.7
	set acc
	adcm a,rf
	adcm a,rg
#line 163 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,_fun_filter_adc_2[0]
	sub a,rb
	mov a,_fun_filter_adc_2[1]
	sbc a,rc
	snz sc
	jmp _L10
	mov a,rb
	mov _fun_filter_adc_2[0],a
	mov a,rc
	mov _fun_filter_adc_2[1],a
_L10:
#line 164 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,rb
	sub a,_fun_filter_adc_2[2]
	mov a,rc
	sbc a,_fun_filter_adc_2[3]
	snz sc
	jmp _L11
	mov a,rb
	mov _fun_filter_adc_2[2],a
	mov a,rc
	mov _fun_filter_adc_2[3],a
_L11:
#line 160 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	inc ra
	sdz rh
	jmp _L13
#line 167 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,rd
	sub a,_fun_filter_adc_2[2]
	mov _fun_filter_adc_2[4],a
	mov a,re
	sbc a,_fun_filter_adc_2[3]
	mov _fun_filter_adc_2[5],a
	clr acc
	sz _fun_filter_adc_2[3].7
	set acc
	mov _fun_filter_adc_2[6],a
	mov _fun_filter_adc_2[7],a
	mov a,rf
	sbcm a,_fun_filter_adc_2[6]
	mov a,rg
	sbcm a,_fun_filter_adc_2[7]
	mov a,_fun_filter_adc_2[4]
	sub a,_fun_filter_adc_2[0]
	mov _fun_filter_adc_2[4],a
	mov a,_fun_filter_adc_2[5]
	sbc a,_fun_filter_adc_2[1]
	mov _fun_filter_adc_2[5],a
	mov a,_fun_filter_adc_2[6]
	clr _fun_filter_adc_2[6]
	sz _fun_filter_adc_2[1].7
	set _fun_filter_adc_2[6]
	sbcm a,_fun_filter_adc_2[6]
	mov a,_fun_filter_adc_2[7]
	clr _fun_filter_adc_2[7]
	sz _fun_filter_adc_2[1].7
	set _fun_filter_adc_2[7]
	sbcm a,_fun_filter_adc_2[7]
	mov a,_fun_filter_adc_2[4]
	mov ra,a
	mov a,_fun_filter_adc_2[5]
	mov rb,a
	mov a,_fun_filter_adc_2[6]
	mov rc,a
	mov a,_fun_filter_adc_2[7]
	mov rd,a
	mov a,3
_LI1:
	clr c
	sz rd.7
	set c
	rrc rd
	rrc rc
	rrc rb
	rrc ra
	sdz acc
	jmp _LI1
	mov a,ra
	mov _SDK_ADC[21],a
	mov a,rb
	mov _SDK_ADC[22],a
	mov a,rc
	mov _SDK_ADC[23],a
	mov a,rd
	mov _SDK_ADC[24],a
	ret
_fun_filter_adc endp
#line 167 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
___adrl equ [108]
___adrm equ [109]
___adrh equ [110]
public _fun_ADC_Polling
#pragma debug scope 11 1
#line 177 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_Polling .section 'code'
_fun_ADC_Polling proc
    local _fun_ADC_Polling_2 db 1 dup(?)	; 0,1
#line 179 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	snz [103].1
	jmp _L15
#pragma debug scope 12 11
;begin block, line: 179.-1
#pragma debug scope 13 12
;begin block, line: 179.-1
#line 182 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [103].2
#line 184 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[21]
	clr _SDK_ADC[22]
	clr _SDK_ADC[23]
	clr _SDK_ADC[24]
#line 185 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,[108]
	mov _SDK_ADC[21],a
#line 186 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,[109]
	mov _SDK_ADC[22],a
#line 187 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,[110]
	mov ra,a
	mov a,ra
	mov _SDK_ADC[23],a
#line 188 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	snz ra.7
	jmp _L18
#line 190 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set _SDK_ADC[24]
_L18:
#line 193 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,_SDK_ADC[21]
	mov rd,a
	mov a,_SDK_ADC[22]
	mov re,a
	mov a,_SDK_ADC[23]
	mov rf,a
	mov a,_SDK_ADC[24]
	mov rg,a
	mov a,re
	mov rd,a
	mov a,rf
	mov re,a
	mov a,rg
	mov rf,a
	clr rg
	sz rf.7
	set rg
	mov a,rd
	mov _SDK_ADC[21],a
	mov a,re
	mov _SDK_ADC[22],a
	mov a,rf
	mov _SDK_ADC[23],a
	mov a,rg
	mov _SDK_ADC[24],a
#line 194 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].2
#line 195 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr [103].1
#line 198 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	inca _SDK_ADC[0]
	mov _fun_ADC_Polling_2[0],a
	mov a,_fun_ADC_Polling_2[0]
	mov _SDK_ADC[0],a
#line 199 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	sz _SDK_ADC[25].0
	jmp _L19
#line 202 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,3
	sub a,_fun_ADC_Polling_2[0]
	sz c
	jmp _L15
#line 204 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[0]
#line 205 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set _SDK_ADC[25].0
	jmp _L15
_L19:
#line 210 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,255
	add a,_fun_ADC_Polling_2[0]
	mov rb,a
	mov a,255
	clr rc
	adcm a,rc
	clr c
	rlc rb
	rlc rc
	mov a,low (offset _SDK_ADC+1)
	add a,rb
	mov mp,a
	mov a,high (offset _SDK_ADC+1)
	adc a,rc
	mov sbp,a
	mov a,rd
	mov ir,a
	inc mp
	mov a,re
	mov ir,a
#line 211 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	mov a,9
	sub a,_fun_ADC_Polling_2[0]
	sz c
	jmp _L15
#line 214 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_filter_adc
#line 215 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set _SDK_ADC[25].1
#line 216 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[0]
#line 217 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	clr _SDK_ADC[25].0
_L15:
#pragma debug scope 12 11
#pragma debug scope 11 1
	ret
_fun_ADC_Polling endp
#line 217 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_ADC_NTC_Test
#pragma debug scope 14 1
#line 234 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_NTC_Test .section 'code'
_fun_ADC_NTC_Test proc
#line 235 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_TEMP2_INIT
_L25:
#line 238 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
;# 238 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c" 1
	clr wdt
#line 239 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Polling
	jmp _L25
	ret
_fun_ADC_NTC_Test endp
#line 239 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
___dsopc equ [112]
public _fun_ADC_OPA_ZeroTest
#pragma debug scope 15 1
#line 250 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_OPA_ZeroTest .section 'code'
_fun_ADC_OPA_ZeroTest proc
#line 251 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_VTP_INIT
#line 252 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [112].7
	set [112].1
	set [112].0
	clr [112].3
	set [112].2
_L27:
#line 255 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
;# 255 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c" 1
	clr wdt
#line 256 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Polling
	jmp _L27
	ret
_fun_ADC_OPA_ZeroTest endp
#line 256 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
public _fun_ADC_OPA_VTPTest
#pragma debug scope 16 1
#line 266 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
_fun_ADC_OPA_VTPTest .section 'code'
_fun_ADC_OPA_VTPTest proc
#line 267 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_VTP_INIT
#line 268 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	set [112].7
	clr [112].1
	clr [112].0
	clr [112].3
	set [112].2
_L29:
#line 271 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
;# 271 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c" 1
	clr wdt
#line 272 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
	call _fun_ADC_Polling
	jmp _L29
	ret
_fun_ADC_OPA_VTPTest endp
#line 272 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
#pragma debug scope 1 1
#line 15 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\ADC.c"
public _SDK_ADC
@HCCINIT0_SDK_ADC .section 'data'
_SDK_ADC	db 26 dup(0)
#pragma debug struct_begin 42 ""
#pragma debug field 0 8 "byte0"
#pragma debug field 0 8 "byte1"
#pragma debug field 0 8 "byte2"
#pragma debug field 0 8 "byte3"
#pragma debug struct_end
#pragma debug struct_begin 43 "__32_bits"
#pragma debug field 21 8 0 1 "b0" ;0,1
#pragma debug field 21 8 0 1 "b1" ;1,1
#pragma debug field 21 8 0 1 "b2" ;2,1
#pragma debug field 21 8 0 1 "b3" ;3,1
#pragma debug field 21 8 0 1 "b4" ;4,1
#pragma debug field 21 8 0 1 "b5" ;5,1
#pragma debug field 21 8 0 1 "b6" ;6,1
#pragma debug field 21 8 0 1 "b7" ;7,1
#pragma debug field 21 8 1 1 "b8" ;8,1
#pragma debug field 21 8 0 1 "b9" ;9,1
#pragma debug field 21 8 0 1 "b10" ;10,1
#pragma debug field 21 8 0 1 "b11" ;11,1
#pragma debug field 21 8 0 1 "b12" ;12,1
#pragma debug field 21 8 0 1 "b13" ;13,1
#pragma debug field 21 8 0 1 "b14" ;14,1
#pragma debug field 21 8 0 1 "b15" ;15,1
#pragma debug field 21 8 1 1 "b16" ;16,1
#pragma debug field 21 8 0 1 "b17" ;17,1
#pragma debug field 21 8 0 1 "b18" ;18,1
#pragma debug field 21 8 0 1 "b19" ;19,1
#pragma debug field 21 8 0 1 "b20" ;20,1
#pragma debug field 21 8 0 1 "b21" ;21,1
#pragma debug field 21 8 0 1 "b22" ;22,1
#pragma debug field 21 8 0 1 "b23" ;23,1
#pragma debug field 21 8 1 1 "b24" ;24,1
#pragma debug field 21 8 0 1 "b25" ;25,1
#pragma debug field 21 8 0 1 "b26" ;26,1
#pragma debug field 21 8 0 1 "b27" ;27,1
#pragma debug field 21 8 0 1 "b28" ;28,1
#pragma debug field 21 8 0 1 "b29" ;29,1
#pragma debug field 21 8 0 1 "b30" ;30,1
#pragma debug field 21 8 0 1 "b31" ;31,1
#pragma debug struct_end
#pragma debug union_begin 44 "__32_type"
#pragma debug field 2 42 "byte"
#pragma debug field 2 43 "bits"
#pragma debug field 0 14 "U32"
#pragma debug field 0 13 "S32"
#pragma debug union_end
#pragma debug struct_begin 45 "__8_bits"
#pragma debug field 21 8 0 1 "b0" ;0,1
#pragma debug field 21 8 0 1 "b1" ;1,1
#pragma debug field 21 8 0 1 "b2" ;2,1
#pragma debug field 21 8 0 1 "b3" ;3,1
#pragma debug field 21 8 0 1 "b4" ;4,1
#pragma debug field 21 8 0 1 "b5" ;5,1
#pragma debug field 21 8 0 1 "b6" ;6,1
#pragma debug field 21 8 0 1 "b7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 46 "__8_type"
#pragma debug field 2 45 "bits"
#pragma debug field 0 8 "U8"
#pragma debug field 0 8 "S8"
#pragma debug union_end
#pragma debug struct_begin 47 ""
#pragma debug field 0 8 "SampleCount"
#pragma debug field 1 11 10 "AdcBuff"
#pragma debug field 3 44 "AdcData"
#pragma debug field 3 46 "Status"
#pragma debug struct_end
#pragma debug variable 47 1 _SDK_ADC "SDK_ADC"

@HCCINIT .section 'data'
#pragma debug struct_begin 48 "__adcs_bits"
#pragma debug field 21 8 0 1 "__adck0" ;0,1
#pragma debug field 21 8 0 1 "__adck1" ;1,1
#pragma debug field 21 8 0 1 "__adck2" ;2,1
#pragma debug field 21 8 0 1 "__adck3" ;3,1
#pragma debug field 21 8 0 1 "__adck4" ;4,1
#pragma debug field 21 8 0 3 ;5,3
#pragma debug struct_end
#pragma debug union_begin 49 ""
#pragma debug field 2 48 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 49 1 ___adcs "__adcs" 1
#pragma debug struct_begin 50 "__adcr0_bits"
#pragma debug field 21 8 0 1 "__vrefs" ;0,1
#pragma debug field 21 8 0 1 ;1,1
#pragma debug field 21 8 0 1 "__ador0" ;2,1
#pragma debug field 21 8 0 1 "__ador1" ;3,1
#pragma debug field 21 8 0 1 "__ador2" ;4,1
#pragma debug field 21 8 0 1 "__adoff" ;5,1
#pragma debug field 21 8 0 1 "__adslp" ;6,1
#pragma debug field 21 8 0 1 "__adrst" ;7,1
#pragma debug struct_end
#pragma debug union_begin 51 ""
#pragma debug field 2 50 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 51 1 ___adcr0 "__adcr0" 1
#pragma debug struct_begin 52 "__adcr1_bits"
#pragma debug field 21 8 0 1 ;0,1
#pragma debug field 21 8 0 1 "__eoc" ;1,1
#pragma debug field 21 8 0 1 "__adcdl" ;2,1
#pragma debug field 21 8 0 2 ;3,2
#pragma debug field 21 8 0 1 "__flms0" ;5,1
#pragma debug field 21 8 0 1 "__flms1" ;6,1
#pragma debug field 21 8 0 1 "__flms2" ;7,1
#pragma debug struct_end
#pragma debug union_begin 53 ""
#pragma debug field 2 52 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 53 1 ___adcr1 "__adcr1" 1
#pragma debug struct_begin 54 "__pwrc_bits"
#pragma debug field 21 8 0 1 "__ldovs0" ;0,1
#pragma debug field 21 8 0 1 "__ldovs1" ;1,1
#pragma debug field 21 8 0 1 "__ldobps" ;2,1
#pragma debug field 21 8 0 4 ;3,4
#pragma debug field 21 8 0 1 "__ldoen" ;7,1
#pragma debug struct_end
#pragma debug union_begin 55 ""
#pragma debug field 2 54 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 55 1 ___pwrc "__pwrc" 1
#pragma debug struct_begin 56 "__pgac0_bits"
#pragma debug field 21 8 0 1 "__pgs0" ;0,1
#pragma debug field 21 8 0 1 "__pgs1" ;1,1
#pragma debug field 21 8 0 1 "__pgs2" ;2,1
#pragma debug field 21 8 0 1 "__ags0" ;3,1
#pragma debug field 21 8 0 1 "__ags1" ;4,1
#pragma debug field 21 8 0 1 "__vgs0" ;5,1
#pragma debug field 21 8 0 1 "__vgs1" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 57 ""
#pragma debug field 2 56 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 57 1 ___pgac0 "__pgac0" 1
#pragma debug struct_begin 58 "__pgac1_bits"
#pragma debug field 21 8 0 1 ;0,1
#pragma debug field 21 8 0 1 "__dcset0" ;1,1
#pragma debug field 21 8 0 1 "__dcset1" ;2,1
#pragma debug field 21 8 0 1 "__dcset2" ;3,1
#pragma debug field 21 8 0 1 "__inx0" ;4,1
#pragma debug field 21 8 0 1 "__inx1" ;5,1
#pragma debug field 21 8 0 1 "__inis" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 59 ""
#pragma debug field 2 58 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 59 1 ___pgac1 "__pgac1" 1
#pragma debug struct_begin 60 "__pgacs_bits"
#pragma debug field 21 8 0 1 "__chsp0" ;0,1
#pragma debug field 21 8 0 1 "__chsp1" ;1,1
#pragma debug field 21 8 0 1 "__chsp2" ;2,1
#pragma debug field 21 8 0 1 "__chsp3" ;3,1
#pragma debug field 21 8 0 1 "__chsn0" ;4,1
#pragma debug field 21 8 0 1 "__chsn1" ;5,1
#pragma debug field 21 8 0 1 "__chsn2" ;6,1
#pragma debug field 21 8 0 1 "__chsn3" ;7,1
#pragma debug struct_end
#pragma debug union_begin 61 ""
#pragma debug field 2 60 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 61 1 ___pgacs "__pgacs" 1
#pragma debug variable 8 1 ___adrl "__adrl" 1
#pragma debug variable 8 1 ___adrm "__adrm" 1
#pragma debug variable 8 1 ___adrh "__adrh" 1
#pragma debug struct_begin 62 "__dsopc_bits"
#pragma debug field 21 8 0 1 "__opp0" ;0,1
#pragma debug field 21 8 0 1 "__opp1" ;1,1
#pragma debug field 21 8 0 1 "__opn0" ;2,1
#pragma debug field 21 8 0 1 "__opn1" ;3,1
#pragma debug field 21 8 0 3 ;4,3
#pragma debug field 21 8 0 1 "__dsopen" ;7,1
#pragma debug struct_end
#pragma debug union_begin 63 ""
#pragma debug field 2 62 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 63 1 ___dsopc "__dsopc" 1

; 
; Generated by holtek-gcc v3.19, Mon Jan 18 15:31:18 2021
; Rebuild 718
; end of file
