; Generated by holtek-gcc v3.20, Fri Aug 28 11:34:18 2020
; 
; Configuration:
;       with long instruction
;       Multi-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 = 16
;       
;       
; use 'tabrdc' instead of 'tabrd'
;       

#pragma translator "holtek-gcc 4.6.4" "3.20" "build 20130711"
; Rebuild 610

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 [16]
mduwr0 equ [59h]
mduwr1 equ [5ah]
mduwr2 equ [5bh]
mduwr3 equ [5ch]
mduwr4 equ [5dh]
mduwr5 equ [5eh]
mduwrctrl equ [5fh]

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
___pdc equ [31]
___pd equ [30]
public _fun_IIC_Start
#pragma debug scope 2 1
#line 20 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_Start .section 'code'
_fun_IIC_Start proc
#line 21 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].1
#line 22 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].0
#line 23 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 24 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 25 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 26 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].0
#line 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 27 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 28 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
	ret
_fun_IIC_Start endp
#line 28 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_Stop
#pragma debug scope 3 1
#line 37 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_Stop .section 'code'
_fun_IIC_Stop proc
#line 38 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].0
#line 39 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].0
#line 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 40 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 41 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 42 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 43 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 44 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 45 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
	ret
_fun_IIC_Stop endp
#line 45 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_Ack
#pragma debug scope 4 1
#line 54 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_Ack .section 'code'
_fun_IIC_Ack proc
#line 55 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].0
#line 56 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].0
#line 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 57 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 58 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 59 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 60 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 61 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 62 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
	ret
_fun_IIC_Ack endp
#line 63 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_NoAck
#pragma debug scope 5 1
#line 70 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_NoAck .section 'code'
_fun_IIC_NoAck proc
#line 71 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].0
#line 72 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 73 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 74 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 75 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 76 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
	ret
_fun_IIC_NoAck endp
#line 77 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_WaitACK
#pragma debug scope 6 1
#line 86 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_WaitACK .section 'code'
_fun_IIC_WaitACK proc
#line 87 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 88 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 89 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 91 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,251
	mov ra,a
_L6:
#line 91 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	snz [30].0
	jmp _L7
	sdz ra
	jmp _L6
_L7:
#line 95 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
	ret
_fun_IIC_WaitACK endp
#line 96 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_WByte
#pragma debug scope 7 1
#line 105 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_WByte .section 'code'
_fun_IIC_WByte proc
    local _fun_IIC_WByte_2 db 1 dup(?)	; 0,1
	mov _fun_IIC_WByte_2[0],a
#pragma debug variable 8 7 _fun_IIC_WByte_2+0 "WData"
#line 106 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [31].0
	mov a,8
	mov ra,a
_L17:
#line 110 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 111 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 112 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	snz _fun_IIC_WByte_2[0].7
	jmp _L14
#line 114 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
	jmp _L15
_L14:
#line 118 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].0
_L15:
#line 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 120 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 121 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 122 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 123 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_fun_IIC_WByte_2[0]
	addm a,_fun_IIC_WByte_2[0]
	sdz ra
	jmp _L17
#line 125 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 126 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
	ret
_fun_IIC_WByte endp
#line 126 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _fun_IIC_RByte
#pragma debug scope 8 1
#line 135 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_fun_IIC_RByte .section 'code'
_fun_IIC_RByte proc
    local _fun_IIC_RByte_2 db 2 dup(?)	; 0,2
	mov _fun_IIC_RByte_2[0],a
#pragma debug variable 8 8 _fun_IIC_RByte_2+0 "Ack"
#line 136 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [31].0
#line 137 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 139 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 140 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
	mov a,8
	mov ra,a
#line 138 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr rb
_L20:
#line 143 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [30].1
#line 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 144 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 145 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,[30]
	and a,1
	mov rc,a
	mov a,rb
	addm a,rb
	mov a,rb
	or a,rc
	mov _fun_IIC_RByte_2[1],a
	mov a,_fun_IIC_RByte_2[1]
	mov rb,a
#line 146 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [30].1
#line 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 147 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
	sdz ra
	jmp _L20
#line 149 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	snz _fun_IIC_RByte_2[0]
	jmp _L21
#line 150 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Ack
	jmp _L22
_L21:
#line 153 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_NoAck
_L22:
#line 156 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_fun_IIC_RByte_2[1]
	ret
_fun_IIC_RByte endp
#line 156 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _Drv_24BitADC_WriteReg
#pragma debug scope 9 1
#line 167 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_WriteReg .section 'code'
_Drv_24BitADC_WriteReg proc
public _Drv_24BitADC_WriteReg_2
    local _Drv_24BitADC_WriteReg_2 db 2 dup(?)	; 1,1
	mov _Drv_24BitADC_WriteReg_2[1],a
#pragma debug variable 8 9 _Drv_24BitADC_WriteReg_2+1 "RegAddress"
#pragma debug variable 8 9 _Drv_24BitADC_WriteReg_2+0 "RegData"
#line 168 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Start
#line 169 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,208
	fcall _fun_IIC_WByte
#line 170 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 171 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_WriteReg_2[1]
	fcall _fun_IIC_WByte
#line 172 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 173 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_WriteReg_2[0]
	fcall _fun_IIC_WByte
#line 174 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 175 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Stop
	ret
_Drv_24BitADC_WriteReg endp
#line 175 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _Drv_24BitADC_ReadReg
#pragma debug scope 10 1
#line 185 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_ReadReg .section 'code'
_Drv_24BitADC_ReadReg proc
    local _Drv_24BitADC_ReadReg_2 db 2 dup(?)	; 0,2
	mov _Drv_24BitADC_ReadReg_2[0],a
#pragma debug variable 8 10 _Drv_24BitADC_ReadReg_2+0 "RegAddress"
#pragma debug variable 8 10 _Drv_24BitADC_ReadReg_2+1 "RegData"
#line 187 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Start
#line 188 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,208
	fcall _fun_IIC_WByte
#line 189 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 190 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_ReadReg_2[0]
	fcall _fun_IIC_WByte
#line 191 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 192 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Start
#line 193 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,209
	fcall _fun_IIC_WByte
#line 194 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_WaitACK
#line 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30>263690
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30of the argument exceeds the maxinum 263690'
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30<0
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	ERRMESSAGE 'the value 30 of the argument exceeds the mininum 0'
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF 30==0
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	JMP $
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=1) AND (30<( 4 + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=2) AND (30<( 4 + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=3) AND (30<( 4 + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=4) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=5) AND (30<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=6) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=7) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30>=8) AND (30<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30==9)  AND ( __PBP__ > 2 )
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	NOP
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 8 + __PBP__ * 2)) AND (30>( 3 + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAY3 + ( 7 + __PBP__ * 2) -30
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 0404h + __PBP__ * 2)) AND (30>( 7 + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 4 + __PBP__ * 2))/4
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX3 + 3 -((30-( 4 + __PBP__ * 2)) MOD 4) 
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30< ( 040bh + __PBP__ * 2)) AND (30> ( 0403h + __PBP__ * 2))
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0 
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -30
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,0
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY5 +5- (((30-( 9 + __PBP__ * 2))%0402h)%6) 
	ENDIF
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	IF (30 >= ( 040bh + __PBP__ * 2)) AND ((((30-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,(30-( 9 + __PBP__ * 2))/0402h
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV _builtin_holtek_delay_2,A
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	MOV A,((30-( 9 + __PBP__ * 2))%0402h)/4+1
;# 195 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	fcall __DELAYY3 +3-(((30-( 9 + __PBP__ * 2))%0402h)%4) 
	ENDIF
#line 196 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,0
	fcall _fun_IIC_RByte
	mov _Drv_24BitADC_ReadReg_2[1],a
#line 197 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	fcall _fun_IIC_Stop
#line 199 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_ReadReg_2[1]
	ret
_Drv_24BitADC_ReadReg endp
#line 199 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _Drv_24BitADC_ReadADCData
#pragma debug scope 11 1
#line 202 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_ReadADCData .section 'code'
_Drv_24BitADC_ReadADCData proc
    local _Drv_24BitADC_ReadADCData_2 db 1 dup(?)	; 0,1
#line 203 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	snz _ADCSourceData[5].1
	jmp _L25
#pragma debug scope 12 11
;begin block, line: 203.-1
#pragma debug variable 8 12 _Drv_24BitADC_ReadADCData_2+0 "temp"
#line 205 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _ADCSourceData[5].1
#line 207 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,8
	fcall _Drv_24BitADC_ReadReg
	mov _Drv_24BitADC_ReadADCData_2[0],a
#line 208 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	snz _Drv_24BitADC_ReadADCData_2[0]
	jmp _L25
#line 210 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	inc _ADCSourceData[4]
#line 211 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,3
	sub a,_ADCSourceData[4]
	sz c
	jmp _L29
#line 213 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_ReadADCData_2[0]
	mov ra,a
	set ra.2
	mov a,ra
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,8
	fcall _Drv_24BitADC_WriteReg
#line 214 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _ADCSourceData[0]
#line 215 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,4
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
	mov a,ra
	mov _ADCSourceData[1],a
#line 216 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,5
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
	mov a,ra
	mov _ADCSourceData[2],a
#line 217 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,6
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
	mov a,ra
	mov _ADCSourceData[3],a
#line 218 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_ReadADCData_2[0]
	mov rb,a
	clr rb.2
	mov a,rb
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,8
	fcall _Drv_24BitADC_WriteReg
#line 219 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_ADCSourceData[0]
	mov re,a
	mov a,_ADCSourceData[1]
	mov rf,a
	mov a,_ADCSourceData[2]
	mov rg,a
	mov a,_ADCSourceData[3]
	mov rh,a
	snz rh.7
	jmp _L30
	mov a,255
	addm a,re
	mov a,0
	adcm a,rf
	adcm a,rg
	adcm a,rh
_L30:
	mov a,re
	mov ra,a
	mov a,rf
	mov rb,a
	mov a,rg
	mov rc,a
	mov a,rh
	mov rd,a
	mov a,rb
	mov ra,a
	mov a,rc
	mov rb,a
	mov a,rd
	mov rc,a
	clr rd
	sz rc.7
	set rd
	mov a,ra
	mov _ADCSourceData[0],a
	mov a,rb
	mov _ADCSourceData[1],a
	mov a,rc
	mov _ADCSourceData[2],a
	mov a,rd
	mov _ADCSourceData[3],a
#line 220 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set _ADCSourceData[5].0
_L29:
#line 222 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_ReadADCData_2[0]
	mov rb,a
	clr rb.1
	mov a,rb
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,8
	fcall _Drv_24BitADC_WriteReg
_L25:
#pragma debug scope 11 1
	ret
_Drv_24BitADC_ReadADCData endp
#line 222 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
___pcpu equ [29]
___pcc equ [28]
___pcs1 equ [339]
___ifs2 equ [331]
___integ equ [57]
___intc3 equ [19]
___intc0 equ [16]
public _Drv_24BitADC_Init
#pragma debug scope 13 1
#line 228 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_Init .section 'code'
_Drv_24BitADC_Init proc
#line 229 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [29].7
#line 230 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [28].7
#line 231 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	lclr [339].7
	lclr [339].6
	lset [331].3
#line 232 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [57].7
#line 233 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr [57].6
#line 234 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [19].1
#line 235 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set [16].0
#line 237 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,1
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,17
	fcall _Drv_24BitADC_WriteReg
_L36:
#line 240 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
;# 240 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c" 1
	clr wdt
#line 241 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,17
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
	mov a,ra
	sub a,3
	snz z
	jmp _L36
#line 242 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _Drv_24BitADC_WriteReg_2[0]
	mov a,14
	fcall _Drv_24BitADC_WriteReg
#line 243 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,130
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,16
	fcall _Drv_24BitADC_WriteReg
#line 245 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,168
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,0
	fcall _Drv_24BitADC_WriteReg
#line 246 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,5
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,1
	fcall _Drv_24BitADC_WriteReg
#line 247 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _Drv_24BitADC_WriteReg_2[0]
	mov a,2
	fcall _Drv_24BitADC_WriteReg
#line 248 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _Drv_24BitADC_WriteReg_2[0]
	mov a,3
	fcall _Drv_24BitADC_WriteReg
#line 250 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,35
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,7
	fcall _Drv_24BitADC_WriteReg
#line 251 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _Drv_24BitADC_WriteReg_2[0]
	mov a,8
	fcall _Drv_24BitADC_WriteReg
#line 252 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,31
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,9
	fcall _Drv_24BitADC_WriteReg
#line 253 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,231
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,10
	fcall _Drv_24BitADC_WriteReg
	ret
_Drv_24BitADC_Init endp
#line 253 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _Drv_24BitADC_Start
#pragma debug scope 14 1
#line 256 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_Start .section 'code'
_Drv_24BitADC_Start proc
    local _Drv_24BitADC_Start_2 db 1 dup(?)	; 0,1
#line 258 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,7
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
#line 259 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,ra
	and a,31
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,7
	fcall _Drv_24BitADC_WriteReg
#line 260 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,7
	fcall _Drv_24BitADC_ReadReg
	mov _Drv_24BitADC_Start_2[0],a
#line 261 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov ra,a
	set ra.7
	mov a,ra
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,7
	fcall _Drv_24BitADC_WriteReg
#line 262 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,_Drv_24BitADC_Start_2[0]
	mov ra,a
	clr ra.7
	mov a,ra
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,7
	fcall _Drv_24BitADC_WriteReg
#line 264 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _ADCSourceData[4]
#line 265 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _ADCSourceData[5].0
#line 266 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _ADCSourceData[5].1
	ret
_Drv_24BitADC_Start endp
#line 266 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _Drv_24BitADC_Stop
#pragma debug scope 15 1
#line 270 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
_Drv_24BitADC_Stop .section 'code'
_Drv_24BitADC_Stop proc
#line 272 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	clr _Drv_24BitADC_WriteReg_2[0]
	mov a,0
	fcall _Drv_24BitADC_WriteReg
#line 273 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	mov a,7
	fcall _Drv_24BitADC_ReadReg
	mov ra,a
#line 274 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set ra.5
	mov a,ra
	mov _Drv_24BitADC_WriteReg_2[0],a
	mov a,7
	fcall _Drv_24BitADC_WriteReg
	ret
_Drv_24BitADC_Stop endp
#line 274 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
public _INT3_ISR
#pragma debug scope 16 1
#line 279 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
rombank 0 @INT3_ISR_code
@INT3_ISR_code .section at 8 'code'
	mov r1,a
	mov a,bp
	clr bp
	jmp _INT3_ISR
ROMBANK 0 _INT3_ISR
#pragma debug scope 1 1
@dummy8 proc
	call _INT3_ISR
@dummy8 endp
#pragma debug scope 17 1
_INT3_ISR .section 'code'
_INT3_ISR proc
	mov r2,a
	mov a, status
	mov r3,a
#line 280 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
	set _ADCSourceData[5].1
	mov a,r2
	mov bp,a
	mov a,r3
	mov status,a
	mov a,r1
	reti
_INT3_ISR endp

#line 280 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
#pragma debug scope 1 1
#line 158 "c:\users\iris\desktop\2. demo code\bh67f5362_24bit adc\BH67F5362_Drv\Drv_24BitADC.c"
public _ADCSourceData
@HCCINIT0_ADCSourceData .section 'data'
_ADCSourceData	db 6 dup(0)
#pragma debug struct_begin 42 ""
#pragma debug field 0 8 "ByteRes"
#pragma debug field 0 8 "ByteLow"
#pragma debug field 0 8 "ByteMid"
#pragma debug field 0 8 "ByteHigh"
#pragma debug struct_end
#pragma debug union_begin 43 ""
#pragma debug field 2 42 "byte"
#pragma debug field 0 13 "ADCData"
#pragma debug union_end
#pragma debug struct_begin 44 ""
#pragma debug field 21 8 0 1 "IsReady" ;0,1
#pragma debug field 21 8 0 1 "IsCheck" ;1,1
#pragma debug struct_end
#pragma debug union_begin 45 ""
#pragma debug field 2 44 "b"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug struct_begin 46 ""
#pragma debug field 3 43 "data"
#pragma debug field 0 8 "SamplingCnt"
#pragma debug field 3 45 "flag"
#pragma debug struct_end
#pragma debug variable 46 1 _ADCSourceData "ADCSourceData"

@HCCINIT .section 'data'
#pragma debug struct_begin 47 "__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 "__mf6e" ;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 "__mf6f" ;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 ___intc0 "__intc0" 1
#pragma debug struct_begin 49 "__intc3_bits"
#pragma debug field 21 8 0 1 "__int2e" ;0,1
#pragma debug field 21 8 0 1 "__int3e" ;1,1
#pragma debug field 21 8 0 1 "__mf4e" ;2,1
#pragma debug field 21 8 0 1 "__mf5e" ;3,1
#pragma debug field 21 8 0 1 "__int2f" ;4,1
#pragma debug field 21 8 0 1 "__int3f" ;5,1
#pragma debug field 21 8 0 1 "__mf4f" ;6,1
#pragma debug field 21 8 0 1 "__mf5f" ;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 ___intc3 "__intc3" 1
#pragma debug struct_begin 51 "__pcc_bits"
#pragma debug field 21 8 0 1 "__pcc0" ;0,1
#pragma debug field 21 8 0 1 "__pcc1" ;1,1
#pragma debug field 21 8 0 1 "__pcc2" ;2,1
#pragma debug field 21 8 0 1 "__pcc3" ;3,1
#pragma debug field 21 8 0 1 "__pcc4" ;4,1
#pragma debug field 21 8 0 1 "__pcc5" ;5,1
#pragma debug field 21 8 0 1 "__pcc6" ;6,1
#pragma debug field 21 8 0 1 "__pcc7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 52 ""
#pragma debug field 2 51 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 52 1 ___pcc "__pcc" 1
#pragma debug struct_begin 53 "__pcpu_bits"
#pragma debug field 21 8 0 1 "__pcpu0" ;0,1
#pragma debug field 21 8 0 1 "__pcpu1" ;1,1
#pragma debug field 21 8 0 1 "__pcpu2" ;2,1
#pragma debug field 21 8 0 1 "__pcpu3" ;3,1
#pragma debug field 21 8 0 1 "__pcpu4" ;4,1
#pragma debug field 21 8 0 1 "__pcpu5" ;5,1
#pragma debug field 21 8 0 1 "__pcpu6" ;6,1
#pragma debug field 21 8 0 1 "__pcpu7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 54 ""
#pragma debug field 2 53 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 54 1 ___pcpu "__pcpu" 1
#pragma debug struct_begin 55 "__pd_bits"
#pragma debug field 21 8 0 1 "__pd0" ;0,1
#pragma debug field 21 8 0 1 "__pd1" ;1,1
#pragma debug field 21 8 0 1 "__pd2" ;2,1
#pragma debug field 21 8 0 1 "__pd3" ;3,1
#pragma debug field 21 8 0 1 "__pd4" ;4,1
#pragma debug field 21 8 0 1 "__pd5" ;5,1
#pragma debug field 21 8 0 1 "__pd6" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 56 ""
#pragma debug field 2 55 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 56 1 ___pd "__pd" 1
#pragma debug struct_begin 57 "__pdc_bits"
#pragma debug field 21 8 0 1 "__pdc0" ;0,1
#pragma debug field 21 8 0 1 "__pdc1" ;1,1
#pragma debug field 21 8 0 1 "__pdc2" ;2,1
#pragma debug field 21 8 0 1 "__pdc3" ;3,1
#pragma debug field 21 8 0 1 "__pdc4" ;4,1
#pragma debug field 21 8 0 1 "__pdc5" ;5,1
#pragma debug field 21 8 0 1 "__pdc6" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 58 ""
#pragma debug field 2 57 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 58 1 ___pdc "__pdc" 1
#pragma debug struct_begin 59 "__integ_bits"
#pragma debug field 21 8 0 1 "__int0s0" ;0,1
#pragma debug field 21 8 0 1 "__int0s1" ;1,1
#pragma debug field 21 8 0 1 "__int1s0" ;2,1
#pragma debug field 21 8 0 1 "__int1s1" ;3,1
#pragma debug field 21 8 0 1 "__int2s0" ;4,1
#pragma debug field 21 8 0 1 "__int2s1" ;5,1
#pragma debug field 21 8 0 1 "__int3s0" ;6,1
#pragma debug field 21 8 0 1 "__int3s1" ;7,1
#pragma debug struct_end
#pragma debug union_begin 60 ""
#pragma debug field 2 59 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 60 1 ___integ "__integ" 1
#pragma debug struct_begin 61 "__ifs2_bits"
#pragma debug field 21 8 0 1 "__int0ps" ;0,1
#pragma debug field 21 8 0 1 "__int1ps" ;1,1
#pragma debug field 21 8 0 1 "__int2ps" ;2,1
#pragma debug field 21 8 0 1 "__int3ps" ;3,1
#pragma debug field 21 8 0 1 "__scksclps" ;4,1
#pragma debug field 21 8 0 1 "__sdisdaps" ;5,1
#pragma debug field 21 8 0 1 "__scsbps" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 62 ""
#pragma debug field 2 61 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 62 1 ___ifs2 "__ifs2" 1
#pragma debug struct_begin 63 "__pcs1_bits"
#pragma debug field 21 8 0 1 "__pcs10" ;0,1
#pragma debug field 21 8 0 1 "__pcs11" ;1,1
#pragma debug field 21 8 0 1 "__pcs12" ;2,1
#pragma debug field 21 8 0 1 "__pcs13" ;3,1
#pragma debug field 21 8 0 1 "__pcs14" ;4,1
#pragma debug field 21 8 0 1 "__pcs15" ;5,1
#pragma debug field 21 8 0 1 "__pcs16" ;6,1
#pragma debug field 21 8 0 1 "__pcs17" ;7,1
#pragma debug struct_end
#pragma debug union_begin 64 ""
#pragma debug field 2 63 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 64 1 ___pcs1 "__pcs1" 1
extern r1:byte
extern r2:byte
extern r3:byte

; 
; Generated by holtek-gcc v3.20, Fri Aug 28 11:34:19 2020
; Rebuild 610
; end of file
