; Asm codes generated by Shanghai Haier C Compiler
; HRCO, Ver: 1.0,0137

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_#T0
	EXTERN         	MUL_TEMP
	EXTERN         	MUL_TEMP
	PUBLIC         	_adc_value
	PUBLIC         	_offset_value
	PUBLIC         	_str
	PUBLIC         	_RAMclear
	PUBLIC         	_GPIOInit
	PUBLIC         	_UART_send
	PUBLIC         	_UART_sendDATA
	PUBLIC         	_ADC_convert
	PUBLIC         	_GetOffset2048
	PUBLIC         	_GetOffsetVDD
	PUBLIC         	_main
_#S20275C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c	CSEG           
	ADD            	PCRL,	1
_#S20275
	RETIA          	0XFFFFFFCD
	RETIA          	0XFFFFFFA8
	RETIA          	0XFFFFFFB5
	RETIA          	0XFFFFFFC0
	RETIA          	0X20
	RETIA          	0XFFFFFFB5
	RETIA          	0XFFFFFFC4
	RETIA          	0XFFFFFFD7
	RETIA          	0XFFFFFFAA
	RETIA          	0XFFFFFFBB
	RETIA          	0XFFFFFFBB
	RETIA          	0XFFFFFFD6
	RETIA          	0XFFFFFFB5
	RETIA          	0XFFFFFFCE
	RETIA          	0XFFFFFFAA
	RETIA          	0X3A
	RETIA          	0X20
	RETIA          	0X20
	RETIA          	0X20
	RETIA          	0X20
	RETIA          	0XD
	RETIA          	0XA
	RETIA          	0X0
_UART_send_#T20417_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20439_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20448_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20466_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20477_7	EQU            	_UART_sendDATA + 0X7		; Bank 0
_UART_send_#T20480_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20498_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20509_7	EQU            	_UART_sendDATA + 0X7		; Bank 0
_UART_send_#T20512_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20530_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20539_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20562_8	EQU            	_UART_sendDATA + 0X2		; Bank 0
_ADC_convert_#T20606_10	EQU            	_ADC_convertDATA + 0X0		; Bank 0
_ADC_convert_#T20609_10	EQU            	_ADC_convertDATA + 0X2		; Bank 0
_ADC_convert_#T20612_10	EQU            	_ADC_convertDATA + 0X0		; Bank 0
_ADC_convert_#T20613_10	EQU            	_ADC_convertDATA + 0X4		; Bank 0
_GetOffsetVDD_value_tmp_15	EQU            	_GetOffsetVDDDATA + 0X0		; Bank 0
_GetOffsetVDD_gie_bk_15	EQU            	_GetOffsetVDDDATA + 0X2		; Bank 0
_GetOffsetVDD_#T20702_15	EQU            	_GetOffsetVDDDATA + 0X0		; Bank 0
_GetOffsetVDD_#T20755_15	EQU            	_GetOffsetVDDDATA + 0X0		; Bank 0
_GetOffsetVDD_#T20756_15	EQU            	_GetOffsetVDDDATA + 0X3		; Bank 0
_GetOffsetVDD_#T20759_15	EQU            	_GetOffsetVDDDATA + 0X5		; Bank 0
_main_i_18	EQU            	_mainDATA + 0X0		; Bank 0
_main_cnt_18	EQU            	_mainDATA + 0X0		; Bank 0
_main_#T20855_20	EQU            	_mainDATA + 0X1		; Bank 0
_main_#T20859_20	EQU            	_mainDATA + 0X3		; Bank 0
_main_#T20860_20	EQU            	_mainDATA + 0X5		; Bank 0
#TMP	EQU            	?_TMP+ 0X3		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_ADEN_0#sh	EQU            	0X7D0		; Bank 0
_ADTRG_0#sh	EQU            	0X7D1		; Bank 0
_SMPS_0#sh	EQU            	0X7D2		; Bank 0
_TRMT1_0#sh	EQU            	0X6B9		; Bank 0
_BRGH1_0#sh	EQU            	0X6BD		; Bank 0
_TX1LEN_0#sh	EQU            	0X6BE		; Bank 0
_TX1EN_0#sh	EQU            	0X6BF		; Bank 0
_ADCCM_0#sh	EQU            	0XF7		; Bank 0
_ADCRL_0#sh	EQU            	0XF8		; Bank 0
_ADCRH_0#sh	EQU            	0XF9		; Bank 0
_ADCCL_0#sh	EQU            	0XFA		; Bank 0
_ADCCH_0#sh	EQU            	0XFB		; Bank 0
_TX1B_0#sh	EQU            	0XD6		; Bank 0
_BR1R_0#sh	EQU            	0XD8		; Bank 0
_MULA_0#sh	EQU            	(MULA - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULB_0#sh	EQU            	(MULB - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULL_0#sh	EQU            	(MULL - 0X6080) % 0X40 + 0xC0		; Bank 0
_MULH_0#sh	EQU            	(MULH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEL_0#sh	EQU            	(DIVEL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEM_0#sh	EQU            	(DIVEM - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVSL_0#sh	EQU            	(DIVSL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVSH_0#sh	EQU            	(DIVSH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVQL_0#sh	EQU            	(DIVQL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVQM_0#sh	EQU            	(DIVQM - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVRL_0#sh	EQU            	(DIVRL - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVRH_0#sh	EQU            	(DIVRH - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVC_0#sh	EQU            	(DIVC - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEU_0#sh	EQU            	(DIVEU - 0X6080) % 0X40 + 0xC0		; Bank 0
_DIVEH_0#sh	EQU            	(DIVEH - 0X6080) % 0X40 + 0xC0		; Bank 0
_FRAH_0#sh	EQU            	(FRAH - 0X6080) % 0X40 + 0xC0		; Bank 0
_FRAL_0#sh	EQU            	(FRAL - 0X6080) % 0X40 + 0xC0		; Bank 0
	_DESC          	GPIOInit,0X0,0X0
GPIOInit#	CSEG           
_GPIOInit
; /*********************************************************
; *Copyright (C), 2020, Shanghai Eastsoft Microelectronics Co., Ltd
; *文件名:  adc_offset.c
; *作  者:  AE Team
; *版  本:  v1.0，编译于iDesigner(v4.2.3.187) + 工具链HRCC(v1.2.0.136)
; *日  期:  2020/12/25
; *描  述:  ADC通信演示
;           PA7：模拟输入端口
;           PB5：TX
;           PB6：RX
;           程序将转换完的AD值通过串口发送到上位机，波特率9600bps。宏定义VDDVREF选择VDD作为参考电压正端，
;           否则选择内部2.048V作为参考电压正端。
;           转换值减去offset进行ADC软件补偿，offset为802FH（内部2.048V作参考）和8030H（VDD作参考）低8位数据，
;           IAP读16位数据后需先判断是否满足高低8位取反。
;           注意：由于offset的存在，为防止溢出，转换值小于offset时，ADC结果直接归0；并且ADC最大只能测到(0xFFF-offset)。
; *备  注:  本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
; **********************************************************/
; #include <hic.h>
; #define VDDVREF        //宏定义选择VDD作为参考电压，注释本句则选择内部2.048V作为参考电压正端
; #define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
; typedef unsigned char uchar;
; typedef unsigned int uint;
; uint adc_value;
; uint offset_value = 0;  //保存ADC校准值
; uchar str[] = "通道 的转换值为:    \r\n\0";
; /******************************************************
; 函数名：void RAMclear(void)
; 描  述：RAM区数据清零，RAM区地址0x0000~0x03FF
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void RAMclear(void)
; {
;     for (IAAH = 0; IAAH <= 0x03; IAAH++)
;     {
;         for (IAAL = 0; IAAL < 0xFF; IAAL++)
;             IAD = 0x00;
;         IAD = 0x00;
;     }
; }
; /******************************************************
; 函数名：void GPIOInit(void)
; 描  述：首先初始化所有未用到的IO口为输出低电平
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void GPIOInit(void)
; {
#line 57	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ANSH = 0xFF;        //选择对应端口为数字IO功能
	CLR            	BKSR
;   57:(    ASGN_1,        255 ,            ,      ANSH)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSH_0
#line 58	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ANSL = 0xFF;        //选择对应端口为数字IO功能
;   58:(    ASGN_1,        255 ,            ,      ANSL)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSL_0
#line 59	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PAT = 0x00;         //所有IO设为输出低电平
;   59:(    ASGN_1,          0 ,            ,       PAT)

; ITemplate_CLR1_4_TMP
	CLR            	_PAT_0
#line 60	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PBT = 0x00;
;   60:(    ASGN_1,          0 ,            ,       PBT)

; ITemplate_CLR1_4_TMP
	CLR            	_PBT_0
#line 61	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PCT = 0x00;
;   61:(    ASGN_1,          0 ,            ,       PCT)

; ITemplate_CLR1_4_TMP
	CLR            	_PCT_0
#line 62	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PA = 0x00;
;   62:(    ASGN_1,          0 ,            ,        PA)

; ITemplate_CLR1_4_TMP
	CLR            	_PA_0
#line 63	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PB = 0x00;
;   63:(    ASGN_1,          0 ,            ,        PB)

; ITemplate_CLR1_4_TMP
	CLR            	_PB_0
#line 64	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PC = 0x00;
;   64:(    ASGN_1,          0 ,            ,        PC)

; ITemplate_CLR1_4_TMP
	CLR            	_PC_0
#line 65	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ; }
;   65:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	UART_send,0X8,0X0

SECTION1UART_send	UNINTIAL       	0		; Bank 0
	ORG            	0XA0		; Bank 0
_UART_sendDATA	RSEG           	0X9		; Bank 0
UART_send#	CSEG           
_UART_send
; /**********************************************
; 函数名：UART_send(uchar *str,uchar ch,uint value)
; 描  述：UART发送函数
; 输入值：字符串指针，通道数，ADC转换值
; 输出值：无
; 返回值：无
; **********************************************/
; void UART_send(uchar *str, uchar ch, uint value)
; {
#line 76	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     *(str + 4) = ch + '0';
	CLR            	BKSR
;   76:(     ADD_2,        str ,          4 ,   #T20417)

; ITemplate_ADD1_4
	SECTION        	0x1
	MOV            	(_UART_sendDATA+0X0) & 0X7F,	0x0		; Bank 1
	ADDI           	0x4
	MOVA           	(_UART_send_#T20417_7) & 0X7F		; Bank 1
	MOV            	(_UART_sendDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	0x0
	MOVA           	(_UART_send_#T20417_7+0x1) & 0X7F		; Bank 1
;   76:(     ADD_1,         ch ,         48 ,  *#T20417)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOV            	(_UART_send_#T20417_7+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_UART_send_#T20417_7) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	(_UART_sendDATA+0X2) & 0X7F,	0x0		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 77	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     *(str + 16) = value / 1000 + '0';
;   77:(     ADD_2,        str ,         16 ,   #T20439)

; ITemplate_ADD1_4
	MOV            	(_UART_sendDATA+0X0) & 0X7F,	0x0		; Bank 1
	ADDI           	0x10
	MOVA           	(_UART_send_#T20439_7) & 0X7F		; Bank 1
	MOV            	(_UART_sendDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	0x0
	MOVA           	(_UART_send_#T20439_7+0x1) & 0X7F		; Bank 1
;   77:(    DIV_2U,      value ,       1000 ,   #T20448)

; ITemplate_LibFunc_DIV1_2
	MOVI           	0x3
	MOVAR          	?_TMP+0x3		; Bank 0
	MOVI           	0xe8
	MOVAR          	?_TMP+0x2		; Bank 0
	MOV            	(_UART_sendDATA+0X3+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_UART_sendDATA+0X3) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP		; Bank 0
	SEGMENTSEL     	WDIV
	SECTION        	0x0
	CALL           	WDIV		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20448_7		; Bank 1
;   77:(     ADD_1,    #T20448 ,         48 ,  *#T20439)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20439_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20439_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20448_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 78	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     *(str + 17) = value % 1000 / 100 + '0';
;   78:(     ADD_2,        str ,         17 ,   #T20466)

; ITemplate_ADD1_4
	MOVRA          	_UART_sendDATA+0X0		; Bank 1
	ADDI           	0x11
	MOVAR          	_UART_send_#T20466_7		; Bank 1
	MOVRA          	_UART_sendDATA+0X0+0x1		; Bank 1
	ADDCI          	0x0
	MOVAR          	_UART_send_#T20466_7+0x1		; Bank 1
;   78:(    MOD_2U,      value ,       1000 ,   #T20477)

; ITemplate_LibFunc2
	MOVI           	0x3
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0xe8
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3		; Bank 1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	SEGMENTSEL     	WMOD
	CALL           	WMOD		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20477_7		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20477_7+0x1		; Bank 1
;   78:(    DIV_2U,    #T20477 ,        100 ,   #T20480)

; ITemplate_LibFunc_DIV1_2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0x64
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20477_7+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20477_7		; Bank 1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	SEGMENTSEL     	WDIV
	CALL           	WDIV		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20480_7		; Bank 1
;   78:(     ADD_1,    #T20480 ,         48 ,  *#T20466)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20466_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20466_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20480_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 79	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     *(str + 18) = value % 100 / 10 + '0';
;   79:(     ADD_2,        str ,         18 ,   #T20498)

; ITemplate_ADD1_4
	MOVRA          	_UART_sendDATA+0X0		; Bank 1
	ADDI           	0x12
	MOVAR          	_UART_send_#T20498_7		; Bank 1
	MOVRA          	_UART_sendDATA+0X0+0x1		; Bank 1
	ADDCI          	0x0
	MOVAR          	_UART_send_#T20498_7+0x1		; Bank 1
;   79:(    MOD_2U,      value ,        100 ,   #T20509)

; ITemplate_LibFunc2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0x64
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3		; Bank 1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	SEGMENTSEL     	WMOD
	CALL           	WMOD		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20509_7		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20509_7+0x1		; Bank 1
;   79:(    DIV_2U,    #T20509 ,         10 ,   #T20512)

; ITemplate_LibFunc_DIV1_2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0xa
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20509_7+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20509_7		; Bank 1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	SEGMENTSEL     	WDIV
	CALL           	WDIV		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP+0x4) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20512_7		; Bank 1
;   79:(     ADD_1,    #T20512 ,         48 ,  *#T20498)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20498_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20498_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20512_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 80	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     *(str + 19) = value % 10 + '0';
;   80:(     ADD_2,        str ,         19 ,   #T20530)

; ITemplate_ADD1_4
	MOVRA          	_UART_sendDATA+0X0		; Bank 1
	ADDI           	0x13
	MOVAR          	_UART_send_#T20530_7		; Bank 1
	MOVRA          	_UART_sendDATA+0X0+0x1		; Bank 1
	ADDCI          	0x0
	MOVAR          	_UART_send_#T20530_7+0x1		; Bank 1
;   80:(    MOD_2U,      value ,         10 ,   #T20539)

; ITemplate_LibFunc2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0xa
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_sendDATA+0X3		; Bank 1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	SEGMENTSEL     	WMOD
	CALL           	WMOD		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20539_7		; Bank 1
;   80:(     ADD_1,    #T20539 ,         48 ,  *#T20530)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20530_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20530_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20539_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 82	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (*str)
;   82:(     LABEL,    #L20543 ,            ,          )

; ITemplate_LABEL
#L20543
;   82:(      JZ_1,       *str ,            ,   #L20578)

; ITemplate_GetRamRef
	SECTION        	0x1
	MOV            	(_UART_sendDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_UART_sendDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVAR          	?_TMP		; Bank 0
; ITemplate_JZ1_4
	SECTION        	0x0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	JBC            	PSW,	0x2
	GOTO           	#L20578
;     {
#line 84	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         while (!TRMT1);
;   84:(     LABEL,    #L20548 ,            ,          )

; ITemplate_LABEL
#L20548
;   84:(      JZ_0,      TRMT1 ,            ,   #L20548)

; ITemplate_JZ_0
	BSS            	BKSR,	0x4
	JBS            	(_TRMT1_0#sh)/8,	(_TRMT1_0#sh)%8		; ShBank 1
	GOTO           	#L20548
#line 86	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         TX1B = *str++;
;   86:(    ASGN_2,        str ,            ,   #T20562)

; ITemplate_ASGN1_4_R
	SECTION        	0x1
	MOV            	(_UART_sendDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_UART_send_#T20562_8+0x1) & 0X7F		; Bank 1
	MOV            	(_UART_sendDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVA           	(_UART_send_#T20562_8) & 0X7F		; Bank 1
;   86:(    ASGN_1,   *#T20562 ,            ,      TX1B)

; ITemplate_GetRamRef
	MOV            	(_UART_send_#T20562_8+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_UART_send_#T20562_8) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVAR          	?_TMP		; Bank 0
; ITemplate_ASGN1_4
	MOVRA          	?_TMP		; Bank 0
	MOVA           	_TX1B_0#sh		; ShBank 1
;   86:(     ADD_2,        str ,          1 ,       str)

; ITemplate_INC_2_TMP
	INC            	(_UART_sendDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21214
	INC            	(_UART_sendDATA+0X0+0x1) & 0X7F		; Bank 1
#L21214
#line 87	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     }
;   87:(       JMP,            ,            ,   #L20543)

; ITemplate_JMP
	GOTO           	#L20543
#line 88	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ; }
;   88:(     LABEL,    #L20578 ,            ,          )

; ITemplate_LABEL
#L20578
;   88:(       RET,            ,            ,          )

; ITemplate_RET
	BCC            	BKSR,	0x4
	RET            			; Bank 0		; ShBank 0
	_DESC          	ADC_convert,0X2,0X0

SECTION1ADC_convert	UNINTIAL       	0		; Bank 0
	ORG            	0XA0		; Bank 0
_ADC_convertDATA	RSEG           	0X6		; Bank 0
ADC_convert#	CSEG           
_ADC_convert
; /**********************************************
; 函数名：ADC_convert(void)
; 描  述：ADC转换函数
; 输入值：无
; 输出值：无
; 返回值：转换的12位结果
; **********************************************/
; uint ADC_convert(void)
; {
#line 99	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADTRG = 1;      //启动AD转换
	CLR            	BKSR
;   99:(    ASGN_0,          1 ,            ,     ADTRG)

; ITemplate_SET_0_TMP
	BSS            	(_ADTRG_0#sh)/8,	(_ADTRG_0#sh)%8		; ShBank 0
#line 101	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (ADTRG);
;  101:(     LABEL,    #L20585 ,            ,          )

; ITemplate_LABEL
#L20585
;  101:(     JNZ_0,      ADTRG ,            ,   #L20585)

; ITemplate_JNZ_0
	JBC            	(_ADTRG_0#sh)/8,	(_ADTRG_0#sh)%8		; ShBank 0
	GOTO           	#L20585
#line 103	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADIF = 0;
;  103:(    ASGN_0,          0 ,            ,      ADIF)

; ITemplate_CLR_0_TMP
	BCC            	(_ADIF_0)/8,	(_ADIF_0)%8
#line 105	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     return (uint)ADCRH << 8 | ADCRL;
;  105:(   CVUC_UI,      ADCRH ,            ,   #T20606)

; ITemplate_CVTMS_U
	SECTION        	0x1
	CLR            	(_ADC_convert_#T20606_10+0x1) & 0X7F		; Bank 1
	MOV            	_ADCRH_0#sh,	0x0		; ShBank 0
	MOVA           	(_ADC_convert_#T20606_10) & 0X7F		; Bank 1
;  105:(    LSH_2U,    #T20606 ,          8 ,   #T20609)

; ITemplate_LSH1_4_8
	MOV            	(_ADC_convert_#T20606_10) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20609_10+0x1) & 0X7F		; Bank 1
	CLR            	(_ADC_convert_#T20609_10) & 0X7F		; Bank 1
;  105:(   CVUC_UI,      ADCRL ,            ,   #T20612)

; ITemplate_CVTMS_U
	CLR            	(_ADC_convert_#T20612_10+0x1) & 0X7F		; Bank 1
	MOV            	_ADCRL_0#sh,	0x0		; ShBank 0
	MOVA           	(_ADC_convert_#T20612_10) & 0X7F		; Bank 1
;  105:(     BOR_2,    #T20609 ,    #T20612 ,   #T20613)

; ITemplate_BOR1_4
	MOV            	(_ADC_convert_#T20612_10) & 0X7F,	0x0		; Bank 1
	IOR            	(_ADC_convert_#T20609_10) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20613_10) & 0X7F		; Bank 1
	MOV            	(_ADC_convert_#T20612_10+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_ADC_convert_#T20609_10+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20613_10+0x1) & 0X7F		; Bank 1
;  105:(     RET_2,    #T20613 ,            ,      #RET)

; ITemplate_RET2_N
	MOV            	(_ADC_convert_#T20613_10) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP_RET		; Bank 0
	MOV            	(_ADC_convert_#T20613_10+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP_RET+0x1		; Bank 0
	MOVRA          	?_TMP_RET		; Bank 0
	SECTION        	0x0
	RET            			; Bank 0		; ShBank 0
	_DESC          	GetOffsetVDD,0X2,0X0

SECTION1GetOffsetVDD	UNINTIAL       	0		; Bank 0
	ORG            	0XA0		; Bank 0
_GetOffsetVDDDATA	RSEG           	0X7		; Bank 0
GetOffsetVDD#	CSEG           
_GetOffsetVDD
; }
; /*******************************************************
; 函数名：uint GetOffset2048(void)
; 描  述：获取参考电压为内部2.048V时offset值
; 输入值：无
; 输出值：无
; 返回值：offset值
; *******************************************************/
; uint GetOffset2048(void)
; {
;     uint value_tmp = 0;
;     unsigned char gie_bk = GIE;     //备份GIE
;     CLRWDT();
;     while (GIE) GIE = 0;
;     DATARDEN = 1;
;     FRAH = 0x802F >> 8;
;     FRAL = 0x802F;
;     DATARDTRG = 1;
;     while (DATARDTRG) ;      //等待读完成
;     __Asm TBR;               //查表读指令
;     value_tmp = (ROMDH << 8) | ROMDL;
;     ROMCL = 0x00;            //退出IAP
;     GIE = gie_bk;            //恢复全局中断
;     return value_tmp;
; }
; /*******************************************************
; 函数名：uint GetOffsetVDD(void)
; 描  述：获取参考电压为VDD时offset值
; 输入值：无
; 输出值：无
; 返回值：offset值
; *******************************************************/
; uint GetOffsetVDD(void)
; {
;     uint value_tmp = 0;
#line 151	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     unsigned char gie_bk = GIE;     //备份GIE
	CLR            	BKSR
;  151:(    CVB_UC,        GIE ,            ,   #T20702)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_GIE_0)/8,	(_GIE_0)%8
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_GetOffsetVDD_#T20702_15) & 0X7F		; Bank 1
;  151:(    ASGN_1,    #T20702 ,            ,    gie_bk)

; ITemplate_ASGN1_4_R
	MOV            	(_GetOffsetVDD_#T20702_15) & 0X7F,	0x0		; Bank 1
	MOVA           	(_GetOffsetVDD_gie_bk_15) & 0X7F		; Bank 1
#line 153	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 155	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (GIE) GIE = 0;
;  155:(     LABEL,    #L20703 ,            ,          )

; ITemplate_LABEL
#L20703
;  155:(      JZ_0,        GIE ,            ,   #L20705)

; ITemplate_JZ_0
	JBS            	(_GIE_0)/8,	(_GIE_0)%8
	GOTO           	#L20705
;  155:(    ASGN_0,          0 ,            ,       GIE)

; ITemplate_CLR_0_TMP
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
;  155:(       JMP,            ,            ,   #L20703)

; ITemplate_JMP
	GOTO           	#L20703
;  155:(     LABEL,    #L20705 ,            ,          )

; ITemplate_LABEL
#L20705
#line 157	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     DATARDEN = 1;
;  157:(    ASGN_0,          1 ,            ,  DATARDEN)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDEN_0)/8,	(_DATARDEN_0)%8
#line 159	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     FRAH = 0x8030 >> 8;
;  159:(    ASGN_1,        128 ,            ,      FRAH)

; ITemplate_ASGN1_4_R
	MOVI           	0x80
	MOVA           	_FRAH_0
#line 160	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     FRAL = 0x8030;
;  160:(    ASGN_1,         48 ,            ,      FRAL)

; ITemplate_ASGN1_4_R
	MOVI           	0x30
	MOVA           	_FRAL_0
#line 161	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     DATARDTRG = 1;
;  161:(    ASGN_0,          1 ,            , DATARDTRG)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDTRG_0)/8,	(_DATARDTRG_0)%8
#line 163	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (DATARDTRG) ;      //等待读完成
;  163:(     LABEL,    #L20740 ,            ,          )

; ITemplate_LABEL
#L20740
;  163:(     JNZ_0,  DATARDTRG ,            ,   #L20740)

; ITemplate_JNZ_0
	JBC            	(_DATARDTRG_0)/8,	(_DATARDTRG_0)%8
	GOTO           	#L20740
#line 165	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     __Asm TBR;               //查表读指令
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 166	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     value_tmp = (ROMDH << 8) | ROMDL;
;  166:(   CVUC_SI,      ROMDH ,            ,   #T20755)

; ITemplate_CVTMS_U
	CLR            	(_GetOffsetVDD_#T20755_15+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDH_0,	0x0
	MOVA           	(_GetOffsetVDD_#T20755_15) & 0X7F		; Bank 1
;  166:(    LSH_2S,    #T20755 ,          8 ,   #T20756)

; ITemplate_LSH1_4_8
	MOV            	(_GetOffsetVDD_#T20755_15) & 0X7F,	0x0		; Bank 1
	MOVA           	(_GetOffsetVDD_#T20756_15+0x1) & 0X7F		; Bank 1
	CLR            	(_GetOffsetVDD_#T20756_15) & 0X7F		; Bank 1
;  166:(   CVUC_SI,      ROMDL ,            ,   #T20759)

; ITemplate_CVTMS_U
	CLR            	(_GetOffsetVDD_#T20759_15+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDL_0,	0x0
	MOVA           	(_GetOffsetVDD_#T20759_15) & 0X7F		; Bank 1
;  166:(     BOR_2,    #T20756 ,    #T20759 , value_tmp)

; ITemplate_BOR1_4
	MOV            	(_GetOffsetVDD_#T20759_15) & 0X7F,	0x0		; Bank 1
	IOR            	(_GetOffsetVDD_#T20756_15) & 0X7F,	0x0		; Bank 1
	MOVA           	(_GetOffsetVDD_value_tmp_15) & 0X7F		; Bank 1
	MOV            	(_GetOffsetVDD_#T20759_15+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_GetOffsetVDD_#T20756_15+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_GetOffsetVDD_value_tmp_15+0x1) & 0X7F		; Bank 1
#line 168	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ROMCL = 0x00;            //退出IAP
;  168:(    ASGN_1,          0 ,            ,     ROMCL)

; ITemplate_CLR1_4_TMP
	CLR            	_ROMCL_0
#line 169	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     GIE = gie_bk;            //恢复全局中断
;  169:(    CVUC_B,     gie_bk ,            ,   #T20773)

; ITemplate_CVUC_B
	SECTION        	0x0
	BCC            	((_GetOffsetVDD_#T20773_15)/8) & 0X7F,	(_GetOffsetVDD_#T20773_15)%8		; Bank 0
	SECTION        	0x1
	JBS            	(_GetOffsetVDD_gie_bk_15) & 0X7F,	0x0		; Bank 1
	GOTO           	#L21215
	SECTION        	0x0
	BSS            	((_GetOffsetVDD_#T20773_15)/8) & 0X7F,	(_GetOffsetVDD_#T20773_15)%8		; Bank 0
#L21215
;  169:(    ASGN_0,    #T20773 ,            ,       GIE)

; ITemplate_ASGN_0_P
	SECTION        	0x0
	JBC            	((_GetOffsetVDD_#T20773_15)/8) & 0X7F,	(_GetOffsetVDD_#T20773_15)%8		; Bank 0
	GOTO           	#L21216
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
	GOTO           	#L21217
#L21216
	BSS            	(_GIE_0)/8,	(_GIE_0)%8
#L21217
#line 171	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     return value_tmp;
;  171:(     RET_2,  value_tmp ,            ,      #RET)

; ITemplate_RET2_N
	SECTION        	0x1
	MOV            	(_GetOffsetVDD_value_tmp_15) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP_RET		; Bank 0
	MOV            	(_GetOffsetVDD_value_tmp_15+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP_RET+0x1		; Bank 0
	MOVRA          	?_TMP_RET		; Bank 0
	SECTION        	0x0
	RET            			; Bank 0		; ShBank 0
	_DESC          	main,0X3,0X0,GPIOInit,GetOffsetVDD,ADC_convert,UART_send

SECTION1main	UNINTIAL       	0		; Bank 0
	ORG            	0X99		; Bank 0
_mainDATA	RSEG           	0X7		; Bank 0
main#	CSEG           
_main
; }
; /**********************************************
; 函数名：main()
; 描  述：主函数,选择AIN7通道，测量值经UART传送到上位机
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void main(void)
; {
;     uint i = 10000;       //延时变量
;     uint j = 3000;        //延时变量
#line 185	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     uchar cnt = 3;
	CLR            	BKSR
;  185:(    ASGN_1,          3 ,            ,       cnt)

; ITemplate_ASGN1_4_R
	MOVI           	0x3
	SECTION        	0x1
	MOVA           	(_main_cnt_18) & 0X7F		; Bank 1
; //    RAMclear();
#line 188	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 189	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     GPIOInit();
;  189:(      CALL, (GPIOInit.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_GPIOInit
	CALL           	_GPIOInit		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
;     /****************初始化UART*******************/
#line 192	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PBT5 = 0;       //TX输出
;  192:(    ASGN_0,          0 ,            ,      PBT5)

; ITemplate_CLR_0_TMP
	BCC            	(_PBT5_0)/8,	(_PBT5_0)%8
#line 193	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PBT6 = 1;       //RX输入
;  193:(    ASGN_0,          1 ,            ,      PBT6)

; ITemplate_SET_0_TMP
	BSS            	(_PBT6_0)/8,	(_PBT6_0)%8
#line 194	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     TX1LEN = 0;     //8位数据发送格式
;  194:(    ASGN_0,          0 ,            ,    TX1LEN)

; ITemplate_CLR_0_TMP
	BSS            	BKSR,	0x4
	BCC            	(_TX1LEN_0#sh)/8,	(_TX1LEN_0#sh)%8		; ShBank 1
#line 195	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     BRGH1 = 0;      //波特率低速模式：波特率=Fosc/(64*(BRR<7:0>+1))
;  195:(    ASGN_0,          0 ,            ,     BRGH1)

; ITemplate_CLR_0_TMP
	BCC            	(_BRGH1_0#sh)/8,	(_BRGH1_0#sh)%8		; ShBank 1
#line 196	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     BR1R = 25;      //波特率=16MHz/(64*26)≈9600bps
;  196:(    ASGN_1,         25 ,            ,      BR1R)

; ITemplate_ASGN1_4_R
	MOVI           	0x19
	MOVA           	_BR1R_0#sh		; ShBank 1
;     /****************初始化ADC********************/
; #ifdef VDDVREF
#line 201	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (cnt != 0)
;  201:(     LABEL,    #L20821 ,            ,          )

; ITemplate_LABEL
#L20821
;  201:(      JZ_1,        cnt ,            ,   #L20823)

; ITemplate_JZ1_4
	SECTION        	0x1
	MOV            	(_main_cnt_18) & 0X7F,	0x0		; Bank 1
	JBC            	PSW,	0x2
	GOTO           	#L20823
;     {
#line 203	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         offset_value = GetOffsetVDD();  //获取offset值
;  203:(     CALLR, (GetOffsetVDD.0) ,            ,offset_value)

; ITemplate_CALL
	SEGMENTSEL     	_GetOffsetVDD
	CALL           	_GetOffsetVDD		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOVAR          	_offset_value		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_offset_value+0x1		; Bank 1
#line 205	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         if ((offset_value >> 8) == ((~offset_value) & 0x00FF)) //是否满足高低8位取反，是则取低8位作为offset
;  205:(    BCOM_2, offset_value ,            ,   #T20855)

; ITemplate_BCOM1_4
	SECTION        	0x1
	COM            	(_offset_value) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20855_20) & 0X7F		; Bank 1
	COM            	(_offset_value+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20855_20+0x1) & 0X7F		; Bank 1
;  205:(    RSH_2U, offset_value ,          8 ,   #T20859)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_offset_value) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_offset_value+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21218
#L21219
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21218
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21219
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_main_#T20859_20		; Bank 1
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVAR          	_main_#T20859_20+0x1		; Bank 1
;  205:(    BAND_2,        255 ,    #T20855 ,   #T20860)

; ITemplate_BAND1_4
	MOVRA          	_main_#T20855_20		; Bank 1
	ANDI           	0xff
	MOVAR          	_main_#T20860_20		; Bank 1
	MOVRA          	_main_#T20855_20+0x1		; Bank 1
	ANDI           	0x0
	MOVAR          	_main_#T20860_20+0x1		; Bank 1
;  205:(    JNEQ_2,    #T20859 ,    #T20860 ,   #L20841)

; ITemplate_JNEQ1_4
	MOVRA          	_main_#T20860_20		; Bank 1
	SECTION        	0x1
	XOR            	(_main_#T20859_20) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21220
	MOV            	(_main_#T20860_20+0x1) & 0X7F,	0x0		; Bank 1
	XOR            	(_main_#T20859_20+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
#L21220
	GOTO           	#L20841
;         {
#line 207	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             offset_value =  offset_value & 0x00FF;
;  207:(    BAND_2,        255 , offset_value ,offset_value)

; ITemplate_BAND1_4
	MOV            	(_offset_value) & 0X7F,	0x0		; Bank 1
	ANDI           	0xff
	MOVA           	(_offset_value) & 0X7F		; Bank 1
	MOV            	(_offset_value+0x1) & 0X7F,	0x0		; Bank 1
	ANDI           	0x0
	MOVA           	(_offset_value+0x1) & 0X7F		; Bank 1
#line 209	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             break;
;  209:(       JMP,            ,            ,   #L20823)

; ITemplate_JMP
	GOTO           	#L20823
;         }
#line 211	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         else
;  211:(     LABEL,    #L20841 ,            ,          )

; ITemplate_LABEL
#L20841
;         {
#line 213	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             cnt--;
;  213:(     SUB_1,        cnt ,          1 ,       cnt)

; ITemplate_DEC_1_TMP
	DEC            	(_main_cnt_18) & 0X7F		; Bank 1
#line 215	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             if (cnt == 0)
;  215:(     JNZ_1,        cnt ,            ,   #L20821)

; ITemplate_JNZ1_4
	MOV            	(_main_cnt_18) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20821
#line 216	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;                 offset_value = 0;  //读IAP超过3次后仍不满足高低8位取反则offset固定为0
;  216:(    ASGN_2,          0 ,            ,offset_value)

; ITemplate_CLR1_4_TMP
	CLR            	(_offset_value) & 0X7F		; Bank 1
	CLR            	(_offset_value+0x1) & 0X7F		; Bank 1
;         }
#line 218	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     }
;  218:(       JMP,            ,            ,   #L20821)

; ITemplate_JMP
	GOTO           	#L20821
;  218:(     LABEL,    #L20823 ,            ,          )

; ITemplate_LABEL
#L20823
#line 220	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ANSL7 = 0;          //选择AIN7为模拟口
;  220:(    ASGN_0,          0 ,            ,     ANSL7)

; ITemplate_CLR_0_TMP
	BCC            	(_ANSL7_0)/8,	(_ANSL7_0)%8
#line 221	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADCCL |= 0xF0;      //ADCCL<7:4>选择通道
;  221:(     BOR_1,        240 ,      ADCCL ,     ADCCL)

; ITemplate_BOR1_4
	BCC            	BKSR,	0x4
	MOV            	_ADCCL_0#sh,	0x0		; ShBank 0
	IORI           	0xf0
	MOVA           	_ADCCL_0#sh		; ShBank 0
#line 222	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADCCL &= 0x7F;      //选择通道7
;  222:(   ASGN_B$,          0 ,          7 ,     ADCCL)

; ITemplate_CLR_B1_TMP
	BCC            	_ADCCL_0#sh,	0x7		; ShBank 0
#line 223	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADCCM = 0x4B;       //参考源VDD,负参考固定选择VSS，转换位数固定选择12位，AD调整offset固定选择档位1
;  223:(    ASGN_1,         75 ,            ,     ADCCM)

; ITemplate_ASGN1_4_R
	MOVI           	0x4b
	MOVA           	_ADCCM_0#sh		; ShBank 0
#line 224	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADCCH = 0xC8;       //低位对齐;时钟周期FOSC/16
;  224:(    ASGN_1,        200 ,            ,     ADCCH)

; ITemplate_ASGN1_4_R
	MOVI           	0xc8
	MOVA           	_ADCCH_0#sh		; ShBank 0
#line 225	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADEN = 1;           //使能ADC模块
;  225:(    ASGN_0,          1 ,            ,      ADEN)

; ITemplate_SET_0_TMP
	BSS            	(_ADEN_0#sh)/8,	(_ADEN_0#sh)%8		; ShBank 0
; #else
;     while (cnt != 0)
;     {
;         offset_value = GetOffset2048();  //获取offset值
;         if ((offset_value >> 8) == ((~offset_value) & 0x00FF)) //是否满足高低八位取反，是则取低8位作为offset
;         {
;             offset_value =  offset_value & 0x00FF;
;             break;
;         }
;         else
;         {
;             cnt--;
;             if (cnt == 0)
;                 offset_value = 0;    //读IAP超过3次后仍不满足高低8位取反则offset固定为0
;         }
;     }
;     ANSL7 = 0;          //选择AIN7为模拟口
;     ADCCL |= 0xF0;      //ADCCL<7:4>选择通道
;     ADCCL &= 0x7F;      //选择通道7
;     ADCCM = 0x6B;       //参考源内部固定选择2.048V,负参考固定选择VSS，转换位数固定选择12位，AD调整offset固定选择档位1
;     ADCCH = 0xC8;       //低位对齐;时钟周期FOSC/16
;     ADEN = 1;           //使能ADC模块
;     VREFEN = 1;         //参考电压模块使能
;     while (j--);        //等待300us以上
;     VREF_CHOPEN = 1;    //内部参考必须使能电压斩波器
;     while (i--);        //等待1ms以上再启动转换
; #endif
#line 263	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     ADC_LP_EN = 1;      //ADC低功耗必须固定使能
;  263:(    ASGN_0,          1 ,            , ADC_LP_EN)

; ITemplate_SET_0_TMP
	BSS            	(_ADC_LP_EN_0)/8,	(_ADC_LP_EN_0)%8
#line 264	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     PAT7 = 1;
;  264:(    ASGN_0,          1 ,            ,      PAT7)

; ITemplate_SET_0_TMP
	BSS            	(_PAT7_0)/8,	(_PAT7_0)%8
#line 265	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     SMPS = 1;           //硬件控制采样，ADTRG=1时启动AD采样转换
;  265:(    ASGN_0,          1 ,            ,      SMPS)

; ITemplate_SET_0_TMP
	BSS            	(_SMPS_0#sh)/8,	(_SMPS_0#sh)%8		; ShBank 0
#line 267	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     while (1)
;  267:(     LABEL,    #L20959 ,            ,          )

; ITemplate_LABEL
#L20959
;     {
#line 269	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         adc_value = ADC_convert();
;  269:(     CALLR, (ADC_convert.0) ,            , adc_value)

; ITemplate_CALL
	SEGMENTSEL     	_ADC_convert
	CALL           	_ADC_convert		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
	MOVAR          	_adc_value		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_adc_value+0x1		; Bank 1
#line 271	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         if (adc_value > offset_value)  //AD转换值大于offset值则减去offset，否则ADC结果归0
;  271:(    JLE_2U,  adc_value , offset_value ,   #L20973)

; ITemplate_JLE1_4U
	MOVRA          	_adc_value+0x1		; Bank 1
	SECTION        	0x1
	SUB            	(_offset_value+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21221
	MOV            	(_adc_value) & 0X7F,	0x0		; Bank 1
	SUB            	(_offset_value) & 0X7F,	0x0		; Bank 1
#L21221
	JBC            	PSW,	0x0
	GOTO           	#L20973
#line 272	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             adc_value -= offset_value;
;  272:(     SUB_2,  adc_value , offset_value , adc_value)

; ITemplate_SUB1_4
	MOV            	(_offset_value) & 0X7F,	0x0		; Bank 1
	SUB            	(_adc_value) & 0X7F,	0x0		; Bank 1
	MOVA           	(_adc_value) & 0X7F		; Bank 1
	MOV            	(_offset_value+0x1) & 0X7F,	0x0		; Bank 1
	SUBC           	(_adc_value+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_adc_value+0x1) & 0X7F		; Bank 1
;  272:(       JMP,            ,            ,   #L20971)

; ITemplate_JMP
	GOTO           	#L20971
#line 273	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         else
;  273:(     LABEL,    #L20973 ,            ,          )

; ITemplate_LABEL
#L20973
#line 274	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;             adc_value = 0;
;  274:(    ASGN_2,          0 ,            , adc_value)

; ITemplate_CLR1_4_TMP
	CLR            	(_adc_value) & 0X7F		; Bank 1
	CLR            	(_adc_value+0x1) & 0X7F		; Bank 1
;  274:(     LABEL,    #L20971 ,            ,          )

; ITemplate_LABEL
#L20971
#line 276	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         TX1EN = 1;      //打开发送
;  276:(    ASGN_0,          1 ,            ,     TX1EN)

; ITemplate_SET_0_TMP
	BSS            	BKSR,	0x4
	BSS            	(_TX1EN_0#sh)/8,	(_TX1EN_0#sh)%8		; ShBank 1
#line 277	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         UART_send(str, 7, adc_value);
;  277:(    PARA_2,    (str.0) ,            ,       str)

; ITemplate_ASGN1_4
	MOVI           	_str
	MOVA           	(_UART_sendDATA+0X0) & 0X7F		; Bank 1
	MOVI           	HIGH(_str)
	MOVA           	(_UART_sendDATA+0X0+0x1) & 0X7F		; Bank 1
;  277:(    PARA_1,          7 ,            ,        ch)

; ITemplate_ASGN1_4
	MOVI           	0x7
	MOVA           	(_UART_sendDATA+0X2) & 0X7F		; Bank 1
;  277:(    PARA_2,  adc_value ,            ,     value)

; ITemplate_ASGN1_4
	MOV            	(_adc_value) & 0X7F,	0x0		; Bank 1
	MOVA           	(_UART_sendDATA+0X3) & 0X7F		; Bank 1
	MOV            	(_adc_value+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_UART_sendDATA+0X3+0x1) & 0X7F		; Bank 1
;  277:(      CALL, (UART_send.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_UART_send
	CALL           	_UART_send		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 279	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);   //延时
;  279:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  279:(     LABEL,    #L21009 ,            ,          )

; ITemplate_LABEL
#L21009
;  279:(    JGE_2U,          i ,      50000 ,   #L21010)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21222
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21222
	JBC            	PSW,	0x0
	GOTO           	#L21010
;  279:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21223
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21223
;  279:(       JMP,            ,            ,   #L21009)

; ITemplate_JMP
	GOTO           	#L21009
;  279:(     LABEL,    #L21010 ,            ,          )

; ITemplate_LABEL
#L21010
#line 281	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);
;  281:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  281:(     LABEL,    #L21042 ,            ,          )

; ITemplate_LABEL
#L21042
;  281:(    JGE_2U,          i ,      50000 ,   #L21043)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21224
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21224
	JBC            	PSW,	0x0
	GOTO           	#L21043
;  281:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21225
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21225
;  281:(       JMP,            ,            ,   #L21042)

; ITemplate_JMP
	GOTO           	#L21042
;  281:(     LABEL,    #L21043 ,            ,          )

; ITemplate_LABEL
#L21043
#line 283	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);
;  283:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  283:(     LABEL,    #L21075 ,            ,          )

; ITemplate_LABEL
#L21075
;  283:(    JGE_2U,          i ,      50000 ,   #L21076)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21226
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21226
	JBC            	PSW,	0x0
	GOTO           	#L21076
;  283:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21227
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21227
;  283:(       JMP,            ,            ,   #L21075)

; ITemplate_JMP
	GOTO           	#L21075
;  283:(     LABEL,    #L21076 ,            ,          )

; ITemplate_LABEL
#L21076
#line 285	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);
;  285:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  285:(     LABEL,    #L21108 ,            ,          )

; ITemplate_LABEL
#L21108
;  285:(    JGE_2U,          i ,      50000 ,   #L21109)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21228
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21228
	JBC            	PSW,	0x0
	GOTO           	#L21109
;  285:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21229
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21229
;  285:(       JMP,            ,            ,   #L21108)

; ITemplate_JMP
	GOTO           	#L21108
;  285:(     LABEL,    #L21109 ,            ,          )

; ITemplate_LABEL
#L21109
#line 287	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);
;  287:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  287:(     LABEL,    #L21141 ,            ,          )

; ITemplate_LABEL
#L21141
;  287:(    JGE_2U,          i ,      50000 ,   #L21142)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21230
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21230
	JBC            	PSW,	0x0
	GOTO           	#L21142
;  287:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21231
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21231
;  287:(       JMP,            ,            ,   #L21141)

; ITemplate_JMP
	GOTO           	#L21141
;  287:(     LABEL,    #L21142 ,            ,          )

; ITemplate_LABEL
#L21142
#line 289	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         for (i = 0; i < 50000; i++);
;  289:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_18) & 0X7F		; Bank 1
	CLR            	(_main_i_18+0x1) & 0X7F		; Bank 1
;  289:(     LABEL,    #L21174 ,            ,          )

; ITemplate_LABEL
#L21174
;  289:(    JGE_2U,          i ,      50000 ,   #L21175)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_18+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21232
	MOVI           	0x50
	SUB            	(_main_i_18) & 0X7F,	0x0		; Bank 1
#L21232
	JBC            	PSW,	0x0
	GOTO           	#L21175
;  289:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_18) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21233
	INC            	(_main_i_18+0x1) & 0X7F		; Bank 1
#L21233
;  289:(       JMP,            ,            ,   #L21174)

; ITemplate_JMP
	GOTO           	#L21174
;  289:(     LABEL,    #L21175 ,            ,          )

; ITemplate_LABEL
#L21175
#line 291	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         TX1EN = 0;      //关闭发送
;  291:(    ASGN_0,          0 ,            ,     TX1EN)

; ITemplate_CLR_0_TMP
	BSS            	BKSR,	0x4
	BCC            	(_TX1EN_0#sh)/8,	(_TX1EN_0#sh)%8		; ShBank 1
#line 293	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;         CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 294	C:\Lisq\Project\Git\AN135_Examples_ES7P169C_ES7P0693_ES7P0031\ADC\adc_offset\adc_offset.c ;     }
;  294:(       JMP,            ,            ,   #L20959)

; ITemplate_JMP
	GOTO           	#L20959

SECTION0C__Program_Files__x86__HRCC_Tools_HRCC_v1_2_0_136_tools_INCLUDE_ES7P169C_h_STATIC0	UNINTIAL       		; Bank 0
_#T0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC1	PSECT	FLAG=0X1088,ADDR=0X7FCA0
_DATARDTRG_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC2	PSECT	FLAG=0X1088,ADDR=0X7FCA7
_DATARDEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC3	PSECT	FLAG=0X1088,ADDR=0X7FCB7
_GIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC4	PSECT	FLAG=0X1088,ADDR=0X7FCD0
_ADIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC5	PSECT	FLAG=0X1088,ADDR=0X7FD6F
_PAT7_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC6	PSECT	FLAG=0X1088,ADDR=0X7FD75
_PBT5_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC7	PSECT	FLAG=0X1088,ADDR=0X7FD76
_PBT6_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC8	PSECT	FLAG=0X1088,ADDR=0X7FDD5
_ADC_LP_EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC9	PSECT	FLAG=0X1088,ADDR=0X7FDE7
_ANSL7_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC10	PSECT	FLAG=0X1088,ADDR=0X305D0
_ADEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC11	PSECT	FLAG=0X1088,ADDR=0X305D1
_ADTRG_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC12	PSECT	FLAG=0X1088,ADDR=0X305D2
_SMPS_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC13	PSECT	FLAG=0X1088,ADDR=0X306B9
_TRMT1_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC14	PSECT	FLAG=0X1088,ADDR=0X306BD
_BRGH1_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC15	PSECT	FLAG=0X1088,ADDR=0X306BE
_TX1LEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC16	PSECT	FLAG=0X1088,ADDR=0X306BF
_TX1EN_0	RSEG           	0X1		; Bank 0

SECTION1IC__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c18	IDATA          		0X80		; Bank 0
_offset_value	DB             	0X0,0XE4,0X0,0XE4		; Bank 0

SECTION1IC__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c20	IDATA          		0X82		; Bank 0
_str	DB             	0XCD,0XE4,0XA8,0XE4,0XB5,0XE4,0XC0,0XE4,0X20,0XE4,0XB5,0XE4,0XC4,0XE4,0XD7,0XE4,0XAA,0XE4,0XBB,0XE4
	DB		0XBB,0XE4,0XD6,0XE4,0XB5,0XE4,0XCE,0XE4,0XAA,0XE4,0X3A,0XE4,0X20,0XE4,0X20,0XE4,0X20,0XE4,0X20,0XE4
	DB		0XD,0XE4,0XA,0XE4,0X0,0XE4		; Bank 0

SECTION0C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC21	PSECT	FLAG=0x88
_GetOffset2048_#T20690_12	RSEG           	0X1		; Bank 0

SECTION0C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC22	PSECT	FLAG=0x88
_GetOffsetVDD_#T20773_15	RSEG           	0X1		; Bank 0

SECTION1C__Lisq_Project_Git_AN135_Examples_ES7P169C_ES7P0693_ES7P0031_ADC_adc_offset_adc_offset_c_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0XA9		; Bank 0
_adc_value	RSEG           	0X2		; Bank 0

SECTION8C__Program_Files__x86__HRCC_Tools_HRCC_v1_2_0_136_tools_INCLUDE_ES7P169C_h_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0XFF80		; Bank 0
_IAD_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF81		; Bank 0
_IAAL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF82		; Bank 0
_IAAH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF8D		; Bank 0
_ANSH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF90		; Bank 0
_FRAL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF91		; Bank 0
_FRAH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF92		; Bank 0
_ROMDL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF93		; Bank 0
_ROMDH_0	RSEG           	0X1		; Bank 0
	ORG            	0XFF94		; Bank 0
_ROMCL_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFA8		; Bank 0
_PA_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFA9		; Bank 0
_PB_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFAA		; Bank 0
_PC_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFAD		; Bank 0
_PAT_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFAE		; Bank 0
_PBT_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFAF		; Bank 0
_PCT_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFBC		; Bank 0
_ANSL_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B7		; Bank 0
_ADCCM_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B8		; Bank 0
_ADCRL_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B9		; Bank 0
_ADCRH_0	RSEG           	0X1		; Bank 0
	ORG            	0X60BA		; Bank 0
_ADCCL_0	RSEG           	0X1		; Bank 0
	ORG            	0X60BB		; Bank 0
_ADCCH_0	RSEG           	0X1		; Bank 0
	ORG            	0X60D6		; Bank 0
_TX1B_0	RSEG           	0X1		; Bank 0
	ORG            	0X60D8		; Bank 0
_BR1R_0	RSEG           	0X1		; Bank 0
	END
