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

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

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

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
_cgmApi equ [128]
public _Sys_ReadCalibratePara
#pragma debug scope 2 1
#line 68 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_Sys_ReadCalibratePara .section 'code'
_Sys_ReadCalibratePara proc
#line 69 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,29
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,low (offset _cgmApi+25)
	mov _Eeprom_ReadBuff_2[2],a
	mov a,high (offset _cgmApi+25)
	mov _Eeprom_ReadBuff_2[3],a
	clr _Eeprom_ReadBuff_2[0]
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 70 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[163]
	or a,[164]
	snz z
	jmp _L2
#line 72 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,-32
	mov [163],a
	mov a,21
	mov [164],a
_L2:
#line 74 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[165]
	or a,[166]
	snz z
	jmp _L3
#line 76 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,16
	mov [165],a
	mov a,39
	mov [166],a
_L3:
#line 78 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[171]
	sub a,85
	sz z
	jmp _L4
#line 80 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [172]
	clr [173]
#line 81 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [174]
	clr [175]
_L4:
#line 83 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[176]
	sub a,85
	sz z
	jmp _L1
#line 85 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,22
	mov [177],a
#line 86 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [178]
_L1:
	ret
_Sys_ReadCalibratePara endp
#line 86 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _BatVolStart
#pragma debug scope 3 1
#line 91 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_BatVolStart .section 'code'
_BatVolStart proc
	ret
_BatVolStart endp
#line 91 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
___pac equ [21]
___papu equ [22]
___pawu equ [23]
___intc1 equ [33]
___intc0 equ [32]
___wdtc equ [30]
public _TemperatureStartOffset
#pragma debug scope 4 1
#line 108 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_TemperatureStartOffset .section 'code'
_TemperatureStartOffset proc
    local _TemperatureStartOffset_2 db 9 dup(?)	; 0,9
#pragma debug struct_begin 42 ""
#pragma debug field 0 8 "sampleRate"
#pragma debug field 0 8 "gain"
#pragma debug field 0 8 "channel"
#pragma debug field 0 8 "dataSkip"
#pragma debug field 0 8 "dataAvgCnt"
#pragma debug field 0 8 "autoWriteNum"
#pragma debug field 0 8 "errCheck"
#pragma debug struct_end
#pragma debug variable 42 4 _TemperatureStartOffset_2+0 "adc24Cfg"
#line 109 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	clr [23].5
#line 113 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,22
	mov _TemperatureStartOffset_2[0],a
#line 114 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStartOffset_2[1]
#line 115 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,221
	mov _TemperatureStartOffset_2[2],a
#line 116 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,224
	mov _TemperatureStartOffset_2[3],a
#line 117 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStartOffset_2[4]
#line 118 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov _TemperatureStartOffset_2[5],a
#line 119 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStartOffset_2[6]
#line 120 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,22
	mov _Adc24_Cfg_2[0],a
	clr _Adc24_Cfg_2[1]
	mov a,221
	mov _Adc24_Cfg_2[2],a
	mov a,224
	mov _Adc24_Cfg_2[3],a
	clr _Adc24_Cfg_2[4]
	mov a,8
	mov _Adc24_Cfg_2[5],a
	clr _Adc24_Cfg_2[6]
	call _Adc24_Cfg
#line 122 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adc24SourceData[6].1
#line 123 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,4
	mov _adc24SourceData[4],a
	clr _adc24SourceData[5]
#pragma debug scope 5 4
;begin block, line: 123.-1
#pragma debug struct_begin 43 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 43 5 _TemperatureStartOffset_2+7 "oscCfg"
#line 127 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,2
	mov _TemperatureStartOffset_2[7],a
#line 128 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,17
	mov _TemperatureStartOffset_2[8],a
#line 129 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _TemperatureStartOffset_2
	mov ra,a
	mov a,high offset _TemperatureStartOffset_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 4 1
#line 132 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_TemperatureStartOffset_2[0]
	mov _Adc24_Enable_2[0],a
	mov a,_TemperatureStartOffset_2[1]
	mov _Adc24_Enable_2[1],a
	mov a,_TemperatureStartOffset_2[2]
	mov _Adc24_Enable_2[2],a
	mov a,_TemperatureStartOffset_2[3]
	mov _Adc24_Enable_2[3],a
	mov a,_TemperatureStartOffset_2[4]
	mov _Adc24_Enable_2[4],a
	mov a,_TemperatureStartOffset_2[5]
	mov _Adc24_Enable_2[5],a
	mov a,_TemperatureStartOffset_2[6]
	mov _Adc24_Enable_2[6],a
	call _Adc24_Enable
#line 133 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [33].4
	clr [32].6
	set [32].3
#line 135 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,168
	mov [30],a
#line 136 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 136 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	clr wdt
#line 137 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 137 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	halt
#pragma debug scope 6 4
;begin block, line: 137.-1
#pragma debug struct_begin 44 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 44 6 _TemperatureStartOffset_2+7 "oscCfg"
#line 141 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStartOffset_2[7]
#line 142 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _TemperatureStartOffset_2[8],a
#line 143 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _TemperatureStartOffset_2
	mov ra,a
	mov a,high offset _TemperatureStartOffset_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 4 1
#line 146 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	set [23].5
#line 147 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,82
	mov [30],a
	ret
_TemperatureStartOffset endp
#line 147 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
___pas0 equ [123]
___pa equ [20]
public _TemperatureStart
#pragma debug scope 7 1
#line 151 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_TemperatureStart .section 'code'
_TemperatureStart proc
    local _TemperatureStart_2 db 9 dup(?)	; 0,9
#pragma debug struct_begin 45 ""
#pragma debug field 0 8 "sampleRate"
#pragma debug field 0 8 "gain"
#pragma debug field 0 8 "channel"
#pragma debug field 0 8 "dataSkip"
#pragma debug field 0 8 "dataAvgCnt"
#pragma debug field 0 8 "autoWriteNum"
#pragma debug field 0 8 "errCheck"
#pragma debug struct_end
#pragma debug variable 45 7 _TemperatureStart_2+0 "adc24Cfg"
#line 152 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	clr [23].5
#line 158 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [123].3
	clr [123].2
#line 159 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [21].1
#line 160 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [20].1
#line 164 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,26
	mov _TemperatureStart_2[0],a
#line 165 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStart_2[1]
#line 166 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,141
	mov _TemperatureStart_2[2],a
#line 167 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,224
	mov _TemperatureStart_2[3],a
#line 168 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStart_2[4]
#line 169 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov _TemperatureStart_2[5],a
#line 170 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStart_2[6]
#line 171 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,26
	mov _Adc24_Cfg_2[0],a
	clr _Adc24_Cfg_2[1]
	mov a,141
	mov _Adc24_Cfg_2[2],a
	mov a,224
	mov _Adc24_Cfg_2[3],a
	clr _Adc24_Cfg_2[4]
	mov a,8
	mov _Adc24_Cfg_2[5],a
	clr _Adc24_Cfg_2[6]
	call _Adc24_Cfg
#line 173 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adc24SourceData[6].1
#line 174 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,4
	mov _adc24SourceData[4],a
	clr _adc24SourceData[5]
#pragma debug scope 8 7
;begin block, line: 174.-1
#pragma debug struct_begin 46 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 46 8 _TemperatureStart_2+7 "oscCfg"
#line 178 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,2
	mov _TemperatureStart_2[7],a
#line 179 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,17
	mov _TemperatureStart_2[8],a
#line 180 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _TemperatureStart_2
	mov ra,a
	mov a,high offset _TemperatureStart_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 7 1
#line 183 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_TemperatureStart_2[0]
	mov _Adc24_Enable_2[0],a
	mov a,_TemperatureStart_2[1]
	mov _Adc24_Enable_2[1],a
	mov a,_TemperatureStart_2[2]
	mov _Adc24_Enable_2[2],a
	mov a,_TemperatureStart_2[3]
	mov _Adc24_Enable_2[3],a
	mov a,_TemperatureStart_2[4]
	mov _Adc24_Enable_2[4],a
	mov a,_TemperatureStart_2[5]
	mov _Adc24_Enable_2[5],a
	mov a,_TemperatureStart_2[6]
	mov _Adc24_Enable_2[6],a
	call _Adc24_Enable
#line 184 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [33].4
	clr [32].6
	set [32].3
#line 186 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,168
	mov [30],a
#line 187 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 187 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	clr wdt
#line 188 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 188 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	halt
#pragma debug scope 9 7
;begin block, line: 188.-1
#pragma debug struct_begin 47 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 47 9 _TemperatureStart_2+7 "oscCfg"
#line 192 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperatureStart_2[7]
#line 193 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _TemperatureStart_2[8],a
#line 194 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _TemperatureStart_2
	mov ra,a
	mov a,high offset _TemperatureStart_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 7 1
#line 197 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	set [23].5
#line 198 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,82
	mov [30],a
	ret
_TemperatureStart endp
#line 198 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _CurrentWe1Start
#pragma debug scope 10 1
#line 202 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_CurrentWe1Start .section 'code'
_CurrentWe1Start proc
    local _CurrentWe1Start_2 db 9 dup(?)	; 0,9
#pragma debug struct_begin 48 ""
#pragma debug field 0 8 "sampleRate"
#pragma debug field 0 8 "gain"
#pragma debug field 0 8 "channel"
#pragma debug field 0 8 "dataSkip"
#pragma debug field 0 8 "dataAvgCnt"
#pragma debug field 0 8 "autoWriteNum"
#pragma debug field 0 8 "errCheck"
#pragma debug struct_end
#pragma debug variable 48 10 _CurrentWe1Start_2+0 "adc24Cfg"
#line 203 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	clr [23].5
#line 207 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[177]
	mov rb,a
	mov a,rb
	mov _CurrentWe1Start_2[0],a
#line 208 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[178]
	mov ra,a
	mov a,ra
	mov _CurrentWe1Start_2[1],a
#line 209 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,136
	mov _CurrentWe1Start_2[2],a
#line 210 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,224
	mov _CurrentWe1Start_2[3],a
#line 211 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _CurrentWe1Start_2[4]
#line 212 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov _CurrentWe1Start_2[5],a
#line 213 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _CurrentWe1Start_2[6]
#line 214 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rb
	mov _Adc24_Cfg_2[0],a
	mov a,ra
	mov _Adc24_Cfg_2[1],a
	mov a,136
	mov _Adc24_Cfg_2[2],a
	mov a,224
	mov _Adc24_Cfg_2[3],a
	clr _Adc24_Cfg_2[4]
	mov a,8
	mov _Adc24_Cfg_2[5],a
	clr _Adc24_Cfg_2[6]
	call _Adc24_Cfg
#line 216 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adc24SourceData[6].1
#line 217 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,4
	mov _adc24SourceData[4],a
	clr _adc24SourceData[5]
#pragma debug scope 11 10
;begin block, line: 217.-1
#pragma debug struct_begin 49 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 49 11 _CurrentWe1Start_2+7 "oscCfg"
#line 221 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,2
	mov _CurrentWe1Start_2[7],a
#line 222 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,17
	mov _CurrentWe1Start_2[8],a
#line 223 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _CurrentWe1Start_2
	mov ra,a
	mov a,high offset _CurrentWe1Start_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 10 1
#line 226 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_CurrentWe1Start_2[0]
	mov _Adc24_Enable_2[0],a
	mov a,_CurrentWe1Start_2[1]
	mov _Adc24_Enable_2[1],a
	mov a,_CurrentWe1Start_2[2]
	mov _Adc24_Enable_2[2],a
	mov a,_CurrentWe1Start_2[3]
	mov _Adc24_Enable_2[3],a
	mov a,_CurrentWe1Start_2[4]
	mov _Adc24_Enable_2[4],a
	mov a,_CurrentWe1Start_2[5]
	mov _Adc24_Enable_2[5],a
	mov a,_CurrentWe1Start_2[6]
	mov _Adc24_Enable_2[6],a
	call _Adc24_Enable
#line 227 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [33].4
	clr [32].6
	set [32].3
#line 229 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,168
	mov [30],a
#line 230 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 230 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	clr wdt
#line 231 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 231 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	halt
#pragma debug scope 12 10
;begin block, line: 231.-1
#pragma debug struct_begin 50 ""
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug variable 50 12 _CurrentWe1Start_2+7 "oscCfg"
#line 235 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _CurrentWe1Start_2[7]
#line 236 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _CurrentWe1Start_2[8],a
#line 237 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _CurrentWe1Start_2
	mov ra,a
	mov a,high offset _CurrentWe1Start_2
	mov rb,a
	mov a,7
	add a,ra
	mov _Oscillators_Cfg_2[0],a
	mov a,0
	adc a,rb
	mov _Oscillators_Cfg_2[1],a
	call _Oscillators_Cfg
#pragma debug scope 10 1
#line 240 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [21].5
	set [22].5
	set [23].5
#line 241 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,82
	mov [30],a
#line 243 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _sum[0]
	clr _sum[1]
	clr _sum[2]
	clr _sum[3]
#line 244 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov [129],a
#line 247 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adcAvgWE1[0]
	clr _adcAvgWE1[1]
	clr _adcAvgWE1[2]
	clr _adcAvgWE1[3]
#line 248 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adcCntWE1[0]
#line 249 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[147]
	mov _lastNaWe1Raw[0],a
	mov a,[148]
	mov _lastNaWe1Raw[1],a
	mov a,[149]
	mov _lastNaWe1Raw[2],a
	mov a,[150]
	mov _lastNaWe1Raw[3],a
	ret
_CurrentWe1Start endp
#line 249 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _CurrentWe2Start
#pragma debug scope 13 1
#line 253 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_CurrentWe2Start .section 'code'
_CurrentWe2Start proc
	ret
_CurrentWe2Start endp
#line 253 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _BatVolPolling
#pragma debug scope 14 1
#line 258 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_BatVolPolling .section 'code'
_BatVolPolling proc
	ret
_BatVolPolling endp
#line 258 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _TemperaturePolling
#pragma debug scope 15 1
#line 277 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_TemperaturePolling .section 'code'
_TemperaturePolling proc
    local _TemperaturePolling_2 db 12 dup(?)	; 0,12
#line 278 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_adcAutoModeBufP[0]
	mov rb,a
	mov a,_adcAutoModeBufP[1]
	mov rc,a
	snz _adc24SourceData[6].1
	jmp _L19
#line 280 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adc24SourceData[6].1
#pragma debug scope 16 15
;begin block, line: 280.-1
#pragma debug variable 13 16 _TemperaturePolling_2+0 "dataSum"
#line 283 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _TemperaturePolling_2[0]
	clr _TemperaturePolling_2[1]
	clr _TemperaturePolling_2[2]
	clr _TemperaturePolling_2[3]
	mov a,8
	mov rh,a
#line 284 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr ra
_L22:
#line 286 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,ra
	mov rd,a
	clr re
	clr c
	rlc rd
	rlc re
	clr c
	rlc rd
	rlc re
	mov a,low offset _adc24SourceDataBuf
	add a,rd
	mov rf,a
	mov a,high offset _adc24SourceDataBuf
	adc a,re
	mov rg,a
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	mov a,0
	mov ir,a
#line 287 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rb
	mov mp,a
	mov a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TemperaturePolling_2[4],a
	mov a,low (offset _adc24SourceDataBuf+1)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+1)
	adc a,re
	mov sbp,a
	mov a,_TemperaturePolling_2[4]
	mov ir,a
#line 288 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TemperaturePolling_2[4],a
	mov a,low (offset _adc24SourceDataBuf+2)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+2)
	adc a,re
	mov sbp,a
	mov a,_TemperaturePolling_2[4]
	mov ir,a
#line 289 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,3
	add a,rb
	mov _TemperaturePolling_2[4],a
	mov a,0
	adc a,rc
	mov _TemperaturePolling_2[5],a
	mov a,2
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	mov a,low (offset _adc24SourceDataBuf+3)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+3)
	adc a,re
	mov sbp,a
	mov a,rb
	mov ir,a
#line 291 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	call _Crom2PromNext
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,rd
	mov rb,a
	mov a,re
	mov rc,a
	clr re
	sz rc.7
	set re
	clr rd
	sz rc.7
	set rd
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	mov a,rb
	mov ir,a
	inc mp
	mov a,rc
	mov ir,a
	inc mp
	mov a,rd
	mov ir,a
	inc mp
	mov a,re
	mov ir,a
#line 292 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rb
	addm a,_TemperaturePolling_2[0]
	mov a,rc
	adcm a,_TemperaturePolling_2[1]
	mov a,rd
	adcm a,_TemperaturePolling_2[2]
	mov a,re
	adcm a,_TemperaturePolling_2[3]
#line 284 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc ra
	sdz rh
	jmp _LI1
	jmp _L21
_LI1:
#line 289 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_TemperaturePolling_2[4]
	mov rb,a
	mov a,_TemperaturePolling_2[5]
	mov rc,a
	jmp _L22
_L21:
#line 294 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_TemperaturePolling_2[0]
	mov re,a
	mov a,_TemperaturePolling_2[1]
	mov rf,a
	mov a,_TemperaturePolling_2[2]
	mov rg,a
	mov a,_TemperaturePolling_2[3]
	mov rh,a
	snz rh.7
	jmp _L23
	mov a,7
	addm a,re
	mov a,0
	adcm a,rf
	adcm a,rg
	adcm a,rh
_L23:
	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,3
_LI2:
	clr c
	sz rd.7
	set c
	rrc rd
	rrc rc
	rrc rb
	rrc ra
	sdz acc
	jmp _LI2
	mov a,ra
	mov _TemperaturePolling_2[0],a
	mov a,rb
	mov _TemperaturePolling_2[1],a
	mov a,rc
	mov _TemperaturePolling_2[2],a
	mov a,rd
	mov _TemperaturePolling_2[3],a
#line 297 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[137]
	mov rd,a
	mov a,[138]
	mov re,a
	clr rf
	clr rg
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,_TemperaturePolling_2[0]
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,_TemperaturePolling_2[1]
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,_TemperaturePolling_2[2]
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,_TemperaturePolling_2[3]
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rg,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rh,a
	mov a,0
	sub a,_TemperaturePolling_2[0]
	mov ra,a
	mov a,128
	sbc a,_TemperaturePolling_2[1]
	mov rb,a
	mov a,0
	sbc a,_TemperaturePolling_2[2]
	mov rc,a
	mov a,0
	sbc a,_TemperaturePolling_2[3]
	mov rd,a
	mov a,ra
	mov _TemperaturePolling_2[8],a
	mov a,rb
	mov _TemperaturePolling_2[9],a
	mov a,rc
	mov _TemperaturePolling_2[10],a
	mov a,rd
	mov _TemperaturePolling_2[11],a
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rh  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,ra  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,rb  
	mov _builtin_holtek_udivmodsi4_2[5],a
	mov a,rc  
	mov _builtin_holtek_udivmodsi4_2[6],a  
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[7],a
	call _builtin_holtek_divmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov [141],a
	mov a,re
	mov [142],a
#line 299 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	set [123].3
	set [123].2
#line 302 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov [131],a
#line 303 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _DRDY_Ready
#line 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000>263690
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 3000of the argument exceeds the maxinum 263690'
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000<0
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 3000 of the argument exceeds the mininum 0'
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000==0
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	JMP $
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000==1
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000==2
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 3000==3
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (3000<8) AND (3000>3)
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAY3 + 7 -3000
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (3000< 0404h) AND (3000>7)
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,3000/4-1
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX3 + 3 -(3000 MOD 4)
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (3000< 0x40B) AND (3000> 0403h)
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0 
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX6 + 0x40a -3000
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)>256)
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(3000-9)/0402h
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY5 +5- (((3000-9)%0402h)%6)
	ENDIF
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)<=256)
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(3000-9)/0402h
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,((3000-9)%0402h)/4+1
;# 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY3 +3-(((3000-9)%0402h)%4)
	ENDIF
_L19:
#pragma debug scope 15 1
	ret
_TemperaturePolling endp
#line 304 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
___fbrc equ [82]
public _CurrentWe1Polling
#pragma debug scope 17 1
#line 310 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_CurrentWe1Polling .section 'code'
_CurrentWe1Polling proc
    local _CurrentWe1Polling_2 db 16 dup(?)	; 0,16
#line 311 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz _adc24SourceData[6].1
	jmp _L27
#pragma debug scope 18 17
;begin block, line: 311.-1
#pragma debug scope 19 18
;begin block, line: 311.-1
#pragma debug variable 13 19 _CurrentWe1Polling_2+0 "opaMv_x10"
#line 313 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _adc24SourceData[6].1
#pragma debug scope 20 19
;begin block, line: 313.-1
#line 317 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_adcAutoModeBufP[0]
	mov rb,a
	mov a,_adcAutoModeBufP[1]
	mov rc,a
	mov a,8
	mov rh,a
#line 318 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr ra
_L30:
#line 320 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,ra
	mov rd,a
	clr re
	clr c
	rlc rd
	rlc re
	clr c
	rlc rd
	rlc re
	mov a,low offset _adc24SourceDataBuf
	add a,rd
	mov rf,a
	mov a,high offset _adc24SourceDataBuf
	adc a,re
	mov rg,a
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	mov a,0
	mov ir,a
#line 321 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rb
	mov mp,a
	mov a,rc
	mov sbp,a
	call _Crom2Prom
	mov _CurrentWe1Polling_2[4],a
	mov a,low (offset _adc24SourceDataBuf+1)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+1)
	adc a,re
	mov sbp,a
	mov a,_CurrentWe1Polling_2[4]
	mov ir,a
#line 322 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _CurrentWe1Polling_2[4],a
	mov a,low (offset _adc24SourceDataBuf+2)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+2)
	adc a,re
	mov sbp,a
	mov a,_CurrentWe1Polling_2[4]
	mov ir,a
#line 323 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,3
	add a,rb
	mov _CurrentWe1Polling_2[4],a
	mov a,0
	adc a,rc
	mov _CurrentWe1Polling_2[5],a
	mov a,2
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	mov a,low (offset _adc24SourceDataBuf+3)
	add a,rd
	mov mp,a
	mov a,high (offset _adc24SourceDataBuf+3)
	adc a,re
	mov sbp,a
	mov a,rb
	mov ir,a
#line 325 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	call _Crom2PromNext
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,rd
	mov rb,a
	mov a,re
	mov rc,a
	clr re
	sz rc.7
	set re
	clr rd
	sz rc.7
	set rd
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	mov a,rb
	mov ir,a
	inc mp
	mov a,rc
	mov ir,a
	inc mp
	mov a,rd
	mov ir,a
	inc mp
	mov a,re
	mov ir,a
#line 318 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc ra
	sdz rh
	jmp _LI3
	jmp _L29
_LI3:
#line 323 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_CurrentWe1Polling_2[4]
	mov rb,a
	mov a,_CurrentWe1Polling_2[5]
	mov rc,a
	jmp _L30
_L29:
#line 318 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov rh,a
	clr _CurrentWe1Polling_2[12]
	clr _CurrentWe1Polling_2[13]
	clr _CurrentWe1Polling_2[14]
	clr _CurrentWe1Polling_2[15]
	clr _CurrentWe1Polling_2[4]
	clr _CurrentWe1Polling_2[5]
	clr _CurrentWe1Polling_2[6]
	mov a,-128
	mov _CurrentWe1Polling_2[7],a
	set _CurrentWe1Polling_2[8]
	set _CurrentWe1Polling_2[9]
	set _CurrentWe1Polling_2[10]
	mov a,127
	mov _CurrentWe1Polling_2[11],a
	clr ra
_L34:
#pragma debug scope 19 18
#pragma debug scope 21 19
;begin block, line: 318.-1
#line 338 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,ra
	mov rb,a
	clr rc
	clr c
	rlc rb
	rlc rc
	clr c
	rlc rb
	rlc rc
	mov a,low offset _adc24SourceDataBuf
	add a,rb
	mov mp,a
	mov a,high offset _adc24SourceDataBuf
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	call _Crom2PromNext
	mov rf,a
	call _Crom2PromNext
	mov rg,a
	mov a,rd
	sub a,_CurrentWe1Polling_2[8]
	mov a,re
	sbc a,_CurrentWe1Polling_2[9]
	mov a,rf
	sbc a,_CurrentWe1Polling_2[10]
	mov a,rg
	sbc a,_CurrentWe1Polling_2[11]
	snz sc
	jmp _L31
	mov a,rd
	mov _CurrentWe1Polling_2[8],a
	mov a,re
	mov _CurrentWe1Polling_2[9],a
	mov a,rf
	mov _CurrentWe1Polling_2[10],a
	mov a,rg
	mov _CurrentWe1Polling_2[11],a
_L31:
	mov a,_CurrentWe1Polling_2[4]
	sub a,rd
	mov a,_CurrentWe1Polling_2[5]
	sbc a,re
	mov a,_CurrentWe1Polling_2[6]
	sbc a,rf
	mov a,_CurrentWe1Polling_2[7]
	sbc a,rg
	snz sc
	jmp _L32
	mov a,rd
	mov _CurrentWe1Polling_2[4],a
	mov a,re
	mov _CurrentWe1Polling_2[5],a
	mov a,rf
	mov _CurrentWe1Polling_2[6],a
	mov a,rg
	mov _CurrentWe1Polling_2[7],a
_L32:
#line 347 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rd
	addm a,_CurrentWe1Polling_2[12]
	mov a,re
	adcm a,_CurrentWe1Polling_2[13]
	mov a,rf
	adcm a,_CurrentWe1Polling_2[14]
	mov a,rg
	adcm a,_CurrentWe1Polling_2[15]
#line 336 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc ra
	sdz rh
	jmp _L34
	mov a,_CurrentWe1Polling_2[4]
	add a,_CurrentWe1Polling_2[8]
	mov rd,a
	mov a,_CurrentWe1Polling_2[5]
	adc a,_CurrentWe1Polling_2[9]
	mov re,a
	mov a,_CurrentWe1Polling_2[6]
	adc a,_CurrentWe1Polling_2[10]
	mov rf,a
	mov a,_CurrentWe1Polling_2[7]
	adc a,_CurrentWe1Polling_2[11]
	mov rg,a
#line 349 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_CurrentWe1Polling_2[12]
	subm a,rd
	mov a,_CurrentWe1Polling_2[13]
	sbcm a,re
	mov a,_CurrentWe1Polling_2[14]
	sbcm a,rf
	mov a,_CurrentWe1Polling_2[15]
	sbcm a,rg
#line 350 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,6  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,0  
	mov _builtin_holtek_udivmodsi4_2[5],a
	mov a,0  
	mov _builtin_holtek_udivmodsi4_2[6],a  
	mov a,0  
	mov _builtin_holtek_udivmodsi4_2[7],a
	call _builtin_holtek_divmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
#pragma debug scope 19 18
#line 357 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,53
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,12
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rg,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rh,a
	snz rh.7
	jmp _L35
	mov a,255
	addm a,re
	mov a,31
	adcm a,rf
	mov a,0
	adcm a,rg
	adcm a,rh
_L35:
	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,13
_LI4:
	clr c
	sz rd.7
	set c
	rrc rd
	rrc rc
	rrc rb
	rrc ra
	sdz acc
	jmp _LI4
	mov a,ra
	mov _CurrentWe1Polling_2[0],a
	mov a,rb
	mov _CurrentWe1Polling_2[1],a
	mov a,rc
	mov _CurrentWe1Polling_2[2],a
	mov a,rd
	mov _CurrentWe1Polling_2[3],a
#line 360 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov [131],a
#line 361 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _DRDY_Ready
#line 364 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [82].7
	jmp _L37
#line 366 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [82].6
	jmp _L38
	sz [82].5
	jmp _L38
	sz [82].4
	jmp _L38
#line 368 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,-12
	mov [163],a
	mov a,1
	mov [164],a
_L38:
#line 370 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [82].6
	jmp _L39
	sz [82].5
	jmp _L39
	snz [82].4
	jmp _L39
#line 372 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,-24
	mov [163],a
	mov a,3
	mov [164],a
_L39:
#line 374 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [82].6
	jmp _L40
	snz [82].5
	jmp _L40
	sz [82].4
	jmp _L40
#line 376 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,-48
	mov [163],a
	mov a,7
	mov [164],a
_L40:
#line 378 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [82].6
	jmp _L41
	snz [82].5
	jmp _L41
	snz [82].4
	jmp _L41
#line 380 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,-96
	mov [163],a
	mov a,15
	mov [164],a
_L41:
#line 382 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [82].6
	jmp _L37
	sz [82].5
	jmp _L37
	sz [82].4
	jmp _L37
#line 384 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,64
	mov [163],a
	mov a,31
	mov [164],a
_L37:
#line 389 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_CurrentWe1Polling_2[0]
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,_CurrentWe1Polling_2[1]
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,_CurrentWe1Polling_2[2]
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,_CurrentWe1Polling_2[3]
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,16
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,39
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov _CurrentWe1Polling_2[4],a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov _CurrentWe1Polling_2[5],a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov _CurrentWe1Polling_2[6],a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov _CurrentWe1Polling_2[7],a
	mov a,[163]
	mov rd,a
	mov a,[164]
	mov re,a
	clr rf
	clr rg
	mov a,_CurrentWe1Polling_2[4]  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,_CurrentWe1Polling_2[5]  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,_CurrentWe1Polling_2[6]  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,_CurrentWe1Polling_2[7]  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[5],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[6],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[7],a
	call _builtin_holtek_divmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	sub a,[172]
	mov [147],a
	mov a,re
	sbc a,[173]
	mov [148],a
	clr acc
	sz [173].7
	set acc
	mov [149],a
	mov [150],a
	mov a,rf
	sbcm a,[149]
	mov a,rg
	sbcm a,[150]
#line 390 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[165]
	mov rd,a
	mov a,[166]
	mov re,a
	clr rf
	clr rg
	mov a,rd
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,re
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,rf
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,rg
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,[147]
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,[148]
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,[149]
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,[150]
	mov _builtin_holtek_mulsi3_2[7],a
	call _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov rd,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rg,a
	mov a,rd  
	mov _builtin_holtek_udivmodsi4_2[0],a  
	mov a,re  
	mov _builtin_holtek_udivmodsi4_2[1],a
	mov a,rf  
	mov _builtin_holtek_udivmodsi4_2[2],a  
	mov a,rg  
	mov _builtin_holtek_udivmodsi4_2[3],a
	mov a,16  
	mov _builtin_holtek_udivmodsi4_2[4],a  
	mov a,39  
	mov _builtin_holtek_udivmodsi4_2[5],a
	mov a,0  
	mov _builtin_holtek_udivmodsi4_2[6],a  
	mov a,0  
	mov _builtin_holtek_udivmodsi4_2[7],a
	call _builtin_holtek_divmodsi4
	mov a,_builtin_holtek_udivmodsi4_2[0]  
	mov rd,a  
	mov a,_builtin_holtek_udivmodsi4_2[1]  
	mov re,a
	mov a,_builtin_holtek_udivmodsi4_2[2]  
	mov rf,a  
	mov a,_builtin_holtek_udivmodsi4_2[3]  
	mov rg,a
	mov a,rd
	mov [143],a
	mov a,re
	mov [144],a
#line 394 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov [131],a
_L27:
#pragma debug scope 18 17
#pragma debug scope 17 1
	ret
_CurrentWe1Polling endp
#line 394 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _CurrentWe2Polling
#pragma debug scope 22 1
#line 399 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_CurrentWe2Polling .section 'code'
_CurrentWe2Polling proc
	ret
_CurrentWe2Polling endp
#line 399 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _ThirdElAfeInit
#pragma debug scope 23 1
#line 404 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_ThirdElAfeInit .section 'code'
_ThirdElAfeInit proc
    local _ThirdElAfeInit_2 db 18 dup(?)	; 0,18
#pragma debug struct_begin 51 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 52 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 51 "dac1"
#pragma debug field 2 51 "dac2"
#pragma debug field 2 51 "dac3"
#pragma debug struct_end
#pragma debug variable 52 23 _ThirdElAfeInit_2+0 "afePower"
#pragma debug struct_begin 53 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 54 ""
#pragma debug field 2 53 "opa1"
#pragma debug field 2 53 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 54 23 _ThirdElAfeInit_2+13 "opa"
#line 407 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _ThirdElAfeInit_2[0],a
#line 408 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _ThirdElAfeInit_2[1]
#line 409 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[154]
	mov ra,a
	mov a,ra
	mov _ThirdElAfeInit_2[2],a
#line 410 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _ThirdElAfeInit_2[3],a
#line 412 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _ThirdElAfeInit_2[4],a
#line 413 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[157]
	mov _ThirdElAfeInit_2[5],a
	mov a,[158]
	mov _ThirdElAfeInit_2[6],a
#line 415 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _ThirdElAfeInit_2[10],a
#line 416 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[161]
	mov rb,a
	mov a,[162]
	mov rc,a
	mov a,rb
	mov _ThirdElAfeInit_2[11],a
	mov a,rc
	mov _ThirdElAfeInit_2[12],a
#line 425 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov _ThirdElAfeCfg_2[13],a
	set _ThirdElAfeCfg_2[14]
	mov a,_ThirdElAfeInit_2[15]
	mov _ThirdElAfeCfg_2[15],a
	mov a,_ThirdElAfeInit_2[16]
	mov _ThirdElAfeCfg_2[16],a
	mov a,1
	mov _ThirdElAfeCfg_2[17],a
	mov a,1
	mov _ThirdElAfeCfg_2[0],a
	clr _ThirdElAfeCfg_2[1]
	mov a,ra
	mov _ThirdElAfeCfg_2[2],a
	mov a,1
	mov _ThirdElAfeCfg_2[3],a
	mov a,1
	mov _ThirdElAfeCfg_2[4],a
	mov a,_ThirdElAfeInit_2[5]
	mov _ThirdElAfeCfg_2[5],a
	mov a,_ThirdElAfeInit_2[6]
	mov _ThirdElAfeCfg_2[6],a
	mov a,_ThirdElAfeInit_2[7]
	mov _ThirdElAfeCfg_2[7],a
	mov a,_ThirdElAfeInit_2[8]
	mov _ThirdElAfeCfg_2[8],a
	mov a,_ThirdElAfeInit_2[9]
	mov _ThirdElAfeCfg_2[9],a
	mov a,1
	mov _ThirdElAfeCfg_2[10],a
	mov a,rb
	mov _ThirdElAfeCfg_2[11],a
	mov a,_ThirdElAfeInit_2[12]
	mov _ThirdElAfeCfg_2[12],a
	call _ThirdElAfeCfg
	ret
_ThirdElAfeInit endp
#line 425 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _Sys_Afe
#pragma debug scope 24 1
#line 429 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_Sys_Afe .section 'code'
_Sys_Afe proc
#line 430 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [134]
	jmp _L64
#line 432 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _ThirdElAfeInit
#line 434 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc [134]
	jmp _L63
_L64:
#line 436 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [134]
	jmp _L66
#line 438 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136]
	jmp _L63
#line 440 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc [134]
#line 441 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [135]
	jmp _L63
_L66:
#line 444 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[134]
	sub a,2
	snz z
	jmp _L63
#line 446 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136].2
	jmp _L69
#line 448 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [135]
	jmp _L70
#line 450 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Start
	jmp _L80
_L70:
#line 453 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [135]
	jmp _L71
#line 455 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Polling
	jmp _L71
_L69:
#line 458 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [136].0
	jmp _L82
#line 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136].1
	jmp _L74
#line 472 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [135]
	jmp _L75
#line 474 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _TemperatureStart
_L80:
#line 475 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc [135]
	jmp _L71
_L75:
#line 477 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [135]
	jmp _L71
#line 479 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _TemperaturePolling
	jmp _L71
_L74:
#line 483 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136].3
	jmp _L71
_L82:
#line 485 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [135]
	jmp _L80
#line 490 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[135]
	mov ra,a
_L71:
#line 496 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [136]
	jmp _L63
#line 498 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,1
	mov [134],a
_L63:
	ret
_Sys_Afe endp
#line 498 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _Sys_Calibrite
#pragma debug scope 25 1
#line 504 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_Sys_Calibrite .section 'code'
_Sys_Calibrite proc
#line 505 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [134]
	jmp _L84
#line 507 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [135]
	jmp _L85
#line 510 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _ThirdElAfeInit
#line 512 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Start
#line 514 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [172]
	clr [173]
	jmp _L103
_L85:
#line 518 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [135]
	jmp _L87
#line 521 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Polling
#line 522 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [131]
	jmp _L83
#line 524 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[147]
	mov rd,a
	mov a,[148]
	mov re,a
	mov a,[149]
	mov rf,a
	mov a,[150]
	mov rg,a
	mov a,rd
	mov [172],a
	mov a,re
	mov [173],a
#line 525 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,85
	mov [171],a
#line 526 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,5
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,43
	add a,_cgmApiP[0]
	mov _Eeprom_WriteBuf_2[2],a
	mov a,0
	adc a,_cgmApiP[1]
	mov _Eeprom_WriteBuf_2[3],a
	mov a,18
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 527 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,5
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,43
	add a,_cgmApiP[0]
	mov _Eeprom_ReadBuff_2[2],a
	mov a,0
	adc a,_cgmApiP[1]
	mov _Eeprom_ReadBuff_2[3],a
	mov a,18
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000>263690
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 2000of the argument exceeds the maxinum 263690'
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000<0
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 2000 of the argument exceeds the mininum 0'
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==0
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	JMP $
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==1
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==2
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==3
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000<8) AND (2000>3)
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAY3 + 7 -2000
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000< 0404h) AND (2000>7)
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,2000/4-1
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX3 + 3 -(2000 MOD 4)
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000< 0x40B) AND (2000> 0403h)
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0 
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX6 + 0x40a -2000
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000 >= 0x40b) AND ((((2000-9)%0402h)/4+1)>256)
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(2000-9)/0402h
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY5 +5- (((2000-9)%0402h)%6)
	ENDIF
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000 >= 0x40b) AND ((((2000-9)%0402h)/4+1)<=256)
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(2000-9)/0402h
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,((2000-9)%0402h)/4+1
;# 528 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY3 +3-(((2000-9)%0402h)%4)
	ENDIF
_L103:
#line 529 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	inc [135]
	jmp _L83
_L87:
#line 532 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[135]
	mov ra,a
	jmp _L83
_L84:
#line 537 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [134]
	jmp _L83
#line 539 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136].2
	jmp _L90
#line 541 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sz [135]
	jmp _L91
#line 543 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Start
	jmp _L103
_L91:
#line 546 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [135]
	jmp _L83
#line 548 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _CurrentWe1Polling
#line 549 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [131]
	jmp _L83
#line 551 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [136].2
#line 552 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [135]
#line 553 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136]
	jmp _L92
#line 555 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [131]
	jmp _L83
_L92:
#line 559 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,low (offset _cgmApi+35)
	mov _Eeprom_WriteBuf_2[2],a
	mov a,high (offset _cgmApi+35)
	mov _Eeprom_WriteBuf_2[3],a
	mov a,10
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000>263690
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 2000of the argument exceeds the maxinum 263690'
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000<0
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	ERRMESSAGE 'the value 2000 of the argument exceeds the mininum 0'
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==0
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	JMP $
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==1
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==2
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF 2000==3
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	NOP
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000<8) AND (2000>3)
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAY3 + 7 -2000
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000< 0404h) AND (2000>7)
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,2000/4-1
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX3 + 3 -(2000 MOD 4)
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000< 0x40B) AND (2000> 0403h)
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0 
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYX6 + 0x40a -2000
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000 >= 0x40b) AND ((((2000-9)%0402h)/4+1)>256)
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(2000-9)/0402h
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,0
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY5 +5- (((2000-9)%0402h)%6)
	ENDIF
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	IF (2000 >= 0x40b) AND ((((2000-9)%0402h)/4+1)<=256)
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,(2000-9)/0402h
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV _builtin_holtek_delay_2,A
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	MOV A,((2000-9)%0402h)/4+1
;# 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c" 1
	CALL __DELAYY3 +3-(((2000-9)%0402h)%4)
	ENDIF
	jmp _L83
_L90:
#line 566 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [136].3
	jmp _L83
#line 568 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [135]
	jmp _L103
#line 573 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	sdza [135]
	jmp _L83
#line 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	snz [131]
	jmp _L83
#line 578 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [136].3
#line 579 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,8
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,low (offset _cgmApi+35)
	mov _Eeprom_WriteBuf_2[2],a
	mov a,high (offset _cgmApi+35)
	mov _Eeprom_WriteBuf_2[3],a
	mov a,10
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
_L83:
	ret
_Sys_Calibrite endp
#line 579 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _Work_Mode_Polling
#pragma debug scope 26 1
#line 588 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_Work_Mode_Polling .section 'code'
_Work_Mode_Polling proc
    local _Work_Mode_Polling_2 db 1 dup(?)	; 0,1
#line 589 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,[133]
	mov _Work_Mode_Polling_2[0],a
	mov a,_Work_Mode_Polling_2[0]
	sub a,2
	sz z
	jmp _L106
#line 589 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,_Work_Mode_Polling_2[0]
	sub a,4
	snz z
	jmp _L104
#line 595 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _Sys_Calibrite
#line 596 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	jmp _L104
_L106:
#line 592 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _Sys_Afe
_L104:
	ret
_Work_Mode_Polling endp
#line 592 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
public _Init_AFE
#pragma debug scope 27 1
#line 47 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
_Init_AFE .section 'code'
_Init_AFE proc
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,2
	mov [133],a
#line 50 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [134]
#line 51 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,4
	mov [136],a
#line 52 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _deviceApi[0].3
#line 59 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	call _Work_Mode_Polling
#line 61 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	mov a,low offset _cgmApi
	mov _cgmApiP[0],a
	mov a,high offset _cgmApi
	mov _cgmApiP[1],a
#line 62 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr [132]
#line 64 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
	clr _isNotFirstOffsetWe1[0]
	ret
_Init_AFE endp
#line 64 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
#pragma debug scope 1 1
#line 44 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _adc24SourceDataBuf
@HCCINIT0_adc24SourceDataBuf .section 'data'
_adc24SourceDataBuf	db 84 dup(0)
#pragma debug struct_begin 55 ""
#pragma debug field 0 8 "byteLow"
#pragma debug field 0 8 "byteMid"
#pragma debug field 0 8 "byteHigh"
#pragma debug field 0 8 "byteRes"
#pragma debug struct_end
#pragma debug union_begin 56 ""
#pragma debug field 2 55 "byte"
#pragma debug field 0 13 "adcData"
#pragma debug union_end
#pragma debug struct_begin 57 "Adc24_Source_Data_t"
#pragma debug field 3 56 "data"
#pragma debug struct_end
#pragma debug array 58 57 21 1
#pragma debug variable 58 1 _adc24SourceDataBuf "adc24SourceDataBuf"

@HCCINIT .section 'data'
@HCCINIT0_isNotFirstOffsetWe1 .section 'data'
_isNotFirstOffsetWe1	db 0
#pragma debug variable 8 1 _isNotFirstOffsetWe1 "isNotFirstOffsetWe1"

@HCCINIT .section 'data'
#line 26 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _lastNaWe1Raw
@HCCINIT0_lastNaWe1Raw .section 'data'
_lastNaWe1Raw	db 4 dup(0)
#pragma debug variable 13 1 _lastNaWe1Raw "lastNaWe1Raw"

@HCCINIT .section 'data'
#line 24 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _adcCntWE1
@HCCINIT0_adcCntWE1 .section 'data'
_adcCntWE1	db 0
#pragma debug variable 8 1 _adcCntWE1 "adcCntWE1"

@HCCINIT .section 'data'
#line 23 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _adcAvgWE1
@HCCINIT0_adcAvgWE1 .section 'data'
_adcAvgWE1	db 4 dup(0)
#pragma debug variable 13 1 _adcAvgWE1 "adcAvgWE1"

@HCCINIT .section 'data'
#line 20 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _cgmApiP
@HCCINIT0_cgmApiP .section 'data'
_cgmApiP	db 2 dup(0)
#pragma debug struct_begin 59 "CGM_API_t"
#pragma debug field 0 8 "isStartMeaCurrent"
#pragma debug field 0 8 "isMeaCurrent"
#pragma debug field 0 8 "isStateUpdate"
#pragma debug field 0 8 "isDataUpdate"
#pragma debug field 0 8 "isEnterHalt"
#pragma debug field 0 8 "workMode"
#pragma debug field 0 8 "workStep"
#pragma debug field 0 8 "workStatus"
#pragma debug field 0 8 "dataType"
#pragma debug field 0 12 "temperatureRfRes"
#pragma debug field 0 12 "batVol"
#pragma debug field 0 12 "temperatureRes"
#pragma debug field 0 11 "currentNaWe1Cal"
#pragma debug field 0 11 "currentNaWe2Cal"
#pragma debug field 0 13 "currentNaWe1Raw"
#pragma debug field 0 11 "currentNaWe2Raw"
#pragma debug field 0 8 "calibratedId"
#pragma debug field 0 8 "virefData"
#pragma debug field 0 12 "NC"
#pragma debug field 0 12 "dac1Data"
#pragma debug field 0 12 "dac2Data"
#pragma debug field 0 12 "dac3Data"
#pragma debug field 0 12 "we1Rf"
#pragma debug field 0 12 "we1CalPara"
#pragma debug field 0 12 "we2Rf"
#pragma debug field 0 12 "we2CalPara"
#pragma debug field 0 8 "calibratedIdOffset"
#pragma debug field 0 11 "offsetNaWe1"
#pragma debug field 0 11 "offsetNaWe2"
#pragma debug field 0 8 "calibratedIdAdcWe1"
#pragma debug field 0 8 "adcSampleRateWe1"
#pragma debug field 0 8 "adcGainWe1"
#pragma debug field 0 8 "calibratedIdAdcWe2"
#pragma debug field 0 8 "adcSampleRateWe2"
#pragma debug field 0 8 "adcGainWe2"
#pragma debug field 0 14 "restartNum"
#pragma debug field 0 8 "restartNum_WR"
#pragma debug struct_end
#pragma debug pointer 60 59 1
#pragma debug variable 60 1 _cgmApiP "cgmApiP"

@HCCINIT .section 'data'
#line 18 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _sum
@HCCINIT0_sum .section 'data'
_sum	db 4 dup(0)
#pragma debug variable 13 1 _sum "sum"

@HCCINIT .section 'data'
#line 15 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\Work_Mode_Polling.c"
public _Temp
@HCCINIT0_Temp .section 'data'
_Temp	db 2 dup(0)
#pragma debug variable 12 1 _Temp "Temp"

@HCCINIT .section 'data'
#pragma debug struct_begin 61 "__pa_bits"
#pragma debug field 21 8 0 1 "__pa0" ;0,1
#pragma debug field 21 8 0 1 "__pa1" ;1,1
#pragma debug field 21 8 0 1 "__pa2" ;2,1
#pragma debug field 21 8 0 1 "__pa3" ;3,1
#pragma debug field 21 8 0 1 "__pa4" ;4,1
#pragma debug field 21 8 0 1 "__pa5" ;5,1
#pragma debug field 21 8 0 1 "__pa6" ;6,1
#pragma debug field 21 8 0 1 "__pa7" ;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 ___pa "__pa" 1
#pragma debug struct_begin 63 "__pac_bits"
#pragma debug field 21 8 0 1 "__pac0" ;0,1
#pragma debug field 21 8 0 1 "__pac1" ;1,1
#pragma debug field 21 8 0 1 "__pac2" ;2,1
#pragma debug field 21 8 0 1 "__pac3" ;3,1
#pragma debug field 21 8 0 1 "__pac4" ;4,1
#pragma debug field 21 8 0 1 "__pac5" ;5,1
#pragma debug field 21 8 0 1 "__pac6" ;6,1
#pragma debug field 21 8 0 1 "__pac7" ;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 ___pac "__pac" 1
#pragma debug struct_begin 65 "__papu_bits"
#pragma debug field 21 8 0 1 "__papu0" ;0,1
#pragma debug field 21 8 0 1 "__papu1" ;1,1
#pragma debug field 21 8 0 1 "__papu2" ;2,1
#pragma debug field 21 8 0 1 "__papu3" ;3,1
#pragma debug field 21 8 0 1 "__papu4" ;4,1
#pragma debug field 21 8 0 1 "__papu5" ;5,1
#pragma debug field 21 8 0 1 "__papu6" ;6,1
#pragma debug field 21 8 0 1 "__papu7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 66 ""
#pragma debug field 2 65 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 66 1 ___papu "__papu" 1
#pragma debug struct_begin 67 "__pawu_bits"
#pragma debug field 21 8 0 1 "__pawu0" ;0,1
#pragma debug field 21 8 0 1 "__pawu1" ;1,1
#pragma debug field 21 8 0 1 "__pawu2" ;2,1
#pragma debug field 21 8 0 1 "__pawu3" ;3,1
#pragma debug field 21 8 0 1 "__pawu4" ;4,1
#pragma debug field 21 8 0 1 "__pawu5" ;5,1
#pragma debug field 21 8 0 1 "__pawu6" ;6,1
#pragma debug field 21 8 0 1 "__pawu7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 68 ""
#pragma debug field 2 67 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 68 1 ___pawu "__pawu" 1
#pragma debug struct_begin 69 "__wdtc_bits"
#pragma debug field 21 8 0 1 "__ws0" ;0,1
#pragma debug field 21 8 0 1 "__ws1" ;1,1
#pragma debug field 21 8 0 1 "__ws2" ;2,1
#pragma debug field 21 8 0 1 "__we0" ;3,1
#pragma debug field 21 8 0 1 "__we1" ;4,1
#pragma debug field 21 8 0 1 "__we2" ;5,1
#pragma debug field 21 8 0 1 "__we3" ;6,1
#pragma debug field 21 8 0 1 "__we4" ;7,1
#pragma debug struct_end
#pragma debug union_begin 70 ""
#pragma debug field 2 69 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 70 1 ___wdtc "__wdtc" 1
#pragma debug struct_begin 71 "__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 "__autoade" ;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 "__autoadf" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 72 ""
#pragma debug field 2 71 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 72 1 ___intc0 "__intc0" 1
#pragma debug struct_begin 73 "__intc1_bits"
#pragma debug field 21 8 0 1 "__ade" ;0,1
#pragma debug field 21 8 0 1 "__mf0e" ;1,1
#pragma debug field 21 8 0 1 "__mf1e" ;2,1
#pragma debug field 21 8 0 1 "__int2e" ;3,1
#pragma debug field 21 8 0 1 "__adf" ;4,1
#pragma debug field 21 8 0 1 "__mf0f" ;5,1
#pragma debug field 21 8 0 1 "__mf1f" ;6,1
#pragma debug field 21 8 0 1 "__int2f" ;7,1
#pragma debug struct_end
#pragma debug union_begin 74 ""
#pragma debug field 2 73 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 74 1 ___intc1 "__intc1" 1
#pragma debug struct_begin 75 "__fbrc_bits"
#pragma debug field 21 8 0 1 "__fbr2s0" ;0,1
#pragma debug field 21 8 0 1 "__fbr2s1" ;1,1
#pragma debug field 21 8 0 1 "__fbr2s2" ;2,1
#pragma debug field 21 8 0 1 "__fbr2c" ;3,1
#pragma debug field 21 8 0 1 "__fbr1s0" ;4,1
#pragma debug field 21 8 0 1 "__fbr1s1" ;5,1
#pragma debug field 21 8 0 1 "__fbr1s2" ;6,1
#pragma debug field 21 8 0 1 "__fbr1c" ;7,1
#pragma debug struct_end
#pragma debug union_begin 76 ""
#pragma debug field 2 75 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 76 1 ___fbrc "__fbrc" 1
#pragma debug struct_begin 77 "__pas0_bits"
#pragma debug field 21 8 0 1 "__pas00" ;0,1
#pragma debug field 21 8 0 1 "__pas01" ;1,1
#pragma debug field 21 8 0 1 "__pas02" ;2,1
#pragma debug field 21 8 0 1 "__pas03" ;3,1
#pragma debug field 21 8 0 1 "__pas04" ;4,1
#pragma debug field 21 8 0 1 "__pas05" ;5,1
#pragma debug field 21 8 0 1 "__pas06" ;6,1
#pragma debug field 21 8 0 1 "__pas07" ;7,1
#pragma debug struct_end
#pragma debug union_begin 78 ""
#pragma debug field 2 77 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 78 1 ___pas0 "__pas0" 1
#pragma debug struct_begin 79 ""
#pragma debug field 0 8 "isStartMeaCurrent"
#pragma debug field 0 8 "isMeaCurrent"
#pragma debug field 0 8 "isStateUpdate"
#pragma debug field 0 8 "isDataUpdate"
#pragma debug field 0 8 "isEnterHalt"
#pragma debug field 0 8 "workMode"
#pragma debug field 0 8 "workStep"
#pragma debug field 0 8 "workStatus"
#pragma debug field 0 8 "dataType"
#pragma debug field 0 12 "temperatureRfRes"
#pragma debug field 0 12 "batVol"
#pragma debug field 0 12 "temperatureRes"
#pragma debug field 0 11 "currentNaWe1Cal"
#pragma debug field 0 11 "currentNaWe2Cal"
#pragma debug field 0 13 "currentNaWe1Raw"
#pragma debug field 0 11 "currentNaWe2Raw"
#pragma debug field 0 8 "calibratedId"
#pragma debug field 0 8 "virefData"
#pragma debug field 0 12 "NC"
#pragma debug field 0 12 "dac1Data"
#pragma debug field 0 12 "dac2Data"
#pragma debug field 0 12 "dac3Data"
#pragma debug field 0 12 "we1Rf"
#pragma debug field 0 12 "we1CalPara"
#pragma debug field 0 12 "we2Rf"
#pragma debug field 0 12 "we2CalPara"
#pragma debug field 0 8 "calibratedIdOffset"
#pragma debug field 0 11 "offsetNaWe1"
#pragma debug field 0 11 "offsetNaWe2"
#pragma debug field 0 8 "calibratedIdAdcWe1"
#pragma debug field 0 8 "adcSampleRateWe1"
#pragma debug field 0 8 "adcGainWe1"
#pragma debug field 0 8 "calibratedIdAdcWe2"
#pragma debug field 0 8 "adcSampleRateWe2"
#pragma debug field 0 8 "adcGainWe2"
#pragma debug field 0 14 "restartNum"
#pragma debug field 0 8 "restartNum_WR"
#pragma debug struct_end
#pragma debug variable 79 1 _cgmApi "cgmApi" 59

; output external variables
extern _deviceApi:byte
extern _adcAutoModeBufP:byte
extern _adc24SourceData:byte
extern _Eeprom_ReadBuff_2:byte
extern _Eeprom_ReadBuff:near
extern _Adc24_Cfg_2:byte
extern _Adc24_Cfg:near
extern _Oscillators_Cfg_2:byte
extern _Oscillators_Cfg:near
extern _Adc24_Enable_2:byte
extern _Adc24_Enable:near
extern _builtin_holtek_mulsi3_2:byte
extern _builtin_holtek_mulsi3:near
extern _builtin_holtek_divmodsi4:near
extern _builtin_holtek_udivmodsi4_2:byte
extern _builtin_holtek_udivmodsi4:near
extern _DRDY_Ready:near
extern _ThirdElAfeCfg_2:byte
extern _ThirdElAfeCfg:near
extern _Eeprom_WriteBuf_2:byte
extern _Eeprom_WriteBuf:near

; 
; Generated by holtek-gcc v3.19, Mon Jul 14 16:56:27 2025
; Rebuild 718
; end of file
