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

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_adc_value
	PUBLIC         	_str
	PUBLIC         	_offset_value
	PUBLIC         	_RAMclear
	PUBLIC         	_GPIOInit
	PUBLIC         	_UART_send
	PUBLIC         	_UART_sendDATA
	PUBLIC         	_ADC_convert
	PUBLIC         	_FlashRdOffset
	PUBLIC         	_FlashRdOffsetDATA
	PUBLIC         	_main
_#S20268E__lisq_public_lisq_ES7P_Examples_ES7P169C_ADC_adc_offset_adc_c	CSEG           
	ADD            	PCRL,	1
_#S20268
	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_#T20412_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20434_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20443_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20461_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20472_7	EQU            	_UART_sendDATA + 0X7		; Bank 0
_UART_send_#T20475_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20493_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20504_7	EQU            	_UART_sendDATA + 0X7		; Bank 0
_UART_send_#T20507_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20525_7	EQU            	_UART_sendDATA + 0X5		; Bank 0
_UART_send_#T20534_7	EQU            	_UART_sendDATA + 0X2		; Bank 0
_UART_send_#T20557_8	EQU            	_UART_sendDATA + 0X2		; Bank 0
_ADC_convert_#T20601_10	EQU            	_ADC_convertDATA + 0X0		; Bank 0
_ADC_convert_#T20604_10	EQU            	_ADC_convertDATA + 0X2		; Bank 0
_ADC_convert_#T20607_10	EQU            	_ADC_convertDATA + 0X0		; Bank 0
_ADC_convert_#T20608_10	EQU            	_ADC_convertDATA + 0X4		; Bank 0
_FlashRdOffset_offsetdp_12	EQU            	_FlashRdOffsetDATA + 0X2		; Bank 0
_FlashRdOffset_gie_bk_12	EQU            	_FlashRdOffsetDATA + 0X3		; Bank 0
_FlashRdOffset_#T20612_12	EQU            	_FlashRdOffsetDATA + 0X2		; Bank 0
_FlashRdOffset_#T20657_14	EQU            	_FlashRdOffsetDATA + 0X4		; Bank 0
_FlashRdOffset_#T20658_14	EQU            	_FlashRdOffsetDATA + 0X6		; Bank 0
_FlashRdOffset_#T20696_14	EQU            	_FlashRdOffsetDATA + 0X4		; Bank 0
_FlashRdOffset_#T20698_14	EQU            	_FlashRdOffsetDATA + 0X6		; Bank 0
_FlashRdOffset_#T20699_14	EQU            	_FlashRdOffsetDATA + 0X4		; Bank 0
_FlashRdOffset_#T20708_14	EQU            	_FlashRdOffsetDATA + 0X6		; Bank 0
_FlashRdOffset_#T20709_14	EQU            	_FlashRdOffsetDATA + 0X8		; Bank 0
_FlashRdOffset_#T20712_14	EQU            	_FlashRdOffsetDATA + 0X6		; Bank 0
_main_i_16	EQU            	_mainDATA + 0X0		; Bank 0
_main_#T20851_16	EQU            	_mainDATA + 0X2		; Bank 0
_main_#T20925_19	EQU            	_mainDATA + 0X2		; Bank 0
_main_#T20929_19	EQU            	_mainDATA + 0X4		; Bank 0
_main_#T20930_19	EQU            	_mainDATA + 0X6		; Bank 0
_main_#T20967_19	EQU            	_mainDATA + 0X2		; 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
	_DESC          	GPIOInit,0X0,0X0
GPIOInit#	CSEG           
_GPIOInit
; /*********************************************************
; *Copyright (C), 2020, Shanghai Eastsoft Microelectronics Co., Ltd
; *文件名:  adc.c
; *作  者:  AE Team
; *版  本:  v1.0，编译于iDesigner(v4.2.3.166) + 工具链HRCC(v1.2.0.106)
; *日  期:  2020/07/07
; *描  述:  ADC通信演示
;           PA7：模拟输入端口
;           PB5：TX
;           PB6：RX
;           程序将转换完的AD值通过串口发送到上位机，波特率9600bps。宏定义VDDVREF选择VDD作为参考电压正端，
;           否则选择内部2.048V作为参考电压正端。
; 		  转换值减去offset进行ADC软件补偿，offset存在802FH（内部2.048V作参考）和8030H地址处（VDD作参考）。
; *备  注:  本例程适用于ES7P169C芯片，本例程仅供参考
; 本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
; **********************************************************/
; #include <hic.h>
; #define VDDVREF        //宏定义选择VDD作为参考电压，注释本句则选择内部2.048V作为参考电压正端
; #define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
; typedef unsigned char uchar;
; typedef unsigned int uint;
; uint adc_value;
; uchar str[] = "通道 的转换值为:    \r\n\0";
; uint offset_value[2];	//保存ADC校准值，offset_value[0]保存内部2.048V参考校准值，offset_value[1]保存VDD参考校准值
; /******************************************************
; 函数名：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 56	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ANSH = 0xFF;        //选择对应端口为数字IO功能
	CLR            	BKSR
;   56:(    ASGN_1,        255 ,            ,      ANSH)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSH_0
#line 57	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ANSL = 0xFF;        //选择对应端口为数字IO功能
;   57:(    ASGN_1,        255 ,            ,      ANSL)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSL_0
#line 58	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PAT = 0x00;         //所有IO设为输出低电平
;   58:(    ASGN_1,          0 ,            ,       PAT)

; ITemplate_CLR1_4_TMP
	CLR            	_PAT_0
#line 59	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PBT = 0x00;
;   59:(    ASGN_1,          0 ,            ,       PBT)

; ITemplate_CLR1_4_TMP
	CLR            	_PBT_0
#line 60	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PCT = 0x00;
;   60:(    ASGN_1,          0 ,            ,       PCT)

; ITemplate_CLR1_4_TMP
	CLR            	_PCT_0
#line 61	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PA = 0x00;
;   61:(    ASGN_1,          0 ,            ,        PA)

; ITemplate_CLR1_4_TMP
	CLR            	_PA_0
#line 62	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PB = 0x00;
;   62:(    ASGN_1,          0 ,            ,        PB)

; ITemplate_CLR1_4_TMP
	CLR            	_PB_0
#line 63	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PC = 0x00;
;   63:(    ASGN_1,          0 ,            ,        PC)

; ITemplate_CLR1_4_TMP
	CLR            	_PC_0
#line 64	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; }
;   64:(       RET,            ,            ,          )

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

SECTION1UART_send	UNINTIAL       	0		; Bank 0
	ORG            	0X9F		; Bank 0
_UART_sendDATA	RSEG           	0X9		; Bank 0
UART_send#	CSEG           
_UART_send
;   73:(    FUNCHD,      value ,            ,          )

; ITemplate_FUNCHD
	SECTION        	0x1
	MOVA           	(_UART_sendDATA+0X3+0x1) & 0X7F		; Bank 1
; /**********************************************
; 函数名：UART_send(uchar *str,uchar ch,uint value)
; 描  述：UART发送函数
; 输入值：字符串指针，通道数，ADC转换值
; 输出值：无
; 返回值：无
; **********************************************/
; void UART_send(uchar *str,uchar ch,uint value)
; {
#line 75	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     *(str+4) = ch+'0';
;   75:(     ADD_2,        str ,          4 ,   #T20412)

; ITemplate_ADD1_4
	MOV            	(_UART_sendDATA+0X0) & 0X7F,	0x0		; Bank 1
	ADDI           	0x4
	MOVA           	(_UART_send_#T20412_7) & 0X7F		; Bank 1
	MOV            	(_UART_sendDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	0x0
	MOVA           	(_UART_send_#T20412_7+0x1) & 0X7F		; Bank 1
;   75:(     ADD_1,         ch ,         48 ,  *#T20412)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOV            	(_UART_send_#T20412_7+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_UART_send_#T20412_7) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	(_UART_sendDATA+0X2) & 0X7F,	0x0		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 76	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     *(str+16) = value/1000+'0';
;   76:(     ADD_2,        str ,         16 ,   #T20434)

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

; 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_#T20443_7		; Bank 1
;   76:(     ADD_1,    #T20443 ,         48 ,  *#T20434)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20434_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20434_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20443_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 77	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     *(str+17) = value%1000/100+'0';
;   77:(     ADD_2,        str ,         17 ,   #T20461)

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

; 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_#T20472_7		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20472_7+0x1		; Bank 1
;   77:(    DIV_2U,    #T20472 ,        100 ,   #T20475)

; ITemplate_LibFunc_DIV1_2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0x64
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20472_7+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20472_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_#T20475_7		; Bank 1
;   77:(     ADD_1,    #T20475 ,         48 ,  *#T20461)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20461_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20461_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20475_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 78	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     *(str+18) = value%100/10+'0';
;   78:(     ADD_2,        str ,         18 ,   #T20493)

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

; 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_#T20504_7		; Bank 1
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_UART_send_#T20504_7+0x1		; Bank 1
;   78:(    DIV_2U,    #T20504 ,         10 ,   #T20507)

; ITemplate_LibFunc_DIV1_2
	MOVI           	0x0
	MOVA           	(?_TMP+0x3) & 0X7F		; Bank 0
	MOVI           	0xa
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20504_7+0x1		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_UART_send_#T20504_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_#T20507_7		; Bank 1
;   78:(     ADD_1,    #T20507 ,         48 ,  *#T20493)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20493_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20493_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20507_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 79	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     *(str+19) = value%10+'0';
;   79:(     ADD_2,        str ,         19 ,   #T20525)

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

; 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_#T20534_7		; Bank 1
;   79:(     ADD_1,    #T20534 ,         48 ,  *#T20525)

; ITemplate_ADD1_4
; ITemplate_SetFSR
	MOVRA          	_UART_send_#T20525_7+0x1		; Bank 1
	MOVA           	IAAH
	MOVRA          	_UART_send_#T20525_7		; Bank 1
	MOVA           	IAAL
	MOVRA          	_UART_send_#T20534_7		; Bank 1
	ADDI           	0x30
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 81	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     while(*str)
;   81:(     LABEL,    #L20538 ,            ,          )

; ITemplate_LABEL
#L20538
;   81:(      JZ_1,       *str ,            ,   #L20573)

; 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           	#L20573
;     {
#line 83	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         while(!TRMT1);
;   83:(     LABEL,    #L20543 ,            ,          )

; ITemplate_LABEL
#L20543
;   83:(      JZ_0,      TRMT1 ,            ,   #L20543)

; ITemplate_JZ_0
	BSS            	BKSR,	0x4
	JBS            	(_TRMT1_0#sh)/8,	(_TRMT1_0#sh)%8		; ShBank 1
	GOTO           	#L20543
#line 84	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         TX1B = *str++;
;   84:(    ASGN_2,        str ,            ,   #T20557)

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

; ITemplate_GetRamRef
	MOV            	(_UART_send_#T20557_8+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_UART_send_#T20557_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
;   84:(     ADD_2,        str ,          1 ,       str)

; ITemplate_INC_2_TMP
	INC            	(_UART_sendDATA+0X0) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21270
	INC            	(_UART_sendDATA+0X0+0x1) & 0X7F		; Bank 1
#L21270
#line 85	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     }
;   85:(       JMP,            ,            ,   #L20538)

; ITemplate_JMP
	GOTO           	#L20538
#line 86	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; }
;   86:(     LABEL,    #L20573 ,            ,          )

; ITemplate_LABEL
#L20573
;   86:(       RET,            ,            ,          )

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

SECTION1ADC_convert	UNINTIAL       	0		; Bank 0
	ORG            	0X9F		; Bank 0
_ADC_convertDATA	RSEG           	0X6		; Bank 0
ADC_convert#	CSEG           
_ADC_convert
; /**********************************************
; 函数名：ADC_convert(uchar ch)
; 描  述：ADC转换函数
; 输入值：转换通道ch
; 输出值：无
; 返回值：转换的12位结果
; **********************************************/
; uint ADC_convert(void)
; {
#line 97	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADTRG = 1;      //启动AD转换
	CLR            	BKSR
;   97:(    ASGN_0,          1 ,            ,     ADTRG)

; ITemplate_SET_0_TMP
	BSS            	(_ADTRG_0#sh)/8,	(_ADTRG_0#sh)%8		; ShBank 0
#line 98	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     while(ADTRG);
;   98:(     LABEL,    #L20580 ,            ,          )

; ITemplate_LABEL
#L20580
;   98:(     JNZ_0,      ADTRG ,            ,   #L20580)

; ITemplate_JNZ_0
	JBC            	(_ADTRG_0#sh)/8,	(_ADTRG_0#sh)%8		; ShBank 0
	GOTO           	#L20580
#line 99	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADIF = 0;
;   99:(    ASGN_0,          0 ,            ,      ADIF)

; ITemplate_CLR_0_TMP
	BCC            	(_ADIF_0)/8,	(_ADIF_0)%8
#line 101	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     return (uint)ADCRH<<8 | ADCRL;
;  101:(   CVUC_UI,      ADCRH ,            ,   #T20601)

; ITemplate_CVTMS_U
	SECTION        	0x1
	CLR            	(_ADC_convert_#T20601_10+0x1) & 0X7F		; Bank 1
	MOV            	_ADCRH_0#sh,	0x0		; ShBank 0
	MOVA           	(_ADC_convert_#T20601_10) & 0X7F		; Bank 1
;  101:(    LSH_2U,    #T20601 ,          8 ,   #T20604)

; ITemplate_LSH1_4_8
	MOV            	(_ADC_convert_#T20601_10) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20604_10+0x1) & 0X7F		; Bank 1
	CLR            	(_ADC_convert_#T20604_10) & 0X7F		; Bank 1
;  101:(   CVUC_UI,      ADCRL ,            ,   #T20607)

; ITemplate_CVTMS_U
	CLR            	(_ADC_convert_#T20607_10+0x1) & 0X7F		; Bank 1
	MOV            	_ADCRL_0#sh,	0x0		; ShBank 0
	MOVA           	(_ADC_convert_#T20607_10) & 0X7F		; Bank 1
;  101:(     BOR_2,    #T20604 ,    #T20607 ,   #T20608)

; ITemplate_BOR1_4
	MOV            	(_ADC_convert_#T20607_10) & 0X7F,	0x0		; Bank 1
	IOR            	(_ADC_convert_#T20604_10) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20608_10) & 0X7F		; Bank 1
	MOV            	(_ADC_convert_#T20607_10+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_ADC_convert_#T20604_10+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_ADC_convert_#T20608_10+0x1) & 0X7F		; Bank 1
;  101:(     RET_2,    #T20608 ,            ,      #RET)

; ITemplate_RET2_N
	MOV            	(_ADC_convert_#T20608_10) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP_RET		; Bank 0
	MOV            	(_ADC_convert_#T20608_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          	FlashRdOffset,0X3,0X0

SECTION1FlashRdOffset	UNINTIAL       	0		; Bank 0
	ORG            	0X9F		; Bank 0
_FlashRdOffsetDATA	RSEG           	0XA		; Bank 0
FlashRdOffset#	CSEG           
_FlashRdOffset
;  111:(    FUNCHD,        ptr ,            ,          )

; ITemplate_FUNCHD
	SECTION        	0x1
	MOVA           	(_FlashRdOffsetDATA+0X0+0x1) & 0X7F		; Bank 1
; }
; /*******************************************************
; 函数名：void FlashRdOffset(unsigned int *ptr)
; 描  述：读INFO1区ADC offset值
; 输入值：容量至少为1个Word的数组指针
; 输出值：无
; 返回值：无
; *******************************************************/
; void FlashRdOffset(unsigned int *ptr)
; {
; 	unsigned char offsetdp;
#line 114	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	unsigned char gie_bk = GIE;		//备份GIE
;  114:(    CVB_UC,        GIE ,            ,   #T20612)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_GIE_0)/8,	(_GIE_0)%8
	MOVI           	0x1
	MOVA           	(_FlashRdOffset_#T20612_12) & 0X7F		; Bank 1
;  114:(    ASGN_1,    #T20612 ,            ,    gie_bk)

; ITemplate_ASGN1_4_R
	MOV            	(_FlashRdOffset_#T20612_12) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_gie_bk_12) & 0X7F		; Bank 1
#line 115	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 116	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	while(GIE) GIE = 0;
;  116:(     LABEL,    #L20613 ,            ,          )

; ITemplate_LABEL
#L20613
;  116:(      JZ_0,        GIE ,            ,   #L20615)

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

; ITemplate_CLR_0_TMP
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
;  116:(       JMP,            ,            ,   #L20613)

; ITemplate_JMP
	GOTO           	#L20613
;  116:(     LABEL,    #L20615 ,            ,          )

; ITemplate_LABEL
#L20615
#line 117	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	DATARDEN = 1;
;  117:(    ASGN_0,          1 ,            ,  DATARDEN)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDEN_0)/8,	(_DATARDEN_0)%8
#line 118	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	for (offsetdp = 0; offsetdp < 2; offsetdp++)
;  118:(    ASGN_1,          0 ,            ,  offsetdp)

; ITemplate_CLR1_4_TMP
	CLR            	(_FlashRdOffset_offsetdp_12) & 0X7F		; Bank 1
;  118:(     LABEL,    #L20628 ,            ,          )

; ITemplate_LABEL
#L20628
;  118:(    JGE_1U,   offsetdp ,          2 ,   #L20629)

; ITemplate_JGE1_4U
	MOVI           	0x2
	SUB            	(_FlashRdOffset_offsetdp_12) & 0X7F,	0x0		; Bank 1
	JBC            	PSW,	0x0
	GOTO           	#L20629
; 	{
#line 120	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		FRAH = (0x802F + offsetdp) >> 8;
;  120:(   CVUC_UI,   offsetdp ,            ,   #T20657)

; ITemplate_CVTMS_U
	CLR            	(_FlashRdOffset_#T20657_14+0x1) & 0X7F		; Bank 1
	MOV            	(_FlashRdOffset_offsetdp_12) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20657_14) & 0X7F		; Bank 1
;  120:(     ADD_2,    #T20657 ,      32815 ,   #T20658)

; ITemplate_ADD1_4
	MOV            	(_FlashRdOffset_#T20657_14) & 0X7F,	0x0		; Bank 1
	ADDI           	0x2f
	MOVA           	(_FlashRdOffset_#T20658_14) & 0X7F		; Bank 1
	MOV            	(_FlashRdOffset_#T20657_14+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	0x80
	MOVA           	(_FlashRdOffset_#T20658_14+0x1) & 0X7F		; Bank 1
;  120:(    RSH_2U,    #T20658 ,          8 ,      FRAH)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_FlashRdOffset_#T20658_14) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_FlashRdOffset_#T20658_14+0x1) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21271
#L21272
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21271
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21272
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_FRAH_0
#line 121	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		FRAL = (0x802F + offsetdp);
;  121:(     ADD_1,   offsetdp ,         47 ,      FRAL)

; ITemplate_ADD1_4
	MOVRA          	_FlashRdOffset_offsetdp_12		; Bank 1
	ADDI           	0x2f
	MOVA           	_FRAL_0
#line 122	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		DATARDTRG = 1;
;  122:(    ASGN_0,          1 ,            , DATARDTRG)

; ITemplate_SET_0_TMP
	BSS            	(_DATARDTRG_0)/8,	(_DATARDTRG_0)%8
#line 123	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		while(DATARDTRG) ;	//等待读完成
;  123:(     LABEL,    #L20679 ,            ,          )

; ITemplate_LABEL
#L20679
;  123:(     JNZ_0,  DATARDTRG ,            ,   #L20679)

; ITemplate_JNZ_0
	JBC            	(_DATARDTRG_0)/8,	(_DATARDTRG_0)%8
	GOTO           	#L20679
#line 124	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		__Asm TBR;		//查表读指令
; ITemplate_LABEL
;-----------Embedded Asm--------------
	TBR
;-------------------------------------
#line 125	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		ptr[offsetdp] = (ROMDH<<8) | ROMDL;
;  125:(   CVUC_SI,   offsetdp ,            ,   #T20696)

; ITemplate_CVTMS_U
	SECTION        	0x1
	CLR            	(_FlashRdOffset_#T20696_14+0x1) & 0X7F		; Bank 1
	MOV            	(_FlashRdOffset_offsetdp_12) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20696_14) & 0X7F		; Bank 1
;  125:(    LSH_2S,    #T20696 ,          1 ,   #T20698)

; ITemplate_LSH1_4_1
	BCC            	PSW,	0x0
	RL             	(_FlashRdOffset_#T20696_14) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20698_14) & 0X7F		; Bank 1
	RL             	(_FlashRdOffset_#T20696_14+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20698_14+0x1) & 0X7F		; Bank 1
;  125:(     ADD_2,    #T20698 ,        ptr ,   #T20699)

; ITemplate_ADD1_4
	MOV            	(_FlashRdOffset_#T20698_14) & 0X7F,	0x0		; Bank 1
	ADD            	(_FlashRdOffsetDATA+0X0) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20699_14) & 0X7F		; Bank 1
	MOV            	(_FlashRdOffset_#T20698_14+0x1) & 0X7F,	0x0		; Bank 1
	ADDC           	(_FlashRdOffsetDATA+0X0+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20699_14+0x1) & 0X7F		; Bank 1
;  125:(   CVUC_SI,      ROMDH ,            ,   #T20708)

; ITemplate_CVTMS_U
	CLR            	(_FlashRdOffset_#T20708_14+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDH_0,	0x0
	MOVA           	(_FlashRdOffset_#T20708_14) & 0X7F		; Bank 1
;  125:(    LSH_2S,    #T20708 ,          8 ,   #T20709)

; ITemplate_LSH1_4_8
	MOV            	(_FlashRdOffset_#T20708_14) & 0X7F,	0x0		; Bank 1
	MOVA           	(_FlashRdOffset_#T20709_14+0x1) & 0X7F		; Bank 1
	CLR            	(_FlashRdOffset_#T20709_14) & 0X7F		; Bank 1
;  125:(   CVUC_SI,      ROMDL ,            ,   #T20712)

; ITemplate_CVTMS_U
	CLR            	(_FlashRdOffset_#T20712_14+0x1) & 0X7F		; Bank 1
	MOV            	_ROMDL_0,	0x0
	MOVA           	(_FlashRdOffset_#T20712_14) & 0X7F		; Bank 1
;  125:(     BOR_2,    #T20709 ,    #T20712 ,  *#T20699)

; ITemplate_BOR1_4
; ITemplate_SetFSR
	MOV            	(_FlashRdOffset_#T20699_14+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_FlashRdOffset_#T20699_14) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	(_FlashRdOffset_#T20712_14) & 0X7F,	0x0		; Bank 1
	IOR            	(_FlashRdOffset_#T20709_14) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
	MOV            	(_FlashRdOffset_#T20712_14+0x1) & 0X7F,	0x0		; Bank 1
	IOR            	(_FlashRdOffset_#T20709_14+0x1) & 0X7F,	0x0		; Bank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
;  118:(     ADD_1,   offsetdp ,          1 ,  offsetdp)

; ITemplate_INC_1_TMP
	INC            	(_FlashRdOffset_offsetdp_12) & 0X7F		; Bank 1
#line 126	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	}	
;  126:(       JMP,            ,            ,   #L20628)

; ITemplate_JMP
	GOTO           	#L20628
;  126:(     LABEL,    #L20629 ,            ,          )

; ITemplate_LABEL
#L20629
#line 127	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ROMCL = 0x00;       //退出IAP
;  127:(    ASGN_1,          0 ,            ,     ROMCL)

; ITemplate_CLR1_4_TMP
	CLR            	_ROMCL_0
#line 128	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	GIE = gie_bk;            //恢复全局中断
;  128:(    CVUC_B,     gie_bk ,            ,   #T20742)

; ITemplate_CVUC_B
	SECTION        	0x0
	BCC            	((_FlashRdOffset_#T20742_12)/8) & 0X7F,	(_FlashRdOffset_#T20742_12)%8		; Bank 0
	SECTION        	0x1
	JBS            	(_FlashRdOffset_gie_bk_12) & 0X7F,	0x0		; Bank 1
	GOTO           	#L21273
	SECTION        	0x0
	BSS            	((_FlashRdOffset_#T20742_12)/8) & 0X7F,	(_FlashRdOffset_#T20742_12)%8		; Bank 0
#L21273
;  128:(    ASGN_0,    #T20742 ,            ,       GIE)

; ITemplate_ASGN_0_P
	SECTION        	0x0
	JBC            	((_FlashRdOffset_#T20742_12)/8) & 0X7F,	(_FlashRdOffset_#T20742_12)%8		; Bank 0
	GOTO           	#L21274
	BCC            	(_GIE_0)/8,	(_GIE_0)%8
	GOTO           	#L21275
#L21274
	BSS            	(_GIE_0)/8,	(_GIE_0)%8
#L21275
#line 129	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; }
;  129:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	main,0X3,0X0,GPIOInit,FlashRdOffset,ADC_convert,UART_send

SECTION1main	UNINTIAL       	0		; Bank 0
	ORG            	0X97		; Bank 0
_mainDATA	RSEG           	0X8		; Bank 0
main#	CSEG           
_main
; /**********************************************
; 函数名：main()
; 描  述：主函数,选择AIN7通道，测量值经UART传送到上位机
; 输入值：无
; 输出值：无
; 返回值：无
; **********************************************/
; void main(void) 
; {
#line 140	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     uint i = 800;         //延时变量
	CLR            	BKSR
;  140:(    ASGN_2,        800 ,            ,         i)

; ITemplate_ASGN1_4_R
	MOVI           	0x3
	SECTION        	0x1
	MOVA           	(_main_i_16+0x1) & 0X7F		; Bank 1
	MOVI           	0x20
	MOVA           	(_main_i_16) & 0X7F		; Bank 1
;     uint j = 2010;        //延时变量
; 	uchar vdd_flag = 0;   //参考是否选择VDD标志
; //    RAMclear();
#line 145	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 146	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	GPIOInit();
;  146:(      CALL, (GPIOInit.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_GPIOInit
	CALL           	_GPIOInit		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 148	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     FlashRdOffset(&offset_value);  //读内部2.048V参考和VDD参考校准值
;  148:(    PARA_2, (offset_value.0) ,            ,       ptr)

; ITemplate_PARA_1_4
	MOVI           	_offset_value
	MOVAR          	_FlashRdOffsetDATA+0X0		; Bank 1
	MOVI           	HIGH(_offset_value)
;  148:(      CALL, (FlashRdOffset.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_FlashRdOffset
	CALL           	_FlashRdOffset		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
; /****************初始化UART*******************/
#line 151	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PBT5 = 0;       //TX输出
;  151:(    ASGN_0,          0 ,            ,      PBT5)

; ITemplate_CLR_0_TMP
	BCC            	(_PBT5_0)/8,	(_PBT5_0)%8
#line 152	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PBT6 = 1;       //RX输入
;  152:(    ASGN_0,          1 ,            ,      PBT6)

; ITemplate_SET_0_TMP
	BSS            	(_PBT6_0)/8,	(_PBT6_0)%8
#line 153	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     TX1LEN = 0;     //8位数据发送格式
;  153:(    ASGN_0,          0 ,            ,    TX1LEN)

; ITemplate_CLR_0_TMP
	BSS            	BKSR,	0x4
	BCC            	(_TX1LEN_0#sh)/8,	(_TX1LEN_0#sh)%8		; ShBank 1
#line 154	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     BRGH1 = 0;      //波特率低速模式：波特率=Fosc/(64*(BRR<7:0>+1))
;  154:(    ASGN_0,          0 ,            ,     BRGH1)

; ITemplate_CLR_0_TMP
	BCC            	(_BRGH1_0#sh)/8,	(_BRGH1_0#sh)%8		; ShBank 1
#line 155	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     BR1R = 25;      //波特率=16MHz/(64*26)≈9600bps
;  155:(    ASGN_1,         25 ,            ,      BR1R)

; ITemplate_ASGN1_4_R
	MOVI           	0x19
	MOVA           	_BR1R_0#sh		; ShBank 1
;      
; /****************初始化ADC********************/
; #ifdef VDDVREF
;     vdd_flag = 1;       //参考选VDD
#line 160	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ANSL7 = 0;          //选择AIN7为模拟口
;  160:(    ASGN_0,          0 ,            ,     ANSL7)

; ITemplate_CLR_0_TMP
	BCC            	(_ANSL7_0)/8,	(_ANSL7_0)%8
#line 161	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADCCL |= 0xF0;      //ADCCL<7:4>选择通道
;  161:(     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 162	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADCCL &= 0x7F;      //选择通道7
;  162:(   ASGN_B$,          0 ,          7 ,     ADCCL)

; ITemplate_CLR_B1_TMP
	BCC            	_ADCCL_0#sh,	0x7		; ShBank 0
#line 163	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 	ADCCM = 0x4B;       //参考源VDD,VSS，12位
;  163:(    ASGN_1,         75 ,            ,     ADCCM)

; ITemplate_ASGN1_4_R
	MOVI           	0x4b
	MOVA           	_ADCCM_0#sh		; ShBank 0
#line 164	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADCCH = 0xCA;       //低位对齐;时钟周期FOSC/16
;  164:(    ASGN_1,        202 ,            ,     ADCCH)

; ITemplate_ASGN1_4_R
	MOVI           	0xca
	MOVA           	_ADCCH_0#sh		; ShBank 0
; #else
;     vdd_flag = 0;       //参考选内部2.048V
;     ANSL7 = 0;          //选择AIN7为模拟口
;     ADCCL |= 0xF0;      //ADCCL<7:4>选择通道
;     ADCCL &= 0x7F;      //选择通道7
; 	ADCCM = 0x6B;       //参考源内部2.048V,VSS，12位
;     ADCCH = 0xC8;       //低位对齐;时钟周期FOSC/16
;     VREFEN = 1;         //参考电压模块使能
; 	while(j--);         //等待200us
; 	VREF_CHOPEN = 1;    //参考电压斩波器使能
; #endif
;     
#line 177	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     PAT7 = 1;
;  177:(    ASGN_0,          1 ,            ,      PAT7)

; ITemplate_SET_0_TMP
	BSS            	(_PAT7_0)/8,	(_PAT7_0)%8
#line 178	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     SMPS = 1;           //硬件控制采样，ADTRG=1时启动AD采样转换
;  178:(    ASGN_0,          1 ,            ,      SMPS)

; ITemplate_SET_0_TMP
	BSS            	(_SMPS_0#sh)/8,	(_SMPS_0#sh)%8		; ShBank 0
#line 179	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADEN = 1;           //使能ADC模块
;  179:(    ASGN_0,          1 ,            ,      ADEN)

; ITemplate_SET_0_TMP
	BSS            	(_ADEN_0#sh)/8,	(_ADEN_0#sh)%8		; ShBank 0
#line 180	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     while(i--);         //使能AD，建议在第一次转换之前延时80us以上
;  180:(     LABEL,    #L20846 ,            ,          )

; ITemplate_LABEL
#L20846
;  180:(    ASGN_2,          i ,            ,   #T20851)

; ITemplate_ASGN1_4_R
	SECTION        	0x1
	MOV            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20851_16+0x1) & 0X7F		; Bank 1
	MOV            	(_main_i_16) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20851_16) & 0X7F		; Bank 1
;  180:(     SUB_2,          i ,          1 ,         i)

; ITemplate_DEC_2_TMP
	MOV            	(_main_i_16) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21276
	DEC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21276
	DEC            	(_main_i_16) & 0X7F		; Bank 1
;  180:(     JNZ_2,    #T20851 ,            ,   #L20846)

; ITemplate_JNZ1_4
	MOV            	(_main_#T20851_16) & 0X7F,	0x0		; Bank 1
	IOR            	(_main_#T20851_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20846
#line 182	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     ADC_convert();      //首次转换值不准确，丢弃
;  182:(      CALL, (ADC_convert.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_ADC_convert
	CALL           	_ADC_convert		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 184	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     while(1)
;  184:(     LABEL,    #L20868 ,            ,          )

; ITemplate_LABEL
#L20868
;     {
#line 186	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		adc_value = ADC_convert();
;  186:(     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
; 		if(vdd_flag == 1)                            //参考选VDD，则减去8030H处的offset
; 		{
#line 190	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 			if((offset_value[1]>>8) != (~(offset_value[1]) & 0x00FF)) //判断offset是否高低八位取反，否则offset无效
;  190:(    BCOM_2, *(offset_value.2) ,            ,   #T20925)

; ITemplate_BCOM1_4
	SECTION        	0x1
	COM            	(_offset_value+0x2) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20925_19) & 0X7F		; Bank 1
	COM            	(_offset_value+0x3) & 0X7F,	0x0		; Bank 1
	MOVA           	(_main_#T20925_19+0x1) & 0X7F		; Bank 1
;  190:(    RSH_2U, *(offset_value.2) ,          8 ,   #T20929)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVAR          	?_TMP		; Bank 0
	MOV            	(_offset_value+0x2) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x1		; Bank 0
	MOV            	(_offset_value+0x3) & 0X7F,	0x0		; Bank 1
	MOVAR          	?_TMP+0x2		; Bank 0
	MOVRA          	?_TMP		; Bank 0
	GOTO           	#L21277
#L21278
	BCC            	PSW,	0x0
	SECTION        	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L21277
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L21278
	SECTION        	0x0
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVAR          	_main_#T20929_19		; Bank 1
	MOV            	(?_TMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVAR          	_main_#T20929_19+0x1		; Bank 1
;  190:(    BAND_2,        255 ,    #T20925 ,   #T20930)

; ITemplate_BAND1_4
	MOVRA          	_main_#T20925_19		; Bank 1
	ANDI           	0xff
	MOVAR          	_main_#T20930_19		; Bank 1
	MOVRA          	_main_#T20925_19+0x1		; Bank 1
	ANDI           	0x0
	MOVAR          	_main_#T20930_19+0x1		; Bank 1
;  190:(     JEQ_2,    #T20929 ,    #T20930 ,   #L20891)

; ITemplate_JEQ1_4
	MOVRA          	_main_#T20930_19		; Bank 1
	SECTION        	0x1
	XOR            	(_main_#T20929_19) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21279
	MOV            	(_main_#T20930_19+0x1) & 0X7F,	0x0		; Bank 1
	XOR            	(_main_#T20929_19+0x1) & 0X7F,	0x0		; Bank 1
	JBC            	PSW,	0x2
	GOTO           	#L20891
#L21279
#line 191	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 			    offset_value[1] = 0;
;  191:(    ASGN_2,          0 ,            ,*(offset_value.2))

; ITemplate_ASGN1_4
	MOVI           	0x0
	MOVA           	(_offset_value+0x2) & 0X7F		; Bank 1
	MOVI           	0x0
	MOVA           	(_offset_value+0x3) & 0X7F		; Bank 1
;  191:(     LABEL,    #L20891 ,            ,          )

; ITemplate_LABEL
#L20891
#line 193	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;             adc_value -= (offset_value[1] & 0x00FF);
;  193:(    BAND_2,        255 , *(offset_value.2) ,   #T20967)

; ITemplate_BAND1_4
	MOV            	(_offset_value+0x2) & 0X7F,	0x0		; Bank 1
	ANDI           	0xff
	MOVA           	(_main_#T20967_19) & 0X7F		; Bank 1
	MOV            	(_offset_value+0x3) & 0X7F,	0x0		; Bank 1
	ANDI           	0x0
	MOVA           	(_main_#T20967_19+0x1) & 0X7F		; Bank 1
;  193:(     SUB_2,  adc_value ,    #T20967 , adc_value)

; ITemplate_SUB1_4
	MOV            	(_main_#T20967_19) & 0X7F,	0x0		; Bank 1
	SUB            	(_adc_value) & 0X7F,	0x0		; Bank 1
	MOVA           	(_adc_value) & 0X7F		; Bank 1
	MOV            	(_main_#T20967_19+0x1) & 0X7F,	0x0		; Bank 1
	SUBC           	(_adc_value+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	(_adc_value+0x1) & 0X7F		; Bank 1
; 		}
; 		else                                         //参考选2.048V，则减去802FH处的offset
; 		{
; 			if((offset_value[0]>>8) != (~(offset_value[0]) & 0x00FF)) //判断offset是否高低八位取反，否则offset无效
; 			    offset_value[0] = 0;
;             adc_value -= (offset_value[0] & 0x00FF);
; 		}
#line 203	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ; 		TX1EN = 1;      //打开发送
;  203:(    ASGN_0,          1 ,            ,     TX1EN)

; ITemplate_SET_0_TMP
	BSS            	BKSR,	0x4
	BSS            	(_TX1EN_0#sh)/8,	(_TX1EN_0#sh)%8		; ShBank 1
#line 204	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         UART_send(str,7,adc_value);
;  204:(    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
;  204:(    PARA_1,          7 ,            ,        ch)

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

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

; ITemplate_CALL
	SEGMENTSEL     	_UART_send
	CALL           	_UART_send		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 205	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);        //延时
;  205:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  205:(     LABEL,    #L21065 ,            ,          )

; ITemplate_LABEL
#L21065
;  205:(    JGE_2U,          i ,      50000 ,   #L21066)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21280
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21280
	JBC            	PSW,	0x0
	GOTO           	#L21066
;  205:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21281
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21281
;  205:(       JMP,            ,            ,   #L21065)

; ITemplate_JMP
	GOTO           	#L21065
;  205:(     LABEL,    #L21066 ,            ,          )

; ITemplate_LABEL
#L21066
#line 206	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);
;  206:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  206:(     LABEL,    #L21098 ,            ,          )

; ITemplate_LABEL
#L21098
;  206:(    JGE_2U,          i ,      50000 ,   #L21099)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21282
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21282
	JBC            	PSW,	0x0
	GOTO           	#L21099
;  206:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21283
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21283
;  206:(       JMP,            ,            ,   #L21098)

; ITemplate_JMP
	GOTO           	#L21098
;  206:(     LABEL,    #L21099 ,            ,          )

; ITemplate_LABEL
#L21099
#line 207	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);
;  207:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  207:(     LABEL,    #L21131 ,            ,          )

; ITemplate_LABEL
#L21131
;  207:(    JGE_2U,          i ,      50000 ,   #L21132)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21284
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21284
	JBC            	PSW,	0x0
	GOTO           	#L21132
;  207:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21285
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21285
;  207:(       JMP,            ,            ,   #L21131)

; ITemplate_JMP
	GOTO           	#L21131
;  207:(     LABEL,    #L21132 ,            ,          )

; ITemplate_LABEL
#L21132
#line 208	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);
;  208:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  208:(     LABEL,    #L21164 ,            ,          )

; ITemplate_LABEL
#L21164
;  208:(    JGE_2U,          i ,      50000 ,   #L21165)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21286
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21286
	JBC            	PSW,	0x0
	GOTO           	#L21165
;  208:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21287
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21287
;  208:(       JMP,            ,            ,   #L21164)

; ITemplate_JMP
	GOTO           	#L21164
;  208:(     LABEL,    #L21165 ,            ,          )

; ITemplate_LABEL
#L21165
#line 209	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);
;  209:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  209:(     LABEL,    #L21197 ,            ,          )

; ITemplate_LABEL
#L21197
;  209:(    JGE_2U,          i ,      50000 ,   #L21198)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21288
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21288
	JBC            	PSW,	0x0
	GOTO           	#L21198
;  209:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21289
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21289
;  209:(       JMP,            ,            ,   #L21197)

; ITemplate_JMP
	GOTO           	#L21197
;  209:(     LABEL,    #L21198 ,            ,          )

; ITemplate_LABEL
#L21198
#line 210	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         for(i = 0;i<50000;i++);
;  210:(    ASGN_2,          0 ,            ,         i)

; ITemplate_CLR1_4_TMP
	CLR            	(_main_i_16) & 0X7F		; Bank 1
	CLR            	(_main_i_16+0x1) & 0X7F		; Bank 1
;  210:(     LABEL,    #L21230 ,            ,          )

; ITemplate_LABEL
#L21230
;  210:(    JGE_2U,          i ,      50000 ,   #L21231)

; ITemplate_JGE1_4U
	MOVI           	0xc3
	SUB            	(_main_i_16+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21290
	MOVI           	0x50
	SUB            	(_main_i_16) & 0X7F,	0x0		; Bank 1
#L21290
	JBC            	PSW,	0x0
	GOTO           	#L21231
;  210:(     ADD_2,          i ,          1 ,         i)

; ITemplate_INC_2_TMP
	INC            	(_main_i_16) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L21291
	INC            	(_main_i_16+0x1) & 0X7F		; Bank 1
#L21291
;  210:(       JMP,            ,            ,   #L21230)

; ITemplate_JMP
	GOTO           	#L21230
;  210:(     LABEL,    #L21231 ,            ,          )

; ITemplate_LABEL
#L21231
#line 211	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         TX1EN = 0;      //关闭发送
;  211:(    ASGN_0,          0 ,            ,     TX1EN)

; ITemplate_CLR_0_TMP
	BSS            	BKSR,	0x4
	BCC            	(_TX1EN_0#sh)/8,	(_TX1EN_0#sh)%8		; ShBank 1
#line 212	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;         CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 213	E:\lisq\public_lisq\ES7P\Examples_ES7P169C\ADC\adc_offset\adc.c ;     }
;  213:(       JMP,            ,            ,   #L20868)

; ITemplate_JMP
	GOTO           	#L20868

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

SECTION1IE__lisq_public_lisq_ES7P_Examples_ES7P169C_ADC_adc_offset_adc_c16	IDATA          		0X80		; 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

SECTION0E__lisq_public_lisq_ES7P_Examples_ES7P169C_ADC_adc_offset_adc_c_STATIC17	PSECT	FLAG=0x88
_FlashRdOffset_#T20742_12	RSEG           	0X1		; Bank 0

SECTION1E__lisq_public_lisq_ES7P_Examples_ES7P169C_ADC_adc_offset_adc_c_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0XA9		; Bank 0
_adc_value	RSEG           	0X2		; Bank 0
	ORG            	0XAB		; Bank 0
_offset_value	RSEG           	0X4		; Bank 0

SECTION8D__Program_Files__x86__iDesigner4_1_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
