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

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_t8nisr
	PUBLIC         	_i2c_sta
	PUBLIC         	_i2c_rxd
	PUBLIC         	_i2c_temp
	PUBLIC         	_uart_rxd
	PUBLIC         	_RAMclear
	PUBLIC         	_GPIOInit
	PUBLIC         	_isr0
	PUBLIC         	_isr3
	PUBLIC         	_isr6
	PUBLIC         	_isr7
	PUBLIC         	_main
_isr3_#T20462_10	EQU            	_isr3DATA + 0X0		; Bank 0
_isr3_#T20469_10	EQU            	_isr3DATA + 0X0		; Bank 0
_isr3_#T20492_10	EQU            	_isr3DATA + 0X0		; Bank 0
_isr3_#T20499_10	EQU            	_isr3DATA + 0X0		; Bank 0
_isr6_#T20525_14	EQU            	_isr6DATA + 0X0		; Bank 0
_isr6_#T20532_14	EQU            	_isr6DATA + 0X0		; Bank 0
_isr6_#T20551_15	EQU            	_isr6DATA + 0X0		; Bank 0
_isr6_#T20552_15	EQU            	_isr6DATA + 0X2		; Bank 0
_isr6_#T20573_15	EQU            	_isr6DATA + 0X0		; Bank 0
_isr6_#T20574_15	EQU            	_isr6DATA + 0X2		; Bank 0
_isr6_#T20615_14	EQU            	_isr6DATA + 0X0		; Bank 0
_isr6_#T20622_14	EQU            	_isr6DATA + 0X0		; Bank 0
_isr7_#T20654_18	EQU            	_isr7DATA + 0X0		; Bank 0
_isr7_#T20661_18	EQU            	_isr7DATA + 0X0		; Bank 0
#TMP	EQU            	?_TMP+ 0X0		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_T21EN_0#sh	EQU            	0X797		; Bank 0
_RX0LEN_0#sh	EQU            	0X686		; Bank 0
_RX0EN_0#sh	EQU            	0X687		; Bank 0
_BRGH0_0#sh	EQU            	0X695		; Bank 0
_TX0LEN_0#sh	EQU            	0X696		; Bank 0
_TX0EN_0#sh	EQU            	0X697		; Bank 0
_I2CEN_0#sh	EQU            	0X6D0		; Bank 0
_I2CSRIE_0#sh	EQU            	0X6F0		; Bank 0
_I2CRBIE_0#sh	EQU            	0X6F3		; Bank 0
_I2CSRIF_0#sh	EQU            	0X6F8		; Bank 0
_I2CRBIF_0#sh	EQU            	0X6FB		; Bank 0
_T21PL_0#sh	EQU            	0XEC		; Bank 0
_T21PH_0#sh	EQU            	0XED		; Bank 0
_T21CL_0#sh	EQU            	0XF0		; Bank 0
_T21CM_0#sh	EQU            	0XF1		; Bank 0
_T21CH_0#sh	EQU            	0XF2		; Bank 0
_RX0B_0#sh	EQU            	0XCF		; Bank 0
_TX0B_0#sh	EQU            	0XD1		; Bank 0
_BR0R_0#sh	EQU            	0XD3		; Bank 0
_I2CC_0#sh	EQU            	0XDA		; Bank 0
_I2CSA_0#sh	EQU            	0XDB		; Bank 0
_I2CTB_0#sh	EQU            	0XDC		; Bank 0
_I2CRB_0#sh	EQU            	0XDD		; Bank 0
_I2CIFC_0#sh	EQU            	0XDF		; 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          	RAMclear,0X0,0X0
RAMclear#	CSEG           
_RAMclear
; /*******************************************************
; *Copyright(C),2020,Shanghai Eastsoft Microelectronics Co.,Ltd.
; *文件名：vector.c
; *作  者：AE Team
; *版  本：v1.0，编译于iDesigner(v4.2.3.166) + 工具链HRCC(v1.2.0.106)
; *日  期：2020/07/10
; *描  述：使用向量中断模式前，需在配置字界面选择->向量中断模式，且需右键工程->属性->编译->Support interrupt vectors->True        
;         设置完成后切记保存设置；依据INTV<1:0>和INTP寄存器配置，优先响应高优先级中断。高优先级中断可以嵌套响应低优先级中断，
;         同属高(或低)优先级中断之间不能嵌套响应
; *备  注：本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
; *******************************************************/
; #include <hic.h>
; #define SLAVE_ADDR  0x2D            //宏定义IIC从机地址
; #define I2C_RLENGTH 64
; #define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
; unsigned char t8nisr;        //T8N中断计次标志
; unsigned char i2c_sta,i2c_rxd[I2C_RLENGTH],i2c_temp;      //I2C启动/重启动状态
; unsigned char uart_rxd;
; /******************************************************
; 函数名：void RAMclear(void)
; 描  述：RAM区数据清零，RAM区地址0x0000~0x03FF
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void RAMclear(void)
; {
#line 31	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     for (IAAH=0; IAAH<=0x03; IAAH++)
	CLR            	BKSR
;   31:(    ASGN_1,          0 ,            ,      IAAH)

; ITemplate_CLR1_4_TMP
	CLR            	_IAAH_0
;   31:(     LABEL,    #L20270 ,            ,          )

; ITemplate_LABEL
#L20270
;   31:(    JGT_1U,       IAAH ,          3 ,   #L20347)

; ITemplate_JGT1_4U
	MOV            	_IAAH_0,	0x0
	SUBI           	0x3
	JBS            	PSW,	0x0
	GOTO           	#L20347
;     {
#line 33	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         for (IAAL=0; IAAL<0xFF; IAAL++)
;   33:(    ASGN_1,          0 ,            ,      IAAL)

; ITemplate_CLR1_4_TMP
	CLR            	_IAAL_0
;   33:(     LABEL,    #L20287 ,            ,          )

; ITemplate_LABEL
#L20287
;   33:(    JGE_1U,       IAAL ,        255 ,   #L20288)

; ITemplate_JGE1_4U
	MOVI           	0xff
	SUB            	_IAAL_0,	0x0
	JBC            	PSW,	0x0
	GOTO           	#L20288
#line 34	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;             IAD = 0x00;
;   34:(    ASGN_1,          0 ,            ,       IAD)

; ITemplate_CLR1_4_TMP
	CLR            	_IAD_0
;   33:(     ADD_1,       IAAL ,          1 ,      IAAL)

; ITemplate_INC_1_TMP
	INC            	_IAAL_0
;   34:(       JMP,            ,            ,   #L20287)

; ITemplate_JMP
	GOTO           	#L20287
;   34:(     LABEL,    #L20288 ,            ,          )

; ITemplate_LABEL
#L20288
#line 35	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         IAD = 0x00;
;   35:(    ASGN_1,          0 ,            ,       IAD)

; ITemplate_CLR1_4_TMP
	CLR            	_IAD_0
;   31:(     ADD_1,       IAAH ,          1 ,      IAAH)

; ITemplate_INC_1_TMP
	INC            	_IAAH_0
#line 36	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }
;   36:(       JMP,            ,            ,   #L20270)

; ITemplate_JMP
	GOTO           	#L20270
#line 37	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; }
;   37:(     LABEL,    #L20347 ,            ,          )

; ITemplate_LABEL
#L20347
;   37:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	GPIOInit,0X0,0X0
GPIOInit#	CSEG           
_GPIOInit
; /******************************************************
; 函数名：void GPIOInit(void)
; 描  述：首先初始化所有未用到的IO口为输出低电平
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void GPIOInit(void)
; {
#line 48	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     ANSL = 0xFF;        //选择对应端口为数字IO功能
	CLR            	BKSR
;   48:(    ASGN_1,        255 ,            ,      ANSL)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSL_0
#line 49	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; 	ANSH = 0xFF;
;   49:(    ASGN_1,        255 ,            ,      ANSH)

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSH_0
#line 50	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PAT = 0x00;         //所有IO设为输出低电平
;   50:(    ASGN_1,          0 ,            ,       PAT)

; ITemplate_CLR1_4_TMP
	CLR            	_PAT_0
#line 51	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PBT = 0x00;
;   51:(    ASGN_1,          0 ,            ,       PBT)

; ITemplate_CLR1_4_TMP
	CLR            	_PBT_0
#line 52	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PCT = 0x00;
;   52:(    ASGN_1,          0 ,            ,       PCT)

; ITemplate_CLR1_4_TMP
	CLR            	_PCT_0
#line 53	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PA = 0x00;
;   53:(    ASGN_1,          0 ,            ,        PA)

; ITemplate_CLR1_4_TMP
	CLR            	_PA_0
#line 54	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PB = 0x00;
;   54:(    ASGN_1,          0 ,            ,        PB)

; ITemplate_CLR1_4_TMP
	CLR            	_PB_0
#line 55	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PC = 0x00;
;   55:(    ASGN_1,          0 ,            ,        PC)

; ITemplate_CLR1_4_TMP
	CLR            	_PC_0
#line 56	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; } 
;   56:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	##isr0,0X0,0X0
; interrupt fun entry
INT_ENTRY_L_0X24	CSEG           	0X24
	PUSH           	
	SEGMENTSEL     	_INT_ENTRY_0X24
	GOTO           	_INT_ENTRY_0X24
isr0#	CSEG           
#INCLUDE       	<LIB_INT1.inc>
; ITemplate_InterruptVecHead
_INT_ENTRY_0X24
	SEGMENTSEL     	$
	CLR            	BKSR
	MOV            	IAAL,	0x0
	MOVA           	(SAVED_FSR) & 0X7F		; Bank 0
	MOV            	IAAH,	0x0
	MOVA           	(SAVED_FSR+0x1) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT+0x1) & 0X7F		; Bank 0
_isr0
; /*******************************************************
; 函数名：void isrx(void) interrupt
; 描  述：向量中断服务程序，isrx对应IGx
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void isr0(void) interrupt_low 0x24        //IG0(T8N)1s定时中断
; {
#line 67	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8N = 6;          //赋计数器初值
;   67:(    ASGN_1,          6 ,            ,       T8N)

; ITemplate_ASGN1_4_R
	MOVI           	0x6
	MOVA           	_T8N_0
#line 68	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     t8nisr++;
;   68:(     ADD_1,     t8nisr ,          1 ,    t8nisr)

; ITemplate_INC_1_TMP
	SECTION        	0x1
	INC            	(_t8nisr) & 0X7F		; Bank 1
#line 69	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (t8nisr >= 250)      //1s计时
;   69:(    JLT_1U,     t8nisr ,        250 ,   #L20423)

; ITemplate_JLT1_4U
	MOVI           	0xfa
	SUB            	(_t8nisr) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x0
	GOTO           	#L20423
;     {
#line 71	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         t8nisr = 0;
;   71:(    ASGN_1,          0 ,            ,    t8nisr)

; ITemplate_CLR1_4_TMP
	CLR            	(_t8nisr) & 0X7F		; Bank 1
#line 72	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         PA4 = ~PA4;
;   72:(    BCOM_0,        PA4 ,            ,       PA4)

; ITemplate_BCOM_0
	BTT            	(_PA4_0)/8,	(_PA4_0)%8
#line 73	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }   
;   73:(     LABEL,    #L20423 ,            ,          )

; ITemplate_LABEL
#L20423
#line 74	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8NIF = 0;        //清标志位 
;   74:(    ASGN_0,          0 ,            ,     T8NIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T8NIF_0)/8,	(_T8NIF_0)%8
#line 75	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; }
;   75:(     RET_I,            ,            ,          )

; ITemplate_RET_I
	SECTION        	0x0
	GOTO           	_INT_RESTORE_0X24		; Bank 0		; ShBank 0
; interrupt fun restore
; ITemplate_InterruptVecTail
_INT_RESTORE_0X24
	MOV            	(MUL_TEMP_INT) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP) & 0X7F		; Bank 0
	MOVA           	MULA
	MOV            	(MUL_TEMP_INT+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x1) & 0X7F		; Bank 0
	MOVA           	MULB
	MOV            	(SAVED_FSR+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAH
	MOV            	(SAVED_FSR) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAL
	POP            	
	RETIE          	
#INCLUDE       	<LIB_RESTORE.inc>
	_DESC          	##isr3,0X0,0X0

SECTION1isr3	UNINTIAL       	0		; Bank 0
	ORG            	0X80		; Bank 0
_isr3DATA	RSEG           	0X1		; Bank 0
; interrupt fun entry
INT_ENTRY_H_0X18	CSEG           	0X18
	PUSH           	
	SEGMENTSEL     	_INT_ENTRY_0X18
	GOTO           	_INT_ENTRY_0X18
isr3#	CSEG           
#INCLUDE       	<LIB_INT2.inc>
; ITemplate_InterruptVecHead
_INT_ENTRY_0X18
	SEGMENTSEL     	$
	CLR            	BKSR
	MOV            	IAAL,	0x0
	MOVA           	(SAVED_FSR) & 0X7F		; Bank 0
	MOV            	IAAH,	0x0
	MOVA           	(SAVED_FSR+0x1) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT+0x1) & 0X7F		; Bank 0
_isr3
; void isr3(void) interrupt_high 0x18        //IG3(UART)中断
; {
#line 79	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (RX0IE==1 && RX0IF==1)     //UART接收中断，接收数据返回
;   79:(    CVB_SC,      RX0IE ,            ,   #T20462)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_RX0IE_0)/8,	(_RX0IE_0)%8
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_isr3_#T20462_10) & 0X7F		; Bank 1
;   79:(    JNEQ_1,          1 ,    #T20462 ,   #L20456)

; ITemplate_JNEQ1_4
	MOV            	(_isr3_#T20462_10) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20456
;   79:(    CVB_SC,      RX0IF ,            ,   #T20469)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_RX0IF_0)/8,	(_RX0IF_0)%8
	MOVI           	0x1
	MOVA           	(_isr3_#T20469_10) & 0X7F		; Bank 1
;   79:(    JNEQ_1,          1 ,    #T20469 ,   #L20456)

; ITemplate_JNEQ1_4
	MOV            	(_isr3_#T20469_10) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20456
;     {
#line 81	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         uart_rxd = RX0B;
;   81:(    ASGN_1,       RX0B ,            ,  uart_rxd)

; ITemplate_ASGN1_4_R
	BSS            	BKSR,	0x4
	MOV            	_RX0B_0#sh,	0x0		; ShBank 1
	MOVA           	(_uart_rxd) & 0X7F		; Bank 1
#line 82	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         TX0B = uart_rxd;
;   82:(    ASGN_1,   uart_rxd ,            ,      TX0B)

; ITemplate_ASGN1_4_R
	MOV            	(_uart_rxd) & 0X7F,	0x0		; Bank 1
	MOVA           	_TX0B_0#sh		; ShBank 1
#line 83	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }
;   83:(     LABEL,    #L20456 ,            ,          )

; ITemplate_LABEL
#L20456
#line 84	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (TX0IE==1 && TX0IF==1)     //UART发送中断，自行处理
;   84:(    CVB_SC,      TX0IE ,            ,   #T20492)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_TX0IE_0)/8,	(_TX0IE_0)%8
	MOVI           	0x1
	MOVA           	(_isr3_#T20492_10) & 0X7F		; Bank 1
;   84:(    JNEQ_1,          1 ,    #T20492 ,   #L20514)

; ITemplate_JNEQ1_4
	MOV            	(_isr3_#T20492_10) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20514
;   84:(    CVB_SC,      TX0IF ,            ,   #T20499)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_TX0IF_0)/8,	(_TX0IF_0)%8
	MOVI           	0x1
	MOVA           	(_isr3_#T20499_10) & 0X7F		; Bank 1
;   84:(    JNEQ_1,          1 ,    #T20499 ,   #L20514)

; ITemplate_JNEQ1_4
	MOV            	(_isr3_#T20499_10) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20514
;     {
#line 86	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         TX0B = 0x5A;     //示例
;   86:(    ASGN_1,         90 ,            ,      TX0B)

; ITemplate_ASGN1_4_R
	MOVI           	0x5a
	BSS            	BKSR,	0x4
	MOVA           	_TX0B_0#sh		; ShBank 1
#line 87	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         TX0IE = 0;       //示例
;   87:(    ASGN_0,          0 ,            ,     TX0IE)

; ITemplate_CLR_0_TMP
	BCC            	(_TX0IE_0)/8,	(_TX0IE_0)%8
;     }
#line 89	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; }
;   89:(     LABEL,    #L20514 ,            ,          )

; ITemplate_LABEL
#L20514
;   89:(     RET_I,            ,            ,          )

; ITemplate_RET_I
	SECTION        	0x0
	BCC            	BKSR,	0x4
	GOTO           	_INT_RESTORE_0X18		; Bank 0		; ShBank 0
; interrupt fun restore
; ITemplate_InterruptVecTail
_INT_RESTORE_0X18
	MOV            	(MUL_TEMP_INT) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP) & 0X7F		; Bank 0
	MOVA           	MULA
	MOV            	(MUL_TEMP_INT+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x1) & 0X7F		; Bank 0
	MOVA           	MULB
	MOV            	(SAVED_FSR+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAH
	MOV            	(SAVED_FSR) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAL
	POP            	
	RETIE          	
#INCLUDE       	<LIB_RESTORE.inc>
	_DESC          	##isr6,0X1,0X0

SECTION1isr6	UNINTIAL       	0		; Bank 0
	ORG            	0X80		; Bank 0
_isr6DATA	RSEG           	0X4		; Bank 0
; interrupt fun entry
INT_ENTRY_H_0XC	CSEG           	0XC
	PUSH           	
	SEGMENTSEL     	_INT_ENTRY_0XC
	GOTO           	_INT_ENTRY_0XC
isr6#	CSEG           
#INCLUDE       	<LIB_INT2.inc>
; ITemplate_InterruptVecHead
_INT_ENTRY_0XC
	SEGMENTSEL     	$
	CLR            	BKSR
	MOV            	IAAL,	0x0
	MOVA           	(SAVED_FSR) & 0X7F		; Bank 0
	MOV            	IAAH,	0x0
	MOVA           	(SAVED_FSR+0x1) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT+0x1) & 0X7F		; Bank 0
_isr6
; void isr6(void) interrupt_high 0x0C        //IG6(I2C)中断
; {
#line 93	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (I2CRBIE==1 && I2CRBIF==1)          //I2C接收中断
;   93:(    CVB_SC,    I2CRBIE ,            ,   #T20525)

; ITemplate_CVB_UC
	MOVI           	0x0
	BSS            	BKSR,	0x4
	JBC            	(_I2CRBIE_0#sh)/8,	(_I2CRBIE_0#sh)%8		; ShBank 1
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_isr6_#T20525_14) & 0X7F		; Bank 1
;   93:(    JNEQ_1,          1 ,    #T20525 ,   #L20519)

; ITemplate_JNEQ1_4
	MOV            	(_isr6_#T20525_14) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20519
;   93:(    CVB_SC,    I2CRBIF ,            ,   #T20532)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_I2CRBIF_0#sh)/8,	(_I2CRBIF_0#sh)%8		; ShBank 1
	MOVI           	0x1
	MOVA           	(_isr6_#T20532_14) & 0X7F		; Bank 1
;   93:(    JNEQ_1,          1 ,    #T20532 ,   #L20519)

; ITemplate_JNEQ1_4
	MOV            	(_isr6_#T20532_14) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20519
;     {
#line 95	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         i2c_rxd[i2c_temp] = I2CRB;        //I2C接收数据返回
;   95:(   CVUC_UI,   i2c_temp ,            ,   #T20551)

; ITemplate_CVTMS_U
	CLR            	(_isr6_#T20551_15+0x1) & 0X7F		; Bank 1
	MOV            	(_i2c_temp) & 0X7F,	0x0		; Bank 1
	MOVA           	(_isr6_#T20551_15) & 0X7F		; Bank 1
;   95:(     ADD_2,    #T20551 , (i2c_rxd.0) ,   #T20552)

; ITemplate_ADD1_4
	MOV            	(_isr6_#T20551_15) & 0X7F,	0x0		; Bank 1
	ADDI           	_i2c_rxd
	MOVA           	(_isr6_#T20552_15) & 0X7F		; Bank 1
	MOV            	(_isr6_#T20551_15+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	HIGH(_i2c_rxd)
	MOVA           	(_isr6_#T20552_15+0x1) & 0X7F		; Bank 1
;   95:(    ASGN_1,      I2CRB ,            ,  *#T20552)

; ITemplate_ASGN1_4
; ITemplate_SetFSR
	MOV            	(_isr6_#T20552_15+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_isr6_#T20552_15) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	_I2CRB_0#sh,	0x0		; ShBank 1
; ITemplate_SetINDF
	MOVA           	IAD
	ISTEP          	0x1
#line 96	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         I2CTB = i2c_rxd[i2c_temp];
;   96:(   CVUC_UI,   i2c_temp ,            ,   #T20573)

; ITemplate_CVTMS_U
	CLR            	(_isr6_#T20573_15+0x1) & 0X7F		; Bank 1
	MOV            	(_i2c_temp) & 0X7F,	0x0		; Bank 1
	MOVA           	(_isr6_#T20573_15) & 0X7F		; Bank 1
;   96:(     ADD_2,    #T20573 , (i2c_rxd.0) ,   #T20574)

; ITemplate_ADD1_4
	MOV            	(_isr6_#T20573_15) & 0X7F,	0x0		; Bank 1
	ADDI           	_i2c_rxd
	MOVA           	(_isr6_#T20574_15) & 0X7F		; Bank 1
	MOV            	(_isr6_#T20573_15+0x1) & 0X7F,	0x0		; Bank 1
	ADDCI          	HIGH(_i2c_rxd)
	MOVA           	(_isr6_#T20574_15+0x1) & 0X7F		; Bank 1
;   96:(    ASGN_1,   *#T20574 ,            ,     I2CTB)

; ITemplate_GetRamRef
	MOV            	(_isr6_#T20574_15+0x1) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAH
	MOV            	(_isr6_#T20574_15) & 0X7F,	0x0		; Bank 1
	MOVA           	IAAL
	MOV            	IAD,	0x0
	MOVAR          	?_TMP		; Bank 0
; ITemplate_ASGN1_4
	MOVRA          	?_TMP		; Bank 0
	MOVA           	_I2CTB_0#sh		; ShBank 1
#line 97	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         i2c_temp++;
;   97:(     ADD_1,   i2c_temp ,          1 ,  i2c_temp)

; ITemplate_INC_1_TMP
	INC            	(_i2c_temp) & 0X7F		; Bank 1
#line 98	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         if (i2c_temp > I2C_RLENGTH)
;   98:(    JLE_1U,   i2c_temp ,         64 ,   #L20519)

; ITemplate_JLE1_4U
	MOV            	(_i2c_temp) & 0X7F,	0x0		; Bank 1
	SUBI           	0x40
	JBC            	PSW,	0x0
	GOTO           	#L20519
#line 99	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;             i2c_temp = 0;
;   99:(    ASGN_1,          0 ,            ,  i2c_temp)

; ITemplate_CLR1_4_TMP
	CLR            	(_i2c_temp) & 0X7F		; Bank 1
#line 100	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }
;  100:(     LABEL,    #L20519 ,            ,          )

; ITemplate_LABEL
#L20519
#line 101	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (I2CSRIE==1 && I2CSRIF==1)       //I2C接收“起始位+从机地址匹配+发送应答位”中断
;  101:(    CVB_SC,    I2CSRIE ,            ,   #T20615)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_I2CSRIE_0#sh)/8,	(_I2CSRIE_0#sh)%8		; ShBank 1
	MOVI           	0x1
	MOVA           	(_isr6_#T20615_14) & 0X7F		; Bank 1
;  101:(    JNEQ_1,          1 ,    #T20615 ,   #L20609)

; ITemplate_JNEQ1_4
	MOV            	(_isr6_#T20615_14) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20609
;  101:(    CVB_SC,    I2CSRIF ,            ,   #T20622)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_I2CSRIF_0#sh)/8,	(_I2CSRIF_0#sh)%8		; ShBank 1
	MOVI           	0x1
	MOVA           	(_isr6_#T20622_14) & 0X7F		; Bank 1
;  101:(    JNEQ_1,          1 ,    #T20622 ,   #L20609)

; ITemplate_JNEQ1_4
	MOV            	(_isr6_#T20622_14) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20609
;     {
#line 103	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         i2c_sta = 1;        //I2C启动/重启动状态
;  103:(    ASGN_1,          1 ,            ,   i2c_sta)

; ITemplate_ASGN1_4_R
	MOVI           	0x1
	MOVA           	(_i2c_sta) & 0X7F		; Bank 1
#line 104	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         I2CSRIF = 0;
;  104:(    ASGN_0,          0 ,            ,   I2CSRIF)

; ITemplate_CLR_0_TMP
	BCC            	(_I2CSRIF_0#sh)/8,	(_I2CSRIF_0#sh)%8		; ShBank 1
#line 105	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }
;  105:(     LABEL,    #L20609 ,            ,          )

; ITemplate_LABEL
#L20609
#line 106	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CIF = 0;      //清I2C总标志位
;  106:(    ASGN_0,          0 ,            ,     I2CIF)

; ITemplate_CLR_0_TMP
	BCC            	(_I2CIF_0)/8,	(_I2CIF_0)%8
#line 107	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; }
;  107:(     RET_I,            ,            ,          )

; ITemplate_RET_I
	SECTION        	0x0
	BCC            	BKSR,	0x4
	GOTO           	_INT_RESTORE_0XC		; Bank 0		; ShBank 0
; interrupt fun restore
; ITemplate_InterruptVecTail
_INT_RESTORE_0XC
	MOV            	(MUL_TEMP_INT) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP) & 0X7F		; Bank 0
	MOVA           	MULA
	MOV            	(MUL_TEMP_INT+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x1) & 0X7F		; Bank 0
	MOVA           	MULB
	MOV            	(SAVED_FSR+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAH
	MOV            	(SAVED_FSR) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAL
	POP            	
	RETIE          	
#INCLUDE       	<LIB_RESTORE.inc>
	_DESC          	##isr7,0X0,0X0

SECTION1isr7	UNINTIAL       	0		; Bank 0
	ORG            	0X84		; Bank 0
_isr7DATA	RSEG           	0X1		; Bank 0
; interrupt fun entry
INT_ENTRY_L_0X8	CSEG           	0X8
	PUSH           	
	SEGMENTSEL     	_INT_ENTRY_0X8
	GOTO           	_INT_ENTRY_0X8
isr7#	CSEG           
#INCLUDE       	<LIB_INT1.inc>
; ITemplate_InterruptVecHead
_INT_ENTRY_0X8
	SEGMENTSEL     	$
	CLR            	BKSR
	MOV            	IAAL,	0x0
	MOVA           	(SAVED_FSR) & 0X7F		; Bank 0
	MOV            	IAAH,	0x0
	MOVA           	(SAVED_FSR+0x1) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP_INT+0x1) & 0X7F		; Bank 0
_isr7
; void isr7(void) interrupt_low 0x08         //IG7(T21)1s定时中断
; {
#line 111	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     if (T21VIE==1 && T21VIF==1)         //定时器溢出中断
;  111:(    CVB_SC,     T21VIE ,            ,   #T20654)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_T21VIE_0)/8,	(_T21VIE_0)%8
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_isr7_#T20654_18) & 0X7F		; Bank 1
;  111:(    JNEQ_1,          1 ,    #T20654 ,   #L20679)

; ITemplate_JNEQ1_4
	MOV            	(_isr7_#T20654_18) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20679
;  111:(    CVB_SC,     T21VIF ,            ,   #T20661)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_T21VIF_0)/8,	(_T21VIF_0)%8
	MOVI           	0x1
	MOVA           	(_isr7_#T20661_18) & 0X7F		; Bank 1
;  111:(    JNEQ_1,          1 ,    #T20661 ,   #L20679)

; ITemplate_JNEQ1_4
	MOV            	(_isr7_#T20661_18) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20679
;     {
#line 113	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         PA6 = ~PA6;
;  113:(    BCOM_0,        PA6 ,            ,       PA6)

; ITemplate_BCOM_0
	BTT            	(_PA6_0)/8,	(_PA6_0)%8
#line 114	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         T21VIF = 0;        //清溢出标志位
;  114:(    ASGN_0,          0 ,            ,    T21VIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T21VIF_0)/8,	(_T21VIF_0)%8
;     }
#line 116	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ; }
;  116:(     LABEL,    #L20679 ,            ,          )

; ITemplate_LABEL
#L20679
;  116:(     RET_I,            ,            ,          )

; ITemplate_RET_I
	SECTION        	0x0
	GOTO           	_INT_RESTORE_0X8		; Bank 0		; ShBank 0
; interrupt fun restore
; ITemplate_InterruptVecTail
_INT_RESTORE_0X8
	MOV            	(MUL_TEMP_INT) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP) & 0X7F		; Bank 0
	MOVA           	MULA
	MOV            	(MUL_TEMP_INT+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x1) & 0X7F		; Bank 0
	MOVA           	MULB
	MOV            	(SAVED_FSR+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAH
	MOV            	(SAVED_FSR) & 0X7F,	0x0		; Bank 0
	MOVA           	IAAL
	POP            	
	RETIE          	
#INCLUDE       	<LIB_RESTORE.inc>
	_DESC          	main,0X0,0X0,RAMclear,GPIOInit
main#	CSEG           
_main
; /*******************************************************
; 函数名：void main(void)
; 描  述：主函数，默认中断向量表，IG6、IG3配置为高优先级中断，IG0、IG7配置为低优先级中断
;         配置优先级顺序：IG6(高)>IG3(高)>IG0(低)>IG7(低)，高优先级可以嵌套响应低优先级
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void main(void)
; {
#line 128	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     RAMclear();
	CLR            	BKSR
;  128:(      CALL, (RAMclear.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_RAMclear
	CALL           	_RAMclear		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 129	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     GPIOInit();
;  129:(      CALL, (GPIOInit.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_GPIOInit
	CALL           	_GPIOInit		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 130	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     i2c_temp = 0;
;  130:(    ASGN_1,          0 ,            ,  i2c_temp)

; ITemplate_CLR1_4_TMP
	SECTION        	0x1
	CLR            	(_i2c_temp) & 0X7F		; Bank 1
#line 131	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     INTG = 0x07;        //向量中断模式，中断向量表INTV<1:0>=11
;  131:(    ASGN_1,          7 ,            ,      INTG)

; ITemplate_ASGN1_4_R
	MOVI           	0x7
	MOVA           	_INTG_0
#line 132	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     IGP6 = 1;           //I2C中断高优先级
;  132:(    ASGN_0,          1 ,            ,      IGP6)

; ITemplate_SET_0_TMP
	BSS            	(_IGP6_0)/8,	(_IGP6_0)%8
#line 133	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     IGP3 = 1;           //UART中断高优先级
;  133:(    ASGN_0,          1 ,            ,      IGP3)

; ITemplate_SET_0_TMP
	BSS            	(_IGP3_0)/8,	(_IGP3_0)%8
; /**********************T8N初始化************************/
#line 136	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8NC = 0x0E;         //定时器模式，预分频1:(Fosc/2)/128
;  136:(    ASGN_1,         14 ,            ,      T8NC)

; ITemplate_ASGN1_4_R
	MOVI           	0xe
	MOVA           	_T8NC_0
#line 137	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8N = 6;             //赋计数器初值，计数器4ms溢出
;  137:(    ASGN_1,          6 ,            ,       T8N)

; ITemplate_ASGN1_4_R
	MOVI           	0x6
	MOVA           	_T8N_0
#line 138	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8NIF = 0;           //清溢出标志位
;  138:(    ASGN_0,          0 ,            ,     T8NIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T8NIF_0)/8,	(_T8NIF_0)%8
#line 139	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8NIE = 1;           //打开定时器溢出中断
;  139:(    ASGN_0,          1 ,            ,     T8NIE)

; ITemplate_SET_0_TMP
	BSS            	(_T8NIE_0)/8,	(_T8NIE_0)%8
; /**********************T21初始化************************/
#line 142	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21CL = 0x00;        //定时器模式
;  142:(    ASGN_1,          0 ,            ,     T21CL)

; ITemplate_CLR1_4_TMP
	CLR            	_T21CL_0#sh		; ShBank 0
#line 143	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21CM = 0x0F;        //预分频1:16
;  143:(    ASGN_1,         15 ,            ,     T21CM)

; ITemplate_ASGN1_4_R
	MOVI           	0xf
	MOVA           	_T21CM_0#sh		; ShBank 0
#line 144	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21CH = 0x0F;        //后分频次数16
;  144:(    ASGN_1,         15 ,            ,     T21CH)

; ITemplate_ASGN1_4_R
	MOVI           	0xf
	MOVA           	_T21CH_0#sh		; ShBank 0
#line 145	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21PH = 0xF4;        //周期值高8位
;  145:(    ASGN_1,        244 ,            ,     T21PH)

; ITemplate_ASGN1_4_R
	MOVI           	0xf4
	MOVA           	_T21PH_0#sh		; ShBank 0
#line 146	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21PL = 0x24;
;  146:(    ASGN_1,         36 ,            ,     T21PL)

; ITemplate_ASGN1_4_R
	MOVI           	0x24
	MOVA           	_T21PL_0#sh		; ShBank 0
#line 147	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21VIF = 0;          //清溢出标志位
;  147:(    ASGN_0,          0 ,            ,    T21VIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T21VIF_0)/8,	(_T21VIF_0)%8
#line 148	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21VIE = 1;          //打开T21溢出中断
;  148:(    ASGN_0,          1 ,            ,    T21VIE)

; ITemplate_SET_0_TMP
	BSS            	(_T21VIE_0)/8,	(_T21VIE_0)%8
; /**********************IIC初始化************************/
#line 151	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PBT0 = 1;           //I2C_SDA输入
;  151:(    ASGN_0,          1 ,            ,      PBT0)

; ITemplate_SET_0_TMP
	BSS            	(_PBT0_0)/8,	(_PBT0_0)%8
#line 152	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PBT1 = 1;           //I2C_SCL输入
;  152:(    ASGN_0,          1 ,            ,      PBT1)

; ITemplate_SET_0_TMP
	BSS            	(_PBT1_0)/8,	(_PBT1_0)%8
#line 153	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CC = 0xE0;        //I2C端口使能，使能上拉，开漏方式，发送ACK
;  153:(    ASGN_1,        224 ,            ,      I2CC)

; ITemplate_ASGN1_4_R
	MOVI           	0xe0
	BSS            	BKSR,	0x4
	MOVA           	_I2CC_0#sh		; ShBank 1
#line 154	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CSA = SLAVE_ADDR<<1;      //从机地址       
;  154:(    ASGN_1,         90 ,            ,     I2CSA)

; ITemplate_ASGN1_4_R
	MOVI           	0x5a
	MOVA           	_I2CSA_0#sh		; ShBank 1
#line 155	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CIFC = 0x00;      //清除标志位    
;  155:(    ASGN_1,          0 ,            ,    I2CIFC)

; ITemplate_CLR1_4_TMP
	CLR            	_I2CIFC_0#sh		; ShBank 1
#line 156	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CRBIE = 1;        //使能I2C接收中断
;  156:(    ASGN_0,          1 ,            ,   I2CRBIE)

; ITemplate_SET_0_TMP
	BSS            	(_I2CRBIE_0#sh)/8,	(_I2CRBIE_0#sh)%8		; ShBank 1
#line 157	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CIF = 0;          //清I2C总标志位
;  157:(    ASGN_0,          0 ,            ,     I2CIF)

; ITemplate_CLR_0_TMP
	BCC            	(_I2CIF_0)/8,	(_I2CIF_0)%8
#line 158	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CIE = 1;          //使能I2C总中断
;  158:(    ASGN_0,          1 ,            ,     I2CIE)

; ITemplate_SET_0_TMP
	BSS            	(_I2CIE_0)/8,	(_I2CIE_0)%8
; /**********************UART初始化***********************/
#line 161	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PAT1 = 0;       //TX输出
;  161:(    ASGN_0,          0 ,            ,      PAT1)

; ITemplate_CLR_0_TMP
	BCC            	(_PAT1_0)/8,	(_PAT1_0)%8
#line 162	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     PAT2 = 1;       //RX输入
;  162:(    ASGN_0,          1 ,            ,      PAT2)

; ITemplate_SET_0_TMP
	BSS            	(_PAT2_0)/8,	(_PAT2_0)%8
#line 163	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     RX0LEN = 0;     //8位数据接收格式
;  163:(    ASGN_0,          0 ,            ,    RX0LEN)

; ITemplate_CLR_0_TMP
	BCC            	(_RX0LEN_0#sh)/8,	(_RX0LEN_0#sh)%8		; ShBank 1
#line 164	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     TX0LEN = 0;     //8位数据发送格式
;  164:(    ASGN_0,          0 ,            ,    TX0LEN)

; ITemplate_CLR_0_TMP
	BCC            	(_TX0LEN_0#sh)/8,	(_TX0LEN_0#sh)%8		; ShBank 1
#line 165	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     BRGH0 = 0;      //波特率高速模式：波特率=Fosc/(64*(BRR<7:0>+1))
;  165:(    ASGN_0,          0 ,            ,     BRGH0)

; ITemplate_CLR_0_TMP
	BCC            	(_BRGH0_0#sh)/8,	(_BRGH0_0#sh)%8		; ShBank 1
#line 166	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     BR0R = 25;      //波特率=16MHz/(64*26)≈9600bps
;  166:(    ASGN_1,         25 ,            ,      BR0R)

; ITemplate_ASGN1_4_R
	MOVI           	0x19
	MOVA           	_BR0R_0#sh		; ShBank 1
#line 167	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     TX0IE = 1;      //发送空中断
;  167:(    ASGN_0,          1 ,            ,     TX0IE)

; ITemplate_SET_0_TMP
	BSS            	(_TX0IE_0)/8,	(_TX0IE_0)%8
#line 168	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     RX0IE = 1;      //接收满中断
;  168:(    ASGN_0,          1 ,            ,     RX0IE)

; ITemplate_SET_0_TMP
	BSS            	(_RX0IE_0)/8,	(_RX0IE_0)%8
;     
; /*****************打开全局中断，使能模块*****************/   
#line 171	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     GIEL = 1;           //开低优先级中断
;  171:(    ASGN_0,          1 ,            ,      GIEL)

; ITemplate_SET_0_TMP
	BSS            	(_GIEL_0)/8,	(_GIEL_0)%8
#line 172	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     GIE = 1;            //开全局中断
;  172:(    ASGN_0,          1 ,            ,       GIE)

; ITemplate_SET_0_TMP
	BSS            	(_GIE_0)/8,	(_GIE_0)%8
#line 173	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T8NEN = 1;          //使能T8N
;  173:(    ASGN_0,          1 ,            ,     T8NEN)

; ITemplate_SET_0_TMP
	BSS            	(_T8NEN_0)/8,	(_T8NEN_0)%8
#line 174	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     T21EN = 1;          //使能T21
;  174:(    ASGN_0,          1 ,            ,     T21EN)

; ITemplate_SET_0_TMP
	BCC            	BKSR,	0x4
	BSS            	(_T21EN_0#sh)/8,	(_T21EN_0#sh)%8		; ShBank 0
#line 175	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     I2CEN = 1;          //使能I2C
;  175:(    ASGN_0,          1 ,            ,     I2CEN)

; ITemplate_SET_0_TMP
	BSS            	BKSR,	0x4
	BSS            	(_I2CEN_0#sh)/8,	(_I2CEN_0#sh)%8		; ShBank 1
#line 176	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     RX0EN = 1;          //使能UART接收
;  176:(    ASGN_0,          1 ,            ,     RX0EN)

; ITemplate_SET_0_TMP
	BSS            	(_RX0EN_0#sh)/8,	(_RX0EN_0#sh)%8		; ShBank 1
#line 177	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     TX0EN = 1;          //使能UART发送
;  177:(    ASGN_0,          1 ,            ,     TX0EN)

; ITemplate_SET_0_TMP
	BSS            	(_TX0EN_0#sh)/8,	(_TX0EN_0#sh)%8		; ShBank 1
#line 178	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     while (1)
;  178:(     LABEL,    #L20920 ,            ,          )

; ITemplate_LABEL
#L20920
;     {
#line 180	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;         CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 181	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C_ES7P0693\Interrupt\vector\vector.c ;     }
;  181:(       JMP,            ,            ,   #L20920)

; ITemplate_JMP
	GOTO           	#L20920

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC0	PSECT	FLAG=0X1088,ADDR=0X7FCB6
_GIEL_0	RSEG           	0X1		; Bank 0

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

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC2	PSECT	FLAG=0X1088,ADDR=0X7FCBB
_IGP3_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC3	PSECT	FLAG=0X1088,ADDR=0X7FCBE
_IGP6_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC4	PSECT	FLAG=0X1088,ADDR=0X7FCC9
_T8NIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC5	PSECT	FLAG=0X1088,ADDR=0X7FCD1
_T8NIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC6	PSECT	FLAG=0X1088,ADDR=0X7FCE8
_TX0IE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC7	PSECT	FLAG=0X1088,ADDR=0X7FCE9
_RX0IE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC8	PSECT	FLAG=0X1088,ADDR=0X7FCEA
_T21VIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC9	PSECT	FLAG=0X1088,ADDR=0X7FCEE
_I2CIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC10	PSECT	FLAG=0X1088,ADDR=0X7FCF0
_TX0IF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC11	PSECT	FLAG=0X1088,ADDR=0X7FCF1
_RX0IF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC12	PSECT	FLAG=0X1088,ADDR=0X7FCF2
_T21VIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC13	PSECT	FLAG=0X1088,ADDR=0X7FCF6
_I2CIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC14	PSECT	FLAG=0X1088,ADDR=0X7FD44
_PA4_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC15	PSECT	FLAG=0X1088,ADDR=0X7FD46
_PA6_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC16	PSECT	FLAG=0X1088,ADDR=0X7FD69
_PAT1_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC17	PSECT	FLAG=0X1088,ADDR=0X7FD6A
_PAT2_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC18	PSECT	FLAG=0X1088,ADDR=0X7FD70
_PBT0_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC19	PSECT	FLAG=0X1088,ADDR=0X7FD71
_PBT1_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC20	PSECT	FLAG=0X1088,ADDR=0X7FDF7
_T8NEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC21	PSECT	FLAG=0X1088,ADDR=0X30597
_T21EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC22	PSECT	FLAG=0X1088,ADDR=0X30686
_RX0LEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC23	PSECT	FLAG=0X1088,ADDR=0X30687
_RX0EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC24	PSECT	FLAG=0X1088,ADDR=0X30695
_BRGH0_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC25	PSECT	FLAG=0X1088,ADDR=0X30696
_TX0LEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC26	PSECT	FLAG=0X1088,ADDR=0X30697
_TX0EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC27	PSECT	FLAG=0X1088,ADDR=0X306D0
_I2CEN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC28	PSECT	FLAG=0X1088,ADDR=0X306F0
_I2CSRIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC29	PSECT	FLAG=0X1088,ADDR=0X306F3
_I2CRBIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC30	PSECT	FLAG=0X1088,ADDR=0X306F8
_I2CSRIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC31	PSECT	FLAG=0X1088,ADDR=0X306FB
_I2CRBIF_0	RSEG           	0X1		; Bank 0

SECTION1C__Users_lisq_Desktop_AN135_Examples_ES7P169C_ES7P0693_Interrupt_vector_vector_c_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0X87		; Bank 0
_t8nisr	RSEG           	0X1		; Bank 0
	ORG            	0X85		; Bank 0
_i2c_sta	RSEG           	0X1		; Bank 0
	ORG            	0X89		; Bank 0
_i2c_rxd	RSEG           	0X40		; Bank 0
	ORG            	0X86		; Bank 0
_i2c_temp	RSEG           	0X1		; Bank 0
	ORG            	0X88		; Bank 0
_uart_rxd	RSEG           	0X1		; 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            	0XFF96		; Bank 0
_INTG_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            	0XFFBD		; Bank 0
_T8N_0	RSEG           	0X1		; Bank 0
	ORG            	0XFFBE		; Bank 0
_T8NC_0	RSEG           	0X1		; Bank 0
	ORG            	0X60AC		; Bank 0
_T21PL_0	RSEG           	0X1		; Bank 0
	ORG            	0X60AD		; Bank 0
_T21PH_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B0		; Bank 0
_T21CL_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B1		; Bank 0
_T21CM_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B2		; Bank 0
_T21CH_0	RSEG           	0X1		; Bank 0
	ORG            	0X60CF		; Bank 0
_RX0B_0	RSEG           	0X1		; Bank 0
	ORG            	0X60D1		; Bank 0
_TX0B_0	RSEG           	0X1		; Bank 0
	ORG            	0X60D3		; Bank 0
_BR0R_0	RSEG           	0X1		; Bank 0
	ORG            	0X60DA		; Bank 0
_I2CC_0	RSEG           	0X1		; Bank 0
	ORG            	0X60DB		; Bank 0
_I2CSA_0	RSEG           	0X1		; Bank 0
	ORG            	0X60DC		; Bank 0
_I2CTB_0	RSEG           	0X1		; Bank 0
	ORG            	0X60DD		; Bank 0
_I2CRB_0	RSEG           	0X1		; Bank 0
	ORG            	0X60DF		; Bank 0
_I2CIFC_0	RSEG           	0X1		; Bank 0
	END
