; 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
#pragma debug scope 2 1
#line 42 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
___GetCheckLRC_constprop_0 .section 'code'
___GetCheckLRC_constprop_0 proc
    local ___GetCheckLRC_constprop_0_2 db 3 dup(?)	; 3,0
#pragma debug pointer 42 8 2
#pragma debug variable 42 2 ___GetCheckLRC_constprop_0_2+0 "buf"
#pragma debug variable 8 2 ___GetCheckLRC_constprop_0_2+2 "endN"
#line 47 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr rd
#line 46 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr ra
_L3:
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	add a,___GetCheckLRC_constprop_0_2[0]
	mov rb,a
	mov a,0
	adc a,___GetCheckLRC_constprop_0_2[1]
	mov rc,a
	mov a,___GetCheckLRC_constprop_0_2[0]
	mov mp,a
	mov a,___GetCheckLRC_constprop_0_2[1]
	mov sbp,a
	call _Crom2Prom
	mov re,a
	mov a,re
	addm a,ra
#line 47 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	inc rd
	mov a,___GetCheckLRC_constprop_0_2[2]
	sub a,rd
	snz c
	jmp _L2
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,rc
	mov ___GetCheckLRC_constprop_0_2[1],a
	jmp _L3
_L2:
#line 51 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,0
	subm a,ra
#line 53 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,ra
	ret
___GetCheckLRC_constprop_0 endp
#line 53 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _TxAfeSetParameter
#pragma debug scope 3 1
#line 56 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_TxAfeSetParameter .section 'code'
_TxAfeSetParameter proc
#line 58 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,170
	mov _txBuf[0],a
#line 59 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _txBuf[1],a
#line 60 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,176
	mov _txBuf[2],a
#line 61 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_read_write[0]
	mov _txBuf[3],a
#line 62 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_read_write_result[0]
	mov _txBuf[4],a
#line 63 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_parameter_address[0]
	mov _txBuf[5],a
#line 64 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_parameter_value[0]
	mov _txBuf[6],a
#line 65 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_parameter_value[1]
	mov _txBuf[7],a
#line 66 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[8]
#line 67 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[9]
#line 68 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[10]
#line 69 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[11]
#line 70 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	add a,254
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov ra,a
	mov a,ra
	mov _txBuf[12],a
#line 74 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	mov _Uart_TxByte_Interrupt_2[2],a
	mov a,low offset _txBuf
	mov _Uart_TxByte_Interrupt_2[0],a
	mov a,high offset _txBuf
	mov _Uart_TxByte_Interrupt_2[1],a
	call _Uart_TxByte_Interrupt
	ret
_TxAfeSetParameter endp
#line 74 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _TxCalVoltage
#pragma debug scope 4 1
#line 83 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_TxCalVoltage .section 'code'
_TxCalVoltage proc
#line 84 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,170
	mov _txBuf[0],a
#line 85 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _txBuf[1],a
#line 86 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,193
	mov _txBuf[2],a
#line 88 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,26
	add a,_cgmApiP[0]
	mov rd,a
	mov a,0
	adc a,_cgmApiP[1]
	mov re,a
	clr rb
	clr rc
_L8:
#line 91 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	add a,rd
	mov mp,a
	mov a,rc
	adc a,re
	mov sbp,a
	call _Crom2Prom
	mov ra,a
	mov a,low (offset _txBuf+3)
	add a,rb
	mov mp,a
	mov a,high (offset _txBuf+3)
	adc a,rc
	mov sbp,a
	mov a,ra
	mov ir,a
	inc rb
	sz z
	inc rc
#line 89 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	xor a,9
	or a,rc
	snz z
	jmp _L8
#line 94 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	add a,254
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov ra,a
	mov a,ra
	mov _txBuf[12],a
#line 96 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	mov _Uart_TxByte_Interrupt_2[2],a
	mov a,low offset _txBuf
	mov _Uart_TxByte_Interrupt_2[0],a
	mov a,high offset _txBuf
	mov _Uart_TxByte_Interrupt_2[1],a
	call _Uart_TxByte_Interrupt
	ret
_TxCalVoltage endp
#line 96 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _TxCalCurrent
#pragma debug scope 5 1
#line 105 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_TxCalCurrent .section 'code'
_TxCalCurrent proc
#line 106 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,170
	mov _txBuf[0],a
#line 107 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _txBuf[1],a
#line 108 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,194
	mov _txBuf[2],a
#line 109 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,19
	add a,rb
	mov rd,a
	mov a,0
	adc a,rc
	mov re,a
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[3],a
#line 110 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	call _Crom2PromNext
	mov rf,a
	call _Crom2PromNext
	mov rg,a
	mov a,re
	mov _txBuf[4],a
#line 111 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,15
	add a,rb
	mov rd,a
	mov a,0
	adc a,rc
	mov re,a
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[5],a
#line 112 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,re
	mov _txBuf[6],a
#line 113 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,23
	add a,rb
	mov rd,a
	mov a,0
	adc a,rc
	mov re,a
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[7],a
#line 114 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,re
	mov _txBuf[8],a
#line 115 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,17
	addm a,rb
	mov a,0
	adcm a,rc
	mov a,rb
	mov mp,a
	mov a,rc
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[9],a
#line 116 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rc
	mov _txBuf[10],a
#line 117 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[11]
#line 118 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	add a,254
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov ra,a
	mov a,ra
	mov _txBuf[12],a
#line 120 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	mov _Uart_TxByte_Interrupt_2[2],a
	mov a,low offset _txBuf
	mov _Uart_TxByte_Interrupt_2[0],a
	mov a,high offset _txBuf
	mov _Uart_TxByte_Interrupt_2[1],a
	call _Uart_TxByte_Interrupt
	ret
_TxCalCurrent endp
#line 120 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _TxRestartNum
#pragma debug scope 6 1
#line 129 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_TxRestartNum .section 'code'
_TxRestartNum proc
#line 130 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,170
	mov _txBuf[0],a
#line 131 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _txBuf[1],a
#line 132 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,240
	mov _txBuf[2],a
#line 133 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,58
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[3],a
#line 134 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,54
	addm a,rb
	mov a,0
	adcm a,rc
	mov a,rb
	mov mp,a
	mov a,rc
	mov sbp,a
	call _Crom2Prom
	mov _txBuf[4],a
#line 135 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	call _Crom2PromNext
	mov rf,a
	call _Crom2PromNext
	mov rg,a
	mov a,re
	mov _txBuf[5],a
#line 136 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	mov mp,a
	mov 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,rf
	mov _txBuf[6],a
#line 137 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	mov mp,a
	mov 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,rg
	mov _txBuf[7],a
#line 138 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[8]
#line 139 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[9]
#line 140 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[10]
#line 141 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _txBuf[11]
#line 142 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	add a,254
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov ra,a
	mov a,ra
	mov _txBuf[12],a
#line 144 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	mov _Uart_TxByte_Interrupt_2[2],a
	mov a,low offset _txBuf
	mov _Uart_TxByte_Interrupt_2[0],a
	mov a,high offset _txBuf
	mov _Uart_TxByte_Interrupt_2[1],a
	call _Uart_TxByte_Interrupt
	ret
_TxRestartNum endp
#line 144 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _TxAfeMeasureData
#pragma debug scope 7 1
#line 153 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_TxAfeMeasureData .section 'code'
_TxAfeMeasureData proc
    local _TxAfeMeasureData_2 db 1 dup(?)	; 0,1
#line 154 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,170
	mov _txBuf[0],a
#line 155 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _txBuf[1],a
#line 156 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,209
	mov _txBuf[2],a
#line 157 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TxAfeMeasureData_2[0],a
	snz _TxAfeMeasureData_2[0].0
	jmp _L12
#line 159 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[2].0
#line 160 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	clr ra.0
	mov a,ra
	mov ir,a
_L12:
#line 162 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TxAfeMeasureData_2[0],a
	snz _TxAfeMeasureData_2[0].1
	jmp _L13
#line 164 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[2].1
#line 165 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	clr ra.1
	mov a,ra
	mov ir,a
_L13:
#line 167 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TxAfeMeasureData_2[0],a
	snz _TxAfeMeasureData_2[0].2
	jmp _L14
#line 169 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[2].2
#line 170 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	clr ra.2
	mov a,ra
	mov ir,a
_L14:
#line 172 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _TxAfeMeasureData_2[0],a
	snz _TxAfeMeasureData_2[0].3
	jmp _L15
#line 174 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[2].3
#line 175 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	clr ra.3
	mov a,ra
	mov ir,a
_L15:
#line 177 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_deviceApi[2]
	mov _txBuf[3],a
#line 180 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,11
	add a,rb
	mov rd,a
	mov a,0
	adc a,rc
	mov re,a
	clr rb
	clr rc
_L17:
#line 183 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	add a,rd
	mov mp,a
	mov a,rc
	adc a,re
	mov sbp,a
	call _Crom2Prom
	mov ra,a
	mov a,low (offset _txBuf+4)
	add a,rb
	mov mp,a
	mov a,high (offset _txBuf+4)
	adc a,rc
	mov sbp,a
	mov a,ra
	mov ir,a
	inc rb
	sz z
	inc rc
#line 181 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	xor a,8
	or a,rc
	snz z
	jmp _L17
#line 186 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	add a,254
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _txBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov ra,a
	mov a,ra
	mov _txBuf[12],a
#line 188 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_txBuf[1]
	mov _Uart_TxByte_Interrupt_2[2],a
	mov a,low offset _txBuf
	mov _Uart_TxByte_Interrupt_2[0],a
	mov a,high offset _txBuf
	mov _Uart_TxByte_Interrupt_2[1],a
	call _Uart_TxByte_Interrupt
	ret
_TxAfeMeasureData endp
#line 188 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _ProtocolUnPack
#pragma debug scope 8 1
#line 233 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_ProtocolUnPack .section 'code'
_ProtocolUnPack proc
    local _ProtocolUnPack_2 db 2 dup(?)	; 0,2
	mov _ProtocolUnPack_2[0],a
#pragma debug variable 8 8 _ProtocolUnPack_2+0 "data"
#line 234 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartRevState[0]
	sub a,0
	sz z
	jmp _L32
	sub a,(1)-(0)
	sz z
	jmp _L33
#line 234 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartRevState[0]
	sub a,2
	sz z
	jmp _L34
	mov a,_uartRevState[0]
	sub a,3
	snz z
	jmp _L41
	jmp _L42
_L32:
#line 237 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_ProtocolUnPack_2[0]
	sub a,85
	snz z
	jmp _L41
#line 240 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _uartDataLen[0]
#line 242 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _uartCmd[0]
#line 243 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	mov _uartRxCount[0],a
	mov a,85
	mov _rxBuf[0],a
#line 244 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	mov _uartRevState[0],a
	jmp _L41
_L33:
#line 248 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_ProtocolUnPack_2[0]
	sub a,13
	snz z
	jmp _L37
#line 250 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartRxCount[0]
	mov ra,a
	inca ra
	mov _uartRxCount[0],a
	mov a,low offset _rxBuf
	add a,ra
	mov mp,a
	mov a,high offset _rxBuf
	clr sbp
	adcm a,sbp
	mov a,13
	mov ir,a
#line 251 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,13
	mov _uartDataLen[0],a
#line 252 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _uartRevState[0],a
	jmp _L41
_L37:
#line 256 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _uartRevState[0]
	jmp _L41
_L34:
#line 260 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartRxCount[0]
	mov ra,a
	inca ra
	mov _uartRxCount[0],a
	mov a,low offset _rxBuf
	add a,ra
	mov mp,a
	mov a,high offset _rxBuf
	clr sbp
	adcm a,sbp
	mov a,_ProtocolUnPack_2[0]
	mov ir,a
#line 261 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_ProtocolUnPack_2[0]
	mov _uartCmd[0],a
#line 262 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _uartRevState[0],a
	jmp _L41
_L42:
#line 265 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartRxCount[0]
	mov ra,a
	inca ra
	mov _ProtocolUnPack_2[1],a
	mov a,_ProtocolUnPack_2[1]
	mov _uartRxCount[0],a
	mov a,low offset _rxBuf
	add a,ra
	mov mp,a
	mov a,high offset _rxBuf
	clr sbp
	adcm a,sbp
	mov a,_ProtocolUnPack_2[0]
	mov ir,a
#line 266 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_ProtocolUnPack_2[1]
	sub a,_uartDataLen[0]
	snz z
	jmp _L41
#pragma debug scope 9 8
;begin block, line: 266.-1
#line 268 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _uartRevState[0]
#line 270 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	deca ra
	mov ___GetCheckLRC_constprop_0_2[2],a
	mov a,low offset _rxBuf
	mov ___GetCheckLRC_constprop_0_2[0],a
	mov a,high offset _rxBuf
	mov ___GetCheckLRC_constprop_0_2[1],a
	call ___GetCheckLRC_constprop_0
	mov rc,a
#line 271 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,low (offset _rxBuf-1)
	add a,_ProtocolUnPack_2[1]
	mov mp,a
	mov a,high (offset _rxBuf-1)
	clr sbp
	adcm a,sbp
	call _Crom2Prom
	mov rb,a
	mov a,1
	mov ra,a
	mov a,rc
	sub a,rb
	sz z
	jmp _L31
_L41:
#pragma debug scope 8 1
#line 280 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr ra
_L31:
#line 281 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,ra
	ret
_ProtocolUnPack endp
#line 281 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
___pa equ [20]
public _DRDY_Ready
#pragma debug scope 10 1
#line 599 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_DRDY_Ready .section 'code'
_DRDY_Ready proc
#line 609 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov ra,a
	snz ra
	jmp _L43
#line 620 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr [20].4
_L43:
	ret
_DRDY_Ready endp
#line 620 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _Protocol_ReceiveLoop
#pragma debug scope 11 1
#line 284 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_Protocol_ReceiveLoop .section 'code'
_Protocol_ReceiveLoop proc
    local _Protocol_ReceiveLoop_2 db 6 dup(?)	; 0,6
	mov ra,a
	mov _Protocol_ReceiveLoop_2[4],a
#pragma debug variable 8 11 _Protocol_ReceiveLoop_2+4 "data"
#line 285 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,ra
	call _ProtocolUnPack
	mov ra,a
	snz ra
	jmp _L46
#line 287 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_uartCmd[0]
	sub a,176
	sz z
	jmp _L49
	sub a,(193)-(176)
	sz z
	jmp _L50
	mov a,_uartCmd[0]
	sub a,194
	sz z
	jmp _L51
	sub a,(209)-(194)
	sz z
	jmp _L52
	mov a,_uartCmd[0]
	sub a,240
	snz z
	jmp _L46
	jmp _L101
_L49:
#line 291 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_rxBuf[3]
	mov _read_write[0],a
#line 292 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_rxBuf[4]
	mov _Protocol_ReceiveLoop_2[5],a
	mov a,_Protocol_ReceiveLoop_2[5]
	mov _parameter_address[0],a
#line 293 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_rxBuf[6]
	mov rc,a
	clr rb
	mov a,_rxBuf[5]
	orm a,rb
	mov a,rb
	mov _parameter_value[0],a
	mov a,rc
	mov _parameter_value[1],a
#line 294 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _read_write_result[0]
#line 295 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _Protocol_ReceiveLoop_2[5]
	jmp _L54
#line 297 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L92
#line 299 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _parameter_value[0],a
	clr _parameter_value[1]
	jmp _L56
_L54:
	mov a,_cgmApiP[0]
	mov rd,a
	mov a,_cgmApiP[1]
	mov re,a
#line 306 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sdza _Protocol_ReceiveLoop_2[5]
	jmp _L57
#line 308 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L58
#line 310 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,49
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	jmp _L90
_L58:
#line 314 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,240
	add a,rb
	mov rf,a
	mov a,255
	adc a,rc
	mov rg,a
	mov a,9
	sub a,rf
	mov a,0
	sbc a,rg
	snz c
	jmp _L59
#line 316 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,48
	add a,rd
	mov rf,a
	mov a,0
	adc a,re
	mov rg,a
	mov a,rf
	mov mp,a
	mov a,rg
	mov sbp,a
	mov a,85
	mov ir,a
#line 317 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,49
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	mov a,rb
	mov ir,a
#line 318 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,rf
	mov _Eeprom_WriteBuf_2[2],a
	mov a,rg
	mov _Eeprom_WriteBuf_2[3],a
	mov a,23
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 319 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,48
	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,23
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 320 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,49
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	jmp _L100
_L62:
#line 340 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,5
	sub a,rb
	mov a,0
	sbc a,rc
	sz c
	jmp _L63
	mov a,243
	add a,rb
	mov rf,a
	mov a,255
	adc a,rc
	mov rg,a
	mov a,2
	sub a,rf
	mov a,0
	sbc a,rg
	sz c
	jmp _L63
	mov a,rb
	xor a,128
	or a,rc
	sz z
	jmp _L63
_L59:
#line 327 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _read_write_result[0],a
	jmp _L56
_L57:
#line 331 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_ReceiveLoop_2[5]
	sub a,2
	snz z
	jmp _L61
#line 333 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L62
#line 335 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,50
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
_L90:
	call _Crom2Prom
	mov ra,a
	mov a,ra
	mov _parameter_value[0],a
	clr _parameter_value[1]
	jmp _L56
_L63:
#line 342 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,48
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	mov a,85
	mov ir,a
#line 343 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,50
	addm a,rd
	mov a,0
	adcm a,re
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,rb
	mov ir,a
#line 344 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,rd
	mov _Eeprom_WriteBuf_2[2],a
	mov a,re
	mov _Eeprom_WriteBuf_2[3],a
	mov a,23
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 345 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,50
	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,23
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 346 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,50
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
_L100:
	call _Crom2Prom
	mov rd,a
	clr re
	mov a,rd
	sub a,_parameter_value[0]
	mov a,re
	sbc a,_parameter_value[1]
	snz cz
	jmp _L92
	mov a,48
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov ra,a
	mov a,ra
	sub a,85
	snz z
	jmp _L92
	jmp _L56
_L61:
#line 357 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_ReceiveLoop_2[5]
	sub a,3
	snz z
	jmp _L66
#line 359 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L67
#line 361 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,26
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	jmp _L90
_L67:
#line 365 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,255
	add a,rb
	mov rf,a
	mov a,255
	adc a,rc
	mov rg,a
	mov a,254
	sub a,rf
	mov a,0
	sbc a,rg
	snz c
	jmp _L68
#line 367 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,26
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	mov a,rb
	mov ir,a
#line 368 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	mov a,ra
	call _ConfigureViref
#line 369 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,26
	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,1
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 370 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,26
	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,1
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 371 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,26
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	clr rc
	jmp _L98
_L68:
#line 376 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rb
	or a,rc
	snz z
	jmp _L59
#line 378 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,26
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	mov a,0
	mov ir,a
#line 379 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	mov a,ra
	call _ConfigureViref
	jmp _L56
_L66:
#line 387 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_ReceiveLoop_2[5]
	sub a,4
	snz z
	jmp _L69
#line 389 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L70
#line 391 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,29
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	jmp _L91
_L70:
#line 396 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,255
	sub a,rb
	mov a,15
	sbc a,rc
	snz c
	jmp _L59
#line 398 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,29
	addm a,rd
	mov a,0
	adcm a,re
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,rb
	mov ir,a
	inc mp
	mov a,rc
	mov ir,a
#line 399 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rb
	mov _ConfigureDAC1_2[0],a
	mov a,rc
	mov _ConfigureDAC1_2[1],a
	call _ConfigureDAC1
#line 400 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,29
	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,4
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 401 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,29
	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,4
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 402 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,29
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	jmp _L96
_L69:
#line 413 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_ReceiveLoop_2[5]
	sub a,5
	snz z
	jmp _L71
#line 415 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L72
#line 417 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,31
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
_L91:
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rb
	mov _parameter_value[0],a
	mov a,rc
	mov _parameter_value[1],a
	jmp _L56
_L72:
#line 421 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,255
	sub a,rb
	mov a,15
	sbc a,rc
	snz c
	jmp _L59
#line 423 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,31
	addm a,rd
	mov a,0
	adcm a,re
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,rb
	mov ir,a
	inc mp
	mov a,rc
	mov ir,a
#line 424 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rb
	mov _ConfigureDAC2_2[0],a
	mov a,rc
	mov _ConfigureDAC2_2[1],a
	call _ConfigureDAC2
#line 425 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,31
	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,6
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 426 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,31
	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,6
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 427 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,31
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	jmp _L96
_L71:
#line 438 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_ReceiveLoop_2[5]
	sub a,6
	snz z
	jmp _L73
#line 440 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _read_write[0]
	jmp _L74
#line 442 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,33
	add a,rd
	mov mp,a
	mov a,0
	adc a,re
	mov sbp,a
	jmp _L91
_L74:
#line 446 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,255
	sub a,rb
	mov a,15
	sbc a,rc
	snz c
	jmp _L59
#line 448 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,33
	addm a,rd
	mov a,0
	adcm a,re
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,rb
	mov ir,a
	inc mp
	mov a,rc
	mov ir,a
#line 449 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
	mov a,rb
	mov _ConfigureDAC3_2[0],a
	mov a,rc
	mov _ConfigureDAC3_2[1],a
	call _ConfigureDAC3
#line 450 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,33
	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,8
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 451 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,2
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,33
	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,8
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 452 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,33
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
_L96:
	call _Crom2Prom
	mov rb,a
	call _Crom2PromNext
	mov rc,a
_L98:
	mov a,rb
	sub a,_parameter_value[0]
	mov a,rc
	sbc a,_parameter_value[1]
	sz cz
	jmp _L56
_L92:
#line 454 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	mov _read_write_result[0],a
	jmp _L56
_L73:
#line 465 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,1
	mov _read_write_result[0],a
_L56:
#line 467 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[1].0
#line 468 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	mov a,1
	mov ir,a
#line 469 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _DRDY_Ready
#line 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000>263690
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	ERRMESSAGE 'the value 3000of the argument exceeds the maxinum 263690'
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000<0
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	ERRMESSAGE 'the value 3000 of the argument exceeds the mininum 0'
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==0
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	JMP $
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==1
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==2
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==3
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000<8) AND (3000>3)
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAY3 + 7 -3000
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000< 0404h) AND (3000>7)
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,3000/4-1
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYX3 + 3 -(3000 MOD 4)
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000< 0x40B) AND (3000> 0403h)
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,0 
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYX6 + 0x40a -3000
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)>256)
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,(3000-9)/0402h
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV _builtin_holtek_delay_2,A
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,0
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYY5 +5- (((3000-9)%0402h)%6)
	ENDIF
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)<=256)
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,(3000-9)/0402h
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV _builtin_holtek_delay_2,A
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,((3000-9)%0402h)/4+1
;# 470 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYY3 +3-(((3000-9)%0402h)%4)
	ENDIF
#line 472 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	jmp _L46
_L50:
#line 474 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,5
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,4
	mov ir,a
#line 475 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,6
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,0
	mov ir,a
#line 476 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,7
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,0
	mov ir,a
#line 478 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,9
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,low (offset _rxBuf+3)
	mov _Eeprom_WriteBuf_2[2],a
	mov a,high (offset _rxBuf+3)
	mov _Eeprom_WriteBuf_2[3],a
	mov a,1
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 479 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,9
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,26
	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,1
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 480 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[0].1
#line 481 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	jmp _L46
_L51:
#line 483 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,5
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,4
	mov ir,a
#line 484 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,6
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,1
	mov ir,a
#line 485 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,7
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,0
	mov ir,a
#line 487 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,low (offset _rxBuf+3)
	mov _Eeprom_WriteBuf_2[2],a
	mov a,high (offset _rxBuf+3)
	mov _Eeprom_WriteBuf_2[3],a
	mov a,10
	mov _Eeprom_WriteBuf_2[0],a
	clr _Eeprom_WriteBuf_2[1]
	call _Eeprom_WriteBuf
#line 488 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	mov _Eeprom_ReadBuff_2[4],a
	clr _Eeprom_ReadBuff_2[5]
	mov a,35
	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,10
	mov _Eeprom_ReadBuff_2[0],a
	clr _Eeprom_ReadBuff_2[1]
	call _Eeprom_ReadBuff
#line 489 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,8
	add a,rb
	mov rd,a
	mov a,0
	adc a,rc
	mov re,a
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,0
	mov ir,a
#line 490 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,35
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rf,a
	call _Crom2PromNext
	mov rg,a
	mov a,rf
	or a,rg
	sz z
	jmp _L75
#line 492 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,rd
	mov mp,a
	mov a,re
	mov sbp,a
	mov a,4
	mov ir,a
_L75:
#line 494 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,39
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov rd,a
	call _Crom2PromNext
	mov re,a
	mov a,rd
	or a,re
	sz z
	jmp _L76
#line 496 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov _Protocol_ReceiveLoop_2[5],a
	mov a,_Protocol_ReceiveLoop_2[5]
	add a,8
	mov ra,a
	mov a,ra
	mov ir,a
_L76:
#line 498 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[0].2
#line 499 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	jmp _L46
_L52:
#line 501 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_cgmApiP[0]
	mov rb,a
	mov a,_cgmApiP[1]
	mov rc,a
	mov a,5
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,2
	mov ir,a
#line 502 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,6
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,1
	mov ir,a
#line 503 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_rxBuf[3]
	and a,15
	mov ra,a
	mov a,8
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,ra
	mov ir,a
#line 504 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_rxBuf[5]
	mov re,a
	clr rd
	mov a,_rxBuf[4]
	addm a,rd
	sz c
	inc re
	mov a,9
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	mov a,rd
	mov ir,a
	inc mp
	mov a,re
	mov ir,a
#line 505 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[0].3
#line 506 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	jmp _L46
_L101:
#line 515 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	set _deviceApi[0].7
#line 516 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,58
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	mov a,_rxBuf[3]
	mov ir,a
#line 517 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _Crom2Prom
	mov ra,a
	snz ra.0
	jmp _L46
#pragma debug scope 12 11
;begin block, line: 517.-1
#pragma debug variable 14 12 _Protocol_ReceiveLoop_2+0 "restartNum"
#line 519 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _Protocol_ReceiveLoop_2[0]
	clr _Protocol_ReceiveLoop_2[1]
	clr _Protocol_ReceiveLoop_2[2]
	clr _Protocol_ReceiveLoop_2[3]
#line 520 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,4
	mov _Eeprom_WriteBuf_2[4],a
	clr _Eeprom_WriteBuf_2[5]
	mov a,low offset _Protocol_ReceiveLoop_2
	mov _Eeprom_WriteBuf_2[2],a
	mov a,high offset _Protocol_ReceiveLoop_2
	mov _Eeprom_WriteBuf_2[3],a
	mov a,-4
	mov _Eeprom_WriteBuf_2[0],a
	mov a,1
	mov _Eeprom_WriteBuf_2[1],a
	call _Eeprom_WriteBuf
#line 521 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,54
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	mov a,_Protocol_ReceiveLoop_2[0]
	mov ir,a
	inc mp
	mov a,_Protocol_ReceiveLoop_2[1]
	mov ir,a
	inc mp
	mov a,_Protocol_ReceiveLoop_2[2]
	mov ir,a
	inc mp
	mov a,_Protocol_ReceiveLoop_2[3]
	mov ir,a
_L46:
#pragma debug scope 11 1
	ret
_Protocol_ReceiveLoop endp
#line 521 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _Protocol_RxLoop
#pragma debug scope 13 1
#line 585 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_Protocol_RxLoop .section 'code'
_Protocol_RxLoop proc
    local _Protocol_RxLoop_2 db 1 dup(?)	; 0,1
#pragma debug variable 8 13 _Protocol_RxLoop_2+0 "data"
#line 589 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	jmp _L103
_L104:
#line 593 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_Protocol_RxLoop_2[0]
	call _Protocol_ReceiveLoop
_L103:
#line 589 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,low offset _Protocol_RxLoop_2
	mov _Uart_IsAvailable_ReadByte_2[0],a
	mov a,high offset _Protocol_RxLoop_2
	mov _Uart_IsAvailable_ReadByte_2[1],a
	call _Uart_IsAvailable_ReadByte
	mov ra,a
	sz ra
	jmp _L104
	ret
_Protocol_RxLoop endp
#line 589 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
public _Protocol_TxLoop
#pragma debug scope 14 1
#line 531 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
_Protocol_TxLoop .section 'code'
_Protocol_TxLoop proc
    local _Protocol_TxLoop_2 db 2 dup(?)	; 0,2
#line 536 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _isWaitingBleRespond[0]
	jmp _L105
#line 536 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	sz _uartStatus[3].0
	jmp _L105
#line 538 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	snz _deviceApi[1].0
	jmp _L107
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov _Protocol_TxLoop_2[0],a
	snz _Protocol_TxLoop_2[0]
	jmp _L107
#line 540 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _deviceApi[1].0
#line 541 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,0
	mov ir,a
#line 542 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _TxAfeSetParameter
	jmp _L138
_L107:
#line 545 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,_deviceApi[0]
	mov _Protocol_TxLoop_2[0],a
	snz _Protocol_TxLoop_2[0].3
	jmp _L108
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov _Protocol_TxLoop_2[1],a
	snz _Protocol_TxLoop_2[1]
	jmp _L108
#line 547 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _deviceApi[0].3
#line 548 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,0
	mov ir,a
#line 549 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _TxAfeMeasureData
	jmp _L138
_L108:
#line 552 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	snz _Protocol_TxLoop_2[0].1
	jmp _L109
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov ra,a
	snz ra
	jmp _L109
#line 554 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _deviceApi[0].1
#line 555 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _TxCalVoltage
	jmp _L138
_L109:
#line 558 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	snz _Protocol_TxLoop_2[0].2
	jmp _L110
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	call _Crom2Prom
	mov _Protocol_TxLoop_2[1],a
	snz _Protocol_TxLoop_2[1]
	jmp _L110
#line 560 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _deviceApi[0].2
#line 561 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,0
	mov ir,a
#line 562 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _TxCalCurrent
	jmp _L138
_L110:
#line 571 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	snz _Protocol_TxLoop_2[0].7
	jmp _L105
#line 573 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	clr _deviceApi[0].7
#line 574 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,3
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	mov a,1
	mov ir,a
#line 575 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _DRDY_Ready
#line 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000>263690
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	ERRMESSAGE 'the value 3000of the argument exceeds the maxinum 263690'
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000<0
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	ERRMESSAGE 'the value 3000 of the argument exceeds the mininum 0'
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==0
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	JMP $
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==1
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==2
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF 3000==3
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	NOP
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000<8) AND (3000>3)
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAY3 + 7 -3000
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000< 0404h) AND (3000>7)
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,3000/4-1
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYX3 + 3 -(3000 MOD 4)
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000< 0x40B) AND (3000> 0403h)
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,0 
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYX6 + 0x40a -3000
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)>256)
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,(3000-9)/0402h
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV _builtin_holtek_delay_2,A
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,0
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYY5 +5- (((3000-9)%0402h)%6)
	ENDIF
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	IF (3000 >= 0x40b) AND ((((3000-9)%0402h)/4+1)<=256)
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,(3000-9)/0402h
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV _builtin_holtek_delay_2,A
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	MOV A,((3000-9)%0402h)/4+1
;# 576 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c" 1
	CALL __DELAYY3 +3-(((3000-9)%0402h)%4)
	ENDIF
#line 577 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	call _TxRestartNum
_L138:
#line 578 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
	mov a,4
	add a,_cgmApiP[0]
	mov mp,a
	mov a,0
	adc a,_cgmApiP[1]
	mov sbp,a
	mov a,1
	mov ir,a
_L105:
	ret
_Protocol_TxLoop endp
#line 578 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
#pragma debug scope 1 1
@HCCINIT0_uartRxCount .section 'data'
_uartRxCount	db 0
#pragma debug variable 8 1 _uartRxCount "uartRxCount"

@HCCINIT .section 'data'
@HCCINIT0_uartCmd .section 'data'
_uartCmd	db 0
#pragma debug variable 8 1 _uartCmd "uartCmd"

@HCCINIT .section 'data'
@HCCINIT0_uartDataLen .section 'data'
_uartDataLen	db 0
#pragma debug variable 8 1 _uartDataLen "uartDataLen"

@HCCINIT .section 'data'
@HCCINIT0_uartRevState .section 'data'
_uartRevState	db 0
#pragma debug variable 8 1 _uartRevState "uartRevState"

@HCCINIT .section 'data'
#line 40 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
public _deviceApi
@HCCINIT0_deviceApi .section 'data'
_deviceApi	db 3 dup(0)
#pragma debug struct_begin 43 ""
#pragma debug field 21 8 0 1 "isBleSet" ;0,1
#pragma debug field 21 8 0 1 "isCalVoltage" ;1,1
#pragma debug field 21 8 0 1 "isCalCurrent" ;2,1
#pragma debug field 21 8 0 1 "isAfeMeasureData" ;3,1
#pragma debug field 21 8 0 1 "isReadWriteData" ;4,1
#pragma debug field 21 8 0 1 "isEnterHalt" ;5,1
#pragma debug field 21 8 0 1 "isMeasureDataUpdate" ;6,1
#pragma debug field 21 8 0 1 "isGetRestartNum" ;7,1
#pragma debug field 21 8 1 1 "isSetParameter" ;8,1
#pragma debug struct_end
#pragma debug union_begin 44 ""
#pragma debug field 2 43 "b"
#pragma debug field 0 12 "byte"
#pragma debug union_end
#pragma debug struct_begin 45 ""
#pragma debug field 21 8 0 1 "isStartBatVol" ;0,1
#pragma debug field 21 8 0 1 "isStartTemperatureRes" ;1,1
#pragma debug field 21 8 0 1 "isStartWe1Current" ;2,1
#pragma debug field 21 8 0 1 "isStartWe2Current" ;3,1
#pragma debug struct_end
#pragma debug union_begin 46 ""
#pragma debug field 2 45 "b"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug struct_begin 47 ""
#pragma debug field 3 44 "flag1"
#pragma debug field 3 46 "flagAfe"
#pragma debug struct_end
#pragma debug variable 47 1 _deviceApi "deviceApi"

@HCCINIT .section 'data'
@HCCINIT0_read_write_result .section 'data'
_read_write_result	db 0
#pragma debug variable 8 1 _read_write_result "read_write_result"

@HCCINIT .section 'data'
@HCCINIT0_parameter_value .section 'data'
_parameter_value	db 2 dup(0)
#pragma debug variable 12 1 _parameter_value "parameter_value"

@HCCINIT .section 'data'
@HCCINIT0_parameter_address .section 'data'
_parameter_address	db 0
#pragma debug variable 8 1 _parameter_address "parameter_address"

@HCCINIT .section 'data'
@HCCINIT0_read_write .section 'data'
_read_write	db 0
#pragma debug variable 8 1 _read_write "read_write"

@HCCINIT .section 'data'
#line 33 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
public _txBuf
@HCCINIT0_txBuf .section 'data'
_txBuf	db 32 dup(0)
#pragma debug array 48 8 32 1
#pragma debug variable 48 1 _txBuf "txBuf"

@HCCINIT .section 'data'
#line 32 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
public _rxBuf
@HCCINIT0_rxBuf .section 'data'
_rxBuf	db 32 dup(0)
#pragma debug variable 48 1 _rxBuf "rxBuf"

@HCCINIT .section 'data'
#line 30 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
public _isWaitingBleRespond
@HCCINIT0_isWaitingBleRespond .section 'data'
_isWaitingBleRespond	db 0
#pragma debug variable 8 1 _isWaitingBleRespond "isWaitingBleRespond"

@HCCINIT .section 'data'
#line 28 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\application_projects\source\User_Protocol.c"
public _isDeepSleep
@HCCINIT0_isDeepSleep .section 'data'
_isDeepSleep	db 0
#pragma debug variable 8 1 _isDeepSleep "isDeepSleep"

@HCCINIT .section 'data'
#pragma debug struct_begin 49 "__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 50 ""
#pragma debug field 2 49 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 50 1 ___pa "__pa" 1

; output external variables
extern _uartStatus:byte
extern _cgmApiP:byte
extern _Uart_TxByte_Interrupt_2:byte
extern _Uart_TxByte_Interrupt:near
extern _Eeprom_WriteBuf_2:byte
extern _Eeprom_WriteBuf:near
extern _Eeprom_ReadBuff_2:byte
extern _Eeprom_ReadBuff:near
extern _ConfigureViref:near
extern _ConfigureDAC1_2:byte
extern _ConfigureDAC1:near
extern _ConfigureDAC2_2:byte
extern _ConfigureDAC2:near
extern _ConfigureDAC3_2:byte
extern _ConfigureDAC3:near
extern _Uart_IsAvailable_ReadByte_2:byte
extern _Uart_IsAvailable_ReadByte:near

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