; Generated by holtek-gcc v3.19, Thu Dec 24 17:24:38 2020
; 
; Configuration:
;       without long instruction
;       Single ROM, Multi-RAM
;       bits_per_rom_unit:16
;       with mp1
;       with tbhp, address(0x9)
;          Use tabrd-const
;       
;       
;       
; 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 [1]
acc equ [5]
bp equ [4]
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
intc equ [11]

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 @HCCINIT, @HCCINIT0

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
___tmrc equ [58]
___tmral equ [57]
___tmrah equ [56]
___tmrbl equ [60]
___tmrbh equ [59]
public _fun_RCInit
#pragma debug scope 2 1
#line 318 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
_fun_RCInit .section 'code'
_fun_RCInit proc
#line 319 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [58].4
#line 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100>263690
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 100of the argument exceeds the maxinum 263690'
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100<0
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 100 of the argument exceeds the mininum 0'
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100==0
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	JMP $
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100==1
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100==2
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 100==3
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (100<8) AND (100>3)
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAY3 + 7 -100
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (100< 0404h) AND (100>7)
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,100/4-1
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX3 + 3 -(100 MOD 4)
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (100< 0x40B) AND (100> 0403h)
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0 
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX6 + 0x40a -100
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (100 >= 0x40b) AND ((((100-9)%0402h)/4+1)>256)
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(100-9)/0402h
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY5 +5- (((100-9)%0402h)%6)
	ENDIF
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (100 >= 0x40b) AND ((((100-9)%0402h)/4+1)<=256)
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(100-9)/0402h
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,((100-9)%0402h)/4+1
;# 320 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY3 +3-(((100-9)%0402h)%4)
	ENDIF
#line 321 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 321 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	clr wdt
#line 323 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,84
	mov [57],a
#line 324 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,192
	mov [56],a
#line 325 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [60]
#line 326 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [59]
#line 328 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [58].4
#line 329 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set [58].4
	ret
_fun_RCInit endp
#line 329 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
#pragma debug scope 1 1
___adcr equ [61]
___intc0 equ [28]
public _fun_RC_Calibrate
#pragma debug scope 3 1
#line 19 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
_fun_RC_Calibrate .section 'code'
_fun_RC_Calibrate proc
    local _fun_RC_Calibrate_2 db 3 dup(?)	; 0,3
#line 27 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8_System_flag[0].4
#line 28 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_lu8v_RCCorr_Mode[0]
	mov _fun_RC_Calibrate_2[2],a
	mov a,_fun_RC_Calibrate_2[2]
	sub a,0
	sz z
	jmp _L4
	sub a,(1)-(0)
	sz z
	jmp _L5
#line 28 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_fun_RC_Calibrate_2[2]
	sub a,2
	sz z
	jmp _L6
	sub a,(3)-(2)
	sz z
	jmp _L7
	mov a,_fun_RC_Calibrate_2[2]
	sub a,4
	sz z
	jmp _L8
	mov a,_fun_RC_Calibrate_2[2]
	sub a,5
	snz z
	jmp _L2
	jmp _L31
_L4:
#line 31 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,0
	call _fun_LCD_Full
#line 32 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _LCD_Number_Display_2[2]
	mov a,37
	mov _LCD_Number_Display_2[0],a
	clr _LCD_Number_Display_2[1]
	call _LCD_Number_Display
#line 33 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu16_CorrCount[0]
	clr _gu16_CorrCount[1]
	jmp _L28
_L5:
#line 37 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _gu16_CorrCount[0]
	sz z
	inc _gu16_CorrCount[1]
#line 38 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,10
	sub a,_gu16_CorrCount[0]
	mov a,0
	sbc a,_gu16_CorrCount[1]
	sz c
	jmp _L2
#line 40 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu16_CorrCount[0]
	clr _gu16_CorrCount[1]
#line 41 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _lu8v_RCCorr_Mode[0]
#line 42 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_500msCount[0]
#line 43 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr ___lu16v_Vsen_First_1652[0]
	clr ___lu16v_Vsen_First_1652[1]
#line 44 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gbv_Temp_Lock
#line 45 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr ___lu16v_Rntc_Sum_1655[0]
	clr ___lu16v_Rntc_Sum_1655[1]
#line 46 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set ___lu16v_Rntc_Min_1654[0]
	set ___lu16v_Rntc_Min_1654[1]
#line 47 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr ___lu16v_Rntc_Max_1653[0]
	clr ___lu16v_Rntc_Max_1653[1]
#line 48 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,85
	mov ___lu8_Corr_Check_Data1_1656[0],a
	jmp _L2
_L6:
#line 53 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [61].2
_L29:
#line 54 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _fun_RCInit
_L28:
#line 55 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _lu8v_RCCorr_Mode[0]
#line 56 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	jmp _L2
_L7:
#line 58 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	snz [28].6
	jmp _L2
#line 60 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [28].6
#line 61 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[59]
	mov _gu16v_ADC_REF[1],a
#line 62 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[60]
	mov _gu16v_ADC_REF[0],a
#line 64 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set [61].2
	jmp _L29
_L8:
#line 71 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	snz [28].6
	jmp _L2
#line 73 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [28].6
#line 74 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[59]
	mov _gu16v_ADC_NTC[1],a
#line 75 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[60]
	mov _gu16v_ADC_NTC[0],a
	jmp _L28
_L31:
#pragma debug scope 4 3
;begin block, line: 75.-1
#pragma debug variable 12 4 _fun_RC_Calibrate_2+0 "lu16v_CorrTemp"
#line 82 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _lu8v_RCCorr_Mode[0],a
#line 83 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_ADC_REF[0]
	mov rd,a
	mov a,_gu16v_ADC_REF[1]
	mov re,a
	clr rf
	clr rg
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,184
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,11
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov rd,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rg,a
	clr _builtin_holtek_udivmodsi4_2[12]
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,_gu16v_ADC_NTC[0]  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,_gu16v_ADC_NTC[1]  
	mov _builtin_holtek_udivmodsi4_2[5],a
	clr _builtin_holtek_udivmodsi4_2[6]
	clr _builtin_holtek_udivmodsi4_2[7]
	call _builtin_holtek_udivmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov _gu16v_Rntc[0],a
	mov a,re
	mov _gu16v_Rntc[1],a
#line 84 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _fun_Vsen_Calculate
#line 85 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp[0]
	mov _LCD_Number_Display_2[0],a
	mov a,_gu16v_Temp[1]
	mov _LCD_Number_Display_2[1],a
	mov a,3
	mov _LCD_Number_Display_2[2],a
	call _LCD_Number_Display
#line 86 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu16v_Vsen_First_1652[0]
	sub a,_gu16v_Temp[0]
	mov ra,a
	mov a,___lu16v_Vsen_First_1652[1]
	sbc a,_gu16v_Temp[1]
	mov rb,a
	mov a,ra
	mov _abs_2[0],a
	mov a,rb
	mov _abs_2[1],a
	call _abs
	mov a,ra
	mov _fun_RC_Calibrate_2[0],a
	mov a,rb
	mov _fun_RC_Calibrate_2[1],a
#line 87 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,10
	sub a,_fun_RC_Calibrate_2[0]
	mov a,0
	sbc a,_fun_RC_Calibrate_2[1]
	snz c
	jmp _L12
#line 89 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	snz _gbv_Temp_Lock
	jmp _L13
#line 91 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu16v_Rntc_Sum_1655[0]
	add a,_gu16v_Rntc[0]
	mov rb,a
	mov a,___lu16v_Rntc_Sum_1655[1]
	adc a,_gu16v_Rntc[1]
	mov rc,a
	mov a,rb
	mov ___lu16v_Rntc_Sum_1655[0],a
	mov a,rc
	mov ___lu16v_Rntc_Sum_1655[1],a
#line 92 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu16v_Rntc_Max_1653[0]
	sub a,_gu16v_Rntc[0]
	mov a,___lu16v_Rntc_Max_1653[1]
	sbc a,_gu16v_Rntc[1]
	sz c
	jmp _L14
#line 94 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Rntc[0]
	mov ___lu16v_Rntc_Max_1653[0],a
	mov a,_gu16v_Rntc[1]
	mov ___lu16v_Rntc_Max_1653[1],a
_L14:
#line 96 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Rntc[0]
	sub a,___lu16v_Rntc_Min_1654[0]
	mov a,_gu16v_Rntc[1]
	sbc a,___lu16v_Rntc_Min_1654[1]
	sz c
	jmp _L15
#line 98 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Rntc[0]
	mov ___lu16v_Rntc_Min_1654[0],a
	mov a,_gu16v_Rntc[1]
	mov ___lu16v_Rntc_Min_1654[1],a
_L15:
#line 100 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _gu16_CorrCount[0]
	sz z
	inc _gu16_CorrCount[1]
#line 101 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,3
	sub a,_gu16_CorrCount[0]
	mov a,0
	sbc a,_gu16_CorrCount[1]
	sz c
	jmp _L17
#line 103 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu16_CorrCount[0]
	clr _gu16_CorrCount[1]
#line 104 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,rb
	sub a,___lu16v_Rntc_Max_1653[0]
	mov rb,a
	mov a,rc
	sbc a,___lu16v_Rntc_Max_1653[1]
	mov rc,a
	mov a,rb
	sub a,___lu16v_Rntc_Min_1654[0]
	mov rb,a
	mov a,rc
	sbc a,___lu16v_Rntc_Min_1654[1]
	mov rc,a
	mov a,rb
	mov rd,a
	mov a,rc
	mov re,a
	clr c
	rrc re
	rrc rd
	mov a,rd
	mov _gu16v_Rntc[0],a
	mov a,re
	mov _gu16v_Rntc[1],a
#line 106 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,116
	sub a,_gu16v_Temp[0]
	mov ra,a
	mov a,14
	sbc a,_gu16v_Temp[1]
	mov rb,a
	mov a,ra
	mov _abs_2[0],a
	mov a,rb
	mov _abs_2[1],a
	call _abs
	mov a,ra
	mov _fun_RC_Calibrate_2[0],a
	mov a,rb
	mov _fun_RC_Calibrate_2[1],a
#line 107 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,43
	sub a,_fun_RC_Calibrate_2[0]
	mov a,1
	sbc a,_fun_RC_Calibrate_2[1]
	snz c
	jmp _L17
#line 110 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,low (offset _gu16c_NTC_Table+34)
	mov mp,a
	mov a,high (offset _gu16c_NTC_Table+34)
	mov sbp,a
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,rd
	mov ___lu16v_Vsen_buff_1651[0],a
	mov a,re
	mov ___lu16v_Vsen_buff_1651[1],a
#line 111 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,rd
	mov rd,a
	mov a,re
	mov re,a
	clr rf
	clr rg
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,16
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,39
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov rd,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rg,a
	clr _builtin_holtek_udivmodsi4_2[12]
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,_gu16v_Rntc[0]  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,_gu16v_Rntc[1]  
	mov _builtin_holtek_udivmodsi4_2[5],a
	clr _builtin_holtek_udivmodsi4_2[6]
	clr _builtin_holtek_udivmodsi4_2[7]
	call _builtin_holtek_udivmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov _gu16v_correction_K[0],a
	mov a,re
	mov _gu16v_correction_K[1],a
#line 112 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu8_Corr_Check_Data1_1656[0]
	sub a,85
	snz z
	jmp _L21
#line 114 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[0]
	mov _fun_eeprom_Write_2[0],a
	mov a,0
	call _fun_eeprom_Write
#line 115 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[1]
	mov _fun_eeprom_Write_2[0],a
	mov a,1
	call _fun_eeprom_Write
#line 117 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu8_Corr_Check_Data1_1656[0]
	sub a,85
	snz z
	jmp _L21
#line 119 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[0]
	mov _fun_eeprom_Write_2[0],a
	mov a,2
	call _fun_eeprom_Write
#line 120 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[1]
	mov _fun_eeprom_Write_2[0],a
	mov a,3
	call _fun_eeprom_Write
#line 122 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,___lu8_Corr_Check_Data1_1656[0]
	sub a,85
	snz z
	jmp _L21
#line 124 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[0]
	mov _fun_eeprom_Write_2[0],a
	mov a,4
	call _fun_eeprom_Write
#line 125 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_correction_K[1]
	mov _fun_eeprom_Write_2[0],a
	mov a,5
	call _fun_eeprom_Write
_L21:
#line 127 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _LCD_Number_Display_2[2],a
	mov a,11
	mov _LCD_Number_Display_2[0],a
	clr _LCD_Number_Display_2[1]
	call _LCD_Number_Display
#line 128 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,1
	mov _gu8v_Beep_Mode[0],a
#line 129 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 129 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	clr wdt
#line 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000>263690
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 16*1000of the argument exceeds the maxinum 263690'
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000<0
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 16*1000 of the argument exceeds the mininum 0'
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==0
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	JMP $
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==1
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==2
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==3
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000<8) AND (16*1000>3)
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAY3 + 7 -16*1000
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000< 0404h) AND (16*1000>7)
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,16*1000/4-1
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX3 + 3 -(16*1000 MOD 4)
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000< 0x40B) AND (16*1000> 0403h)
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0 
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX6 + 0x40a -16*1000
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000 >= 0x40b) AND ((((16*1000-9)%0402h)/4+1)>256)
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(16*1000-9)/0402h
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY5 +5- (((16*1000-9)%0402h)%6)
	ENDIF
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000 >= 0x40b) AND ((((16*1000-9)%0402h)/4+1)<=256)
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(16*1000-9)/0402h
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,((16*1000-9)%0402h)/4+1
;# 130 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY3 +3-(((16*1000-9)%0402h)%4)
	ENDIF
#line 131 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_500msCount[0]
#line 132 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 132 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	clr wdt
#line 133 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _gu8v_SysMode[0],a
	jmp _L17
_L13:
#line 139 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _gu16_CorrCount[0]
	sz z
	inc _gu16_CorrCount[1]
#line 140 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,3
	sub a,_gu16_CorrCount[0]
	mov a,0
	sbc a,_gu16_CorrCount[1]
	sz c
	jmp _L17
#line 142 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu16_CorrCount[0]
	clr _gu16_CorrCount[1]
#line 143 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set _gbv_Temp_Lock
	jmp _L17
_L12:
#line 150 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu16_CorrCount[0]
	clr _gu16_CorrCount[1]
#line 151 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gbv_Temp_Lock
#line 152 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp[0]
	mov ___lu16v_Vsen_First_1652[0],a
	mov a,_gu16v_Temp[1]
	mov ___lu16v_Vsen_First_1652[1],a
#line 153 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr ___lu16v_Rntc_Sum_1655[0]
	clr ___lu16v_Rntc_Sum_1655[1]
#line 154 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set ___lu16v_Rntc_Min_1654[0]
	set ___lu16v_Rntc_Min_1654[1]
#line 155 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr ___lu16v_Rntc_Max_1653[0]
	clr ___lu16v_Rntc_Max_1653[1]
_L17:
#line 157 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,40
	sub a,_gu8v_500msCount[0]
	sz c
	jmp _L2
#line 159 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _LCD_Number_Display_2[2],a
	clr _LCD_Number_Display_2[0]
	clr _LCD_Number_Display_2[1]
	call _LCD_Number_Display
#line 160 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_500msCount[0]
#line 161 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _gu8v_Beep_Mode[0],a
#line 162 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 162 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	clr wdt
#line 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000>263690
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 16*1000of the argument exceeds the maxinum 263690'
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000<0
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	ERRMESSAGE 'the value 16*1000 of the argument exceeds the mininum 0'
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==0
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	JMP $
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==1
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==2
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF 16*1000==3
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	NOP
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000<8) AND (16*1000>3)
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAY3 + 7 -16*1000
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000< 0404h) AND (16*1000>7)
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,16*1000/4-1
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX3 + 3 -(16*1000 MOD 4)
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000< 0x40B) AND (16*1000> 0403h)
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0 
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYX6 + 0x40a -16*1000
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000 >= 0x40b) AND ((((16*1000-9)%0402h)/4+1)>256)
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(16*1000-9)/0402h
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,0
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY5 +5- (((16*1000-9)%0402h)%6)
	ENDIF
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	IF (16*1000 >= 0x40b) AND ((((16*1000-9)%0402h)/4+1)<=256)
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,(16*1000-9)/0402h
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV _builtin_holtek_delay_2,A
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	MOV A,((16*1000-9)%0402h)/4+1
;# 163 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	CALL __DELAYY3 +3-(((16*1000-9)%0402h)%4)
	ENDIF
#line 164 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 164 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	clr wdt
#line 165 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _gu8v_SysMode[0],a
_L2:
#pragma debug scope 3 1
	ret
_fun_RC_Calibrate endp
#line 165 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
#pragma debug scope 1 1
public _fun_RCWork
#pragma debug scope 5 1
#line 175 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
_fun_RCWork .section 'code'
_fun_RCWork proc
    local _fun_RCWork_2 db 4 dup(?)	; 0,4
#line 176 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set _gu8_System_flag[0].4
#line 177 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_lu8v_RCWork_Mode[0]
	mov _fun_RCWork_2[0],a
	mov a,_fun_RCWork_2[0]
	sub a,0
	sz z
	jmp _L34
	sub a,(1)-(0)
	sz z
	jmp _L35
#line 177 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_fun_RCWork_2[0]
	sub a,2
	sz z
	jmp _L36
	sub a,(3)-(2)
	sz z
	jmp _L37
	mov a,_fun_RCWork_2[0]
	sub a,4
	snz z
	jmp _L32
	jmp _L57
_L34:
#line 181 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [61].2
	jmp _L55
_L35:
#line 186 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	snz [28].6
	jmp _L32
#line 188 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [28].6
#line 189 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[59]
	mov _gu16v_ADC_REF[1],a
#line 190 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[60]
	mov _gu16v_ADC_REF[0],a
#line 192 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	set [61].2
_L55:
#line 193 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _fun_RCInit
_L56:
#line 194 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _lu8v_RCWork_Mode[0]
	jmp _L32
_L36:
#line 199 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	snz [28].6
	jmp _L32
#line 201 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr [28].6
#line 202 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[59]
	mov _gu16v_ADC_NTC[1],a
#line 203 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,[60]
	mov _gu16v_ADC_NTC[0],a
	jmp _L56
_L37:
#line 212 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_ADC_REF[0]
	mov rd,a
	mov a,_gu16v_ADC_REF[1]
	mov re,a
	clr rf
	clr rg
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,184
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,11
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov rd,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rg,a
	clr _builtin_holtek_udivmodsi4_2[12]
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,_gu16v_ADC_NTC[0]  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,_gu16v_ADC_NTC[1]  
	mov _builtin_holtek_udivmodsi4_2[5],a
	clr _builtin_holtek_udivmodsi4_2[6]
	clr _builtin_holtek_udivmodsi4_2[7]
	call _builtin_holtek_udivmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov _gu16v_Rntc[0],a
	mov a,re
	mov _gu16v_Rntc[1],a
#line 213 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Rntc[0]
	mov _fun_RCWork_2[0],a
	mov a,_gu16v_Rntc[1]
	mov _fun_RCWork_2[1],a
	clr _fun_RCWork_2[2]
	clr _fun_RCWork_2[3]
	mov a,_gu16v_correction_K[0]
	mov rd,a
	mov a,_gu16v_correction_K[1]
	mov re,a
	clr rf
	clr rg
	mov a,_fun_RCWork_2[0]
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,_fun_RCWork_2[1]
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,_fun_RCWork_2[2]
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,_fun_RCWork_2[3]
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,rd
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov rd,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rg,a
	clr _builtin_holtek_udivmodsi4_2[12]
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,16  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,39  
	mov _builtin_holtek_udivmodsi4_2[5],a
	clr _builtin_holtek_udivmodsi4_2[6]
	clr _builtin_holtek_udivmodsi4_2[7]
	call _builtin_holtek_udivmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov _gu16v_Rntc[0],a
	mov a,re
	mov _gu16v_Rntc[1],a
#line 214 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _fun_Vsen_Calculate
#line 217 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,5
	add a,_gu16v_Temp[0]
	mov rb,a
	mov a,0
	adc a,_gu16v_Temp[1]
	mov rc,a
	clr _builtin_holtek_udivmodhi4_2[6]
	mov a,rb  
	mov _builtin_holtek_udivmodhi4_2[0],a  
	mov a,rc  
	mov _builtin_holtek_udivmodhi4_2[1],a
	mov a,10  
	mov _builtin_holtek_udivmodhi4_2[2],a  
	clr _builtin_holtek_udivmodhi4_2[3]
	call _builtin_holtek_udivmodhi4
	mov a,_builtin_holtek_udivmodhi4_2[0]  
	mov _gu16v_Temp[0],a  
	mov a,_builtin_holtek_udivmodhi4_2[1]  
	mov _gu16v_Temp[1],a
#line 221 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp_MAX[0]
	sub a,_gu16v_Temp[0]
	mov a,_gu16v_Temp_MAX[1]
	sbc a,_gu16v_Temp[1]
	sz c
	jmp _L39
#line 223 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp[0]
	mov _gu16v_Temp_MAX[0],a
	mov a,_gu16v_Temp[1]
	mov _gu16v_Temp_MAX[1],a
_L39:
#line 239 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,63
	sub a,_gu16v_Temp_MAX[0]
	mov a,1
	sbc a,_gu16v_Temp_MAX[1]
	snz c
	jmp _L40
#line 241 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _LCD_Display_Lo
	jmp _L41
_L40:
#line 243 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,174
	sub a,_gu16v_Temp_MAX[0]
	mov a,1
	sbc a,_gu16v_Temp_MAX[1]
	sz c
	jmp _L42
#line 245 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	call _LCD_Display_HI
	jmp _L41
_L42:
#line 249 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp_MAX[0]
	mov _LCD_Number_Display_2[0],a
	mov a,_gu16v_Temp_MAX[1]
	mov _LCD_Number_Display_2[1],a
	mov a,2
	mov _LCD_Number_Display_2[2],a
	call _LCD_Number_Display
_L41:
#line 252 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp_MAX_Last[0]
	xor a,_gu16v_Temp_MAX[0]
	mov a,_gu16v_Temp_MAX_Last[1]
	sz z
	xor a,_gu16v_Temp_MAX[1]
	snz z
	jmp _L43
#line 254 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	inc _gu8v_RC_Count[0]
#line 255 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,90
	sub a,_gu8v_RC_Count[0]
	sz c
	jmp _L44
#line 257 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_RC_Count[0]
#line 269 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,63
	sub a,_gu16v_Temp_MAX[0]
	mov a,1
	sbc a,_gu16v_Temp_MAX[1]
	sz c
	jmp _L45
	mov a,174
	sub a,_gu16v_Temp_MAX[0]
	mov a,1
	sbc a,_gu16v_Temp_MAX[1]
	sz c
	jmp _L46
_L45:
#line 271 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _gu8v_Beep_Mode[0],a
	jmp _L47
_L46:
#line 275 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,1
	mov _gu8v_Beep_Mode[0],a
#line 276 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp_MAX[0]
	mov _gu16v_MemData[0],a
	mov a,_gu16v_Temp_MAX[1]
	mov _gu16v_MemData[1],a
_L47:
#line 279 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_500msCount[0]
#line 280 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,4
	mov _lu8v_RCWork_Mode[0],a
#line 282 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	jmp _L32
_L43:
#line 287 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_RC_Count[0]
#line 288 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,_gu16v_Temp_MAX[0]
	mov _gu16v_Temp_MAX_Last[0],a
	mov a,_gu16v_Temp_MAX[1]
	mov _gu16v_Temp_MAX_Last[1],a
_L44:
#line 295 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _lu8v_RCWork_Mode[0]
#line 297 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	jmp _L32
_L57:
#line 299 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,40
	sub a,_gu8v_500msCount[0]
	sz c
	jmp _L48
#line 301 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,0
	call _fun_LCD_Full
#line 302 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	clr _gu8v_500msCount[0]
#line 303 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
	mov a,2
	mov _gu8v_SysMode[0],a
_L48:
#line 306 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
;# 306 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C" 1
	nop
_L32:
	ret
_fun_RCWork endp
#line 306 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
#pragma debug scope 1 1
@HCCINIT0	.section	'data'
___lu16v_Vsen_buff_1651	db 2 dup(0)
#pragma debug variable 12 3 ___lu16v_Vsen_buff_1651 "lu16v_Vsen_buff"

@HCCINIT .section 'data'
@HCCINIT0	.section	'data'
___lu8_Corr_Check_Data1_1656	db 0
#pragma debug variable 8 3 ___lu8_Corr_Check_Data1_1656 "lu8_Corr_Check_Data1"

@HCCINIT .section 'data'
@HCCINIT0	.section	'data'
___lu16v_Rntc_Max_1653	db 2 dup(0)
#pragma debug variable 12 3 ___lu16v_Rntc_Max_1653 "lu16v_Rntc_Max"

@HCCINIT .section 'data'
@HCCINIT0	.section	'data'
___lu16v_Rntc_Min_1654	db 2 dup(0)
#pragma debug variable 12 3 ___lu16v_Rntc_Min_1654 "lu16v_Rntc_Min"

@HCCINIT .section 'data'
@HCCINIT0	.section	'data'
___lu16v_Rntc_Sum_1655	db 2 dup(0)
#pragma debug variable 12 3 ___lu16v_Rntc_Sum_1655 "lu16v_Rntc_Sum"

@HCCINIT .section 'data'
@HCCINIT0	.section	'data'
___lu16v_Vsen_First_1652	db 2 dup(0)
#pragma debug variable 12 3 ___lu16v_Vsen_First_1652 "lu16v_Vsen_First"

@HCCINIT .section 'data'
#line 16 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_correction_K
@HCCINIT0 .section 'data'
_gu16v_correction_K	db 2 dup(0)
#pragma debug struct_begin 42 ""
#pragma debug field 0 8 "byte0"
#pragma debug field 0 8 "byte1"
#pragma debug struct_end
#pragma debug struct_begin 43 "__16_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 struct_end
#pragma debug union_begin 44 ""
#pragma debug field 2 42 "byte"
#pragma debug field 2 43 "bits"
#pragma debug field 0 12 "U16"
#pragma debug field 0 11 "S16"
#pragma debug union_end
#pragma debug variable 44 1 _gu16v_correction_K "gu16v_correction_K"

@HCCINIT .section 'data'
#line 14 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gbv_Temp_Lock
@BITDATASEC .section 'data'
_gbv_Temp_Lock	dbit 0
#pragma debug variable 2 1 _gbv_Temp_Lock "gbv_Temp_Lock"

@HCCINIT .section 'data'
#line 13 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _lu8v_RCCorr_Mode
@HCCINIT0 .section 'data'
_lu8v_RCCorr_Mode	db 0
#pragma debug variable 8 1 _lu8v_RCCorr_Mode "lu8v_RCCorr_Mode"

@HCCINIT .section 'data'
#line 11 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu8v_RC_Count
@HCCINIT0 .section 'data'
_gu8v_RC_Count	db 0
#pragma debug variable 8 1 _gu8v_RC_Count "gu8v_RC_Count"

@HCCINIT .section 'data'
#line 10 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_Temp_MAX_Last
@HCCINIT0 .section 'data'
_gu16v_Temp_MAX_Last	db 2 dup(0)
#pragma debug variable 44 1 _gu16v_Temp_MAX_Last "gu16v_Temp_MAX_Last"

@HCCINIT .section 'data'
#line 9 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_Temp_MAX
@HCCINIT0 .section 'data'
_gu16v_Temp_MAX	db 2 dup(0)
#pragma debug variable 44 1 _gu16v_Temp_MAX "gu16v_Temp_MAX"

@HCCINIT .section 'data'
#line 8 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_Rntc
@HCCINIT0 .section 'data'
_gu16v_Rntc	db 2 dup(0)
#pragma debug variable 12 1 _gu16v_Rntc "gu16v_Rntc"

@HCCINIT .section 'data'
#line 7 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _lu8v_RCWork_Mode
@HCCINIT0 .section 'data'
_lu8v_RCWork_Mode	db 0
#pragma debug variable 8 1 _lu8v_RCWork_Mode "lu8v_RCWork_Mode"

@HCCINIT .section 'data'
#line 6 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_ADC_REF
@HCCINIT0 .section 'data'
_gu16v_ADC_REF	db 2 dup(0)
#pragma debug variable 44 1 _gu16v_ADC_REF "gu16v_ADC_REF"

@HCCINIT .section 'data'
#line 5 "\\dgdc1\Y680\Y680 對外資料\0 開發板資料\BH67F2132DemoBoard\BH67F2132-SoftWare\USER\R-C_AD.C"
public _gu16v_ADC_NTC
@HCCINIT0 .section 'data'
_gu16v_ADC_NTC	db 2 dup(0)
#pragma debug variable 44 1 _gu16v_ADC_NTC "gu16v_ADC_NTC"

@HCCINIT .section 'data'
#pragma debug struct_begin 45 "__intc0_bits"
#pragma debug field 21 8 0 1 "__emi" ;0,1
#pragma debug field 21 8 0 1 "__int0e" ;1,1
#pragma debug field 21 8 0 1 "__int1e" ;2,1
#pragma debug field 21 8 0 1 "__rtmre" ;3,1
#pragma debug field 21 8 0 1 "__int0f" ;4,1
#pragma debug field 21 8 0 1 "__int1f" ;5,1
#pragma debug field 21 8 0 1 "__rtmrf" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 46 ""
#pragma debug field 2 45 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 46 1 ___intc0 "__intc0" 1
#pragma debug variable 8 1 ___tmrah "__tmrah" 1
#pragma debug variable 8 1 ___tmral "__tmral" 1
#pragma debug struct_begin 47 "__tmrc_bits"
#pragma debug field 21 8 0 3 ;0,3
#pragma debug field 21 8 0 1 "__te" ;3,1
#pragma debug field 21 8 0 1 "__ton" ;4,1
#pragma debug field 21 8 0 1 "__tm0" ;5,1
#pragma debug field 21 8 0 1 "__tm1" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 48 ""
#pragma debug field 2 47 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 48 1 ___tmrc "__tmrc" 1
#pragma debug variable 8 1 ___tmrbh "__tmrbh" 1
#pragma debug variable 8 1 ___tmrbl "__tmrbl" 1
#pragma debug struct_begin 49 "__adcr_bits"
#pragma debug field 21 8 0 1 "__ovb_ovab" ;0,1
#pragma debug field 21 8 0 1 "__ad_tmb" ;1,1
#pragma debug field 21 8 0 1 "__rsel" ;2,1
#pragma debug field 21 8 0 2 ;3,2
#pragma debug field 21 8 0 1 "__lirc2on" ;5,1
#pragma debug field 21 8 0 1 "__tmbsel" ;6,1
#pragma debug field 21 8 0 1 "__chsel" ;7,1
#pragma debug struct_end
#pragma debug union_begin 50 ""
#pragma debug field 2 49 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 50 1 ___adcr "__adcr" 1

; output external variables
extern _gu16v_MemData:byte
extern _gu8v_SysMode:byte
extern _gu8v_Beep_Mode:byte
extern _gu16c_NTC_Table:near
extern _gu16v_Temp:byte
extern _gu8v_500msCount:byte
extern _gu16_CorrCount:byte
extern _gu8_System_flag:byte
extern _fun_LCD_Full:near
extern _LCD_Number_Display_2:byte
extern _LCD_Number_Display:near
extern _builtin_holtek_mulsi3_2:byte
extern _builtin_holtek_mulsi3:near
extern _builtin_holtek_udivmodsi4_2:byte
extern _builtin_holtek_udivmodsi4:near
extern _fun_Vsen_Calculate:near
extern _abs_2:byte
extern _abs:near
extern _fun_eeprom_Write_2:byte
extern _fun_eeprom_Write:near
extern _builtin_holtek_udivmodhi4_2:byte
extern _builtin_holtek_udivmodhi4:near
extern _LCD_Display_Lo:near
extern _LCD_Display_HI:near

; 
; Generated by holtek-gcc v3.19, Thu Dec 24 17:24:38 2020
; Rebuild 718
; end of file
