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

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_RAMclear
	PUBLIC         	_GPIOInit
	PUBLIC         	_isr
	PUBLIC         	_main
_isr_#T20439_7	EQU            	_isrDATA + 0X0		; Bank 0
_isr_#T20446_7	EQU            	_isrDATA + 0X0		; Bank 0
#TMP	EQU            	?_TMP+ 0X0		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_T31EN_0#sh	EQU            	0X608		; Bank 0
_UPIE_0#sh	EQU            	0X638		; Bank 0
_UPIS_0#sh	EQU            	0X658		; Bank 0
_UPIF_0#sh	EQU            	0X668		; Bank 0
_UPIC_0#sh	EQU            	0X688		; Bank 0
_T31C0L_0#sh	EQU            	0XC1		; Bank 0
_T31C2L_0#sh	EQU            	0XC5		; Bank 0
_T31CH1C_0#sh	EQU            	0XD4		; Bank 0
_T31CH2C_0#sh	EQU            	0XD5		; Bank 0
_T31PRSL_0#sh	EQU            	0XDC		; Bank 0
_T31PRSH_0#sh	EQU            	0XDD		; Bank 0
_T31CNTLDL_0#sh	EQU            	0XDE		; Bank 0
_T31CNTLDH_0#sh	EQU            	0XDF		; Bank 0
_T31POS_0#sh	EQU            	0XE0		; 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.
; *文件名：timer_external_clock.c
; *作  者：AE Team
; *版  本：v1.0，编译于iDesigner(v4.2.3.166) + 工具链HRCC(v1.2.0.106)
; *日  期：2020/07/09
; *描  述：多功能定时器外部时钟源定时模式，T31_CH1(PB5)输入时钟，计数器溢出翻转PA1。
; *备  注：本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
; *******************************************************/
; #include <hic.h>
; #define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
; /******************************************************
; 函数名：void RAMclear(void)
; 描  述：RAM区数据清零，RAM区地址0x0000~0x03FF
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void RAMclear(void)
; {
#line 23	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     for (IAAH=0; IAAH<=0x03; IAAH++)
	CLR            	BKSR
;   23:(    ASGN_1,          0 ,            ,      IAAH)

; ITemplate_CLR1_4_TMP
	CLR            	_IAAH_0
;   23:(     LABEL,    #L20268 ,            ,          )

; ITemplate_LABEL
#L20268
;   23:(    JGT_1U,       IAAH ,          3 ,   #L20345)

; ITemplate_JGT1_4U
	MOV            	_IAAH_0,	0x0
	SUBI           	0x3
	JBS            	PSW,	0x0
	GOTO           	#L20345
;     {
#line 25	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         for (IAAL=0; IAAL<0xFF; IAAL++)
;   25:(    ASGN_1,          0 ,            ,      IAAL)

; ITemplate_CLR1_4_TMP
	CLR            	_IAAL_0
;   25:(     LABEL,    #L20285 ,            ,          )

; ITemplate_LABEL
#L20285
;   25:(    JGE_1U,       IAAL ,        255 ,   #L20286)

; ITemplate_JGE1_4U
	MOVI           	0xff
	SUB            	_IAAL_0,	0x0
	JBC            	PSW,	0x0
	GOTO           	#L20286
#line 26	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;             IAD = 0x00;
;   26:(    ASGN_1,          0 ,            ,       IAD)

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

; ITemplate_INC_1_TMP
	INC            	_IAAL_0
;   26:(       JMP,            ,            ,   #L20285)

; ITemplate_JMP
	GOTO           	#L20285
;   26:(     LABEL,    #L20286 ,            ,          )

; ITemplate_LABEL
#L20286
#line 27	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         IAD = 0x00;
;   27:(    ASGN_1,          0 ,            ,       IAD)

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

; ITemplate_INC_1_TMP
	INC            	_IAAH_0
#line 28	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     }
;   28:(       JMP,            ,            ,   #L20268)

; ITemplate_JMP
	GOTO           	#L20268
#line 29	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ; }
;   29:(     LABEL,    #L20345 ,            ,          )

; ITemplate_LABEL
#L20345
;   29:(       RET,            ,            ,          )

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

; ITemplate_ASGN1_4_R
	MOVI           	0xff
	MOVA           	_ANSL_0
#line 41	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ; 	ANSH = 0xFF;
;   41:(    ASGN_1,        255 ,            ,      ANSH)

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

; ITemplate_CLR1_4_TMP
	CLR            	_PAT_0
#line 43	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBT = 0x00;
;   43:(    ASGN_1,          0 ,            ,       PBT)

; ITemplate_CLR1_4_TMP
	CLR            	_PBT_0
#line 44	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PCT = 0x00;
;   44:(    ASGN_1,          0 ,            ,       PCT)

; ITemplate_CLR1_4_TMP
	CLR            	_PCT_0
#line 45	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PA = 0x00;
;   45:(    ASGN_1,          0 ,            ,        PA)

; ITemplate_CLR1_4_TMP
	CLR            	_PA_0
#line 46	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PB = 0x00;
;   46:(    ASGN_1,          0 ,            ,        PB)

; ITemplate_CLR1_4_TMP
	CLR            	_PB_0
#line 47	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PC = 0x00;
;   47:(    ASGN_1,          0 ,            ,        PC)

; ITemplate_CLR1_4_TMP
	CLR            	_PC_0
#line 49	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBT4 = 1;                  //T31_ETR设为输入
;   49:(    ASGN_0,          1 ,            ,      PBT4)

; ITemplate_SET_0_TMP
	BSS            	(_PBT4_0)/8,	(_PBT4_0)%8
#line 50	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBT5 = 1;                  //T31_CH1设为输入
;   50:(    ASGN_0,          1 ,            ,      PBT5)

; ITemplate_SET_0_TMP
	BSS            	(_PBT5_0)/8,	(_PBT5_0)%8
#line 51	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBT6 = 1;                  //T31_CH2设为输入
;   51:(    ASGN_0,          1 ,            ,      PBT6)

; ITemplate_SET_0_TMP
	BSS            	(_PBT6_0)/8,	(_PBT6_0)%8
#line 52	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBPU4 = 1;                 //使能上拉
;   52:(    ASGN_0,          1 ,            ,     PBPU4)

; ITemplate_SET_0_TMP
	BSS            	(_PBPU4_0)/8,	(_PBPU4_0)%8
#line 53	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBPU5 = 1;
;   53:(    ASGN_0,          1 ,            ,     PBPU5)

; ITemplate_SET_0_TMP
	BSS            	(_PBPU5_0)/8,	(_PBPU5_0)%8
#line 54	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     PBPU6 = 1;
;   54:(    ASGN_0,          1 ,            ,     PBPU6)

; ITemplate_SET_0_TMP
	BSS            	(_PBPU6_0)/8,	(_PBPU6_0)%8
#line 55	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ; }
;   55:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	##isr,0X0,0X0

SECTION1isr	UNINTIAL       	0		; Bank 0
	ORG            	0X80		; Bank 0
_isrDATA	RSEG           	0X1		; Bank 0
; interrupt fun entry
	PUBLIC         	SAVED_TMP
SECTION0_INT_SAVED_00	UNINTIAL       		; Bank 0
SAVED_FSR	RSEG           	0x3
SECTION0_INT_SAVED_3	UNINTIAL       		; Bank 0
SAVED_TMP	RSEG           	0x1
INT_ENTRY	CSEG           	0x04
; ITemplate_InterruptHead
_INT_ENTRY
	PUSH           	
	CLR            	PCRH
	CLR            	BKSR
	MOV            	IAAL,	0x0
	MOVA           	(SAVED_FSR) & 0X7F		; Bank 0
	MOV            	IAAH,	0x0
	MOVA           	(SAVED_FSR+0x1) & 0X7F		; Bank 0
	MOV            	(CSEG_PTR) & 0X7F,	0x0		; Bank 0
	MOVA           	(CSEG_PTR+0x2) & 0X7F		; Bank 0
	MOV            	(CSEG_PTR+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(CSEG_PTR+0x3) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x2) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP+0x3) & 0X7F		; Bank 0
isr#	CSEG           
_isr
; /*******************************************************
; 函数名：void isr(void) interrupt
; 描  述：中断服务程序
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void isr(void) interrupt
; {
#line 66	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     if (UPIS==1 && UPIF==1)        //定时器溢出中断
;   66:(    CVB_SC,       UPIS ,            ,   #T20439)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_UPIS_0#sh)/8,	(_UPIS_0#sh)%8		; ShBank 0
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_isr_#T20439_7) & 0X7F		; Bank 1
;   66:(    JNEQ_1,          1 ,    #T20439 ,   #L20470)

; ITemplate_JNEQ1_4
	MOV            	(_isr_#T20439_7) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20470
;   66:(    CVB_SC,       UPIF ,            ,   #T20446)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_UPIF_0#sh)/8,	(_UPIF_0#sh)%8		; ShBank 0
	MOVI           	0x1
	MOVA           	(_isr_#T20446_7) & 0X7F		; Bank 1
;   66:(    JNEQ_1,          1 ,    #T20446 ,   #L20470)

; ITemplate_JNEQ1_4
	MOV            	(_isr_#T20446_7) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20470
;     {
#line 68	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         UPIC = 1;        //清溢出标志位，UPIF必须要在T31IF之前清除。
;   68:(    ASGN_0,          1 ,            ,      UPIC)

; ITemplate_SET_0_TMP
	BSS            	(_UPIC_0#sh)/8,	(_UPIC_0#sh)%8		; ShBank 0
#line 69	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         T31IF = 0;       //清定时器总标志位，UPIF必须要在T31IF之前清除。
;   69:(    ASGN_0,          0 ,            ,     T31IF)

; ITemplate_CLR_0_TMP
	BCC            	(_T31IF_0)/8,	(_T31IF_0)%8
#line 71	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         PA1 = ~PA1;
;   71:(    BCOM_0,        PA1 ,            ,       PA1)

; ITemplate_BCOM_0
	BTT            	(_PA1_0)/8,	(_PA1_0)%8
;     }
#line 73	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ; }
;   73:(     LABEL,    #L20470 ,            ,          )

; ITemplate_LABEL
#L20470
;   73:(     RET_I,            ,            ,          )

; ITemplate_RET_I
	SECTION        	0x0
	GOTO           	_INT_RESTORE		; Bank 0		; ShBank 0
; interrupt fun restore
INT_RESTORE	CSEG           
; ITemplate_InterruptTail
_INT_RESTORE
	NOP            	
	NOP            	
	MOV            	(CSEG_PTR+0x3) & 0X7F,	0x0		; Bank 0
	MOVA           	(CSEG_PTR+0x1) & 0X7F		; Bank 0
	MOV            	(CSEG_PTR+0x2) & 0X7F,	0x0		; Bank 0
	MOVA           	(CSEG_PTR) & 0X7F		; Bank 0
	MOV            	(MUL_TEMP+0x2) & 0X7F,	0x0		; Bank 0
	MOVA           	(MUL_TEMP) & 0X7F		; Bank 0
	MOVA           	MULA
	MOV            	(MUL_TEMP+0x3) & 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          	
	_DESC          	main,0X0,0X0,RAMclear,GPIOInit
main#	CSEG           
_main
; /*******************************************************
; 函数名：void main(void)
; 描  述：主函数，T31_CH1(PB5)输入时钟，计数器溢出翻转PA1，输入时钟不分频，双沿计数，
;         计数器初值0x03E8(1000)。
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void main(void)
; {
#line 85	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     RAMclear();
	CLR            	BKSR
;   85:(      CALL, (RAMclear.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_RAMclear
	CALL           	_RAMclear		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 86	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     GPIOInit();
;   86:(      CALL, (GPIOInit.0) ,            ,          )

; ITemplate_CALL
	SEGMENTSEL     	_GPIOInit
	CALL           	_GPIOInit		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 87	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31C2L = 0x47;      //外部时钟模式1，时钟输入T31_CH1，TRC双沿计数
;   87:(    ASGN_1,         71 ,            ,    T31C2L)

; ITemplate_ASGN1_4_R
	MOVI           	0x47
	MOVA           	_T31C2L_0#sh		; ShBank 0
#line 88	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31CH2C = 0x00;     //CH2IFS<3:0>=0000,T31_CH2时钟输入禁止数字滤波
;   88:(    ASGN_1,          0 ,            ,   T31CH2C)

; ITemplate_CLR1_4_TMP
	CLR            	_T31CH2C_0#sh		; ShBank 0
#line 89	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31CH1C = 0x00;     //CH1IFS<3:0>=0000,T31_CH1时钟输入禁止数字滤波
;   89:(    ASGN_1,          0 ,            ,   T31CH1C)

; ITemplate_CLR1_4_TMP
	CLR            	_T31CH1C_0#sh		; ShBank 0
#line 90	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31C0L = 0x00;      //T31CNTLD寄存器无缓冲，写入值立即生效。计数器边沿计数模式，向上计数
;   90:(    ASGN_1,          0 ,            ,    T31C0L)

; ITemplate_CLR1_4_TMP
	CLR            	_T31C0L_0#sh		; ShBank 0
#line 91	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31CNTLDH = 0x03;   //重装载值，计数器与其匹配时产生事件
;   91:(    ASGN_1,          3 ,            , T31CNTLDH)

; ITemplate_ASGN1_4_R
	MOVI           	0x3
	MOVA           	_T31CNTLDH_0#sh		; ShBank 0
#line 92	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31CNTLDL = 0xE8;
;   92:(    ASGN_1,        232 ,            , T31CNTLDL)

; ITemplate_ASGN1_4_R
	MOVI           	0xe8
	MOVA           	_T31CNTLDL_0#sh		; ShBank 0
#line 93	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31PRSH = 0x00;     //预分频系数1:1
;   93:(    ASGN_1,          0 ,            ,   T31PRSH)

; ITemplate_CLR1_4_TMP
	CLR            	_T31PRSH_0#sh		; ShBank 0
#line 94	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31PRSL = 0x00;
;   94:(    ASGN_1,          0 ,            ,   T31PRSL)

; ITemplate_CLR1_4_TMP
	CLR            	_T31PRSL_0#sh		; ShBank 0
#line 95	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31POS = 0x00;      //计数器与T31CNTLD第1次匹配事件时产生溢出中断
;   95:(    ASGN_1,          0 ,            ,    T31POS)

; ITemplate_CLR1_4_TMP
	CLR            	_T31POS_0#sh		; ShBank 0
#line 96	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     UPIE = 1;       //打开计数溢出中断
;   96:(    ASGN_0,          1 ,            ,      UPIE)

; ITemplate_SET_0_TMP
	BSS            	(_UPIE_0#sh)/8,	(_UPIE_0#sh)%8		; ShBank 0
#line 97	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31IE = 1;      //开启多功能定时器中断
;   97:(    ASGN_0,          1 ,            ,     T31IE)

; ITemplate_SET_0_TMP
	BSS            	(_T31IE_0)/8,	(_T31IE_0)%8
#line 98	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     UPIC = 1;       //清溢出标志位
;   98:(    ASGN_0,          1 ,            ,      UPIC)

; ITemplate_SET_0_TMP
	BSS            	(_UPIC_0#sh)/8,	(_UPIC_0#sh)%8		; ShBank 0
#line 99	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31IF = 0;      //清定时器总标志位
;   99:(    ASGN_0,          0 ,            ,     T31IF)

; ITemplate_CLR_0_TMP
	BCC            	(_T31IF_0)/8,	(_T31IF_0)%8
#line 100	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     GIE = 1;        //开启全局中断
;  100:(    ASGN_0,          1 ,            ,       GIE)

; ITemplate_SET_0_TMP
	BSS            	(_GIE_0)/8,	(_GIE_0)%8
#line 101	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     T31EN = 1;      //使能计数器
;  101:(    ASGN_0,          1 ,            ,     T31EN)

; ITemplate_SET_0_TMP
	BSS            	(_T31EN_0#sh)/8,	(_T31EN_0#sh)%8		; ShBank 0
#line 102	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     while (1)
;  102:(     LABEL,    #L20569 ,            ,          )

; ITemplate_LABEL
#L20569
;     {
#line 104	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;         CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 105	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T31\timer_external_clock\timer_external_clock.c ;     }
;  105:(       JMP,            ,            ,   #L20569)

; ITemplate_JMP
	GOTO           	#L20569

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

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC1	PSECT	FLAG=0X1088,ADDR=0X7FCCA
_T31IE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC2	PSECT	FLAG=0X1088,ADDR=0X7FCD2
_T31IF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC3	PSECT	FLAG=0X1088,ADDR=0X7FD41
_PA1_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC4	PSECT	FLAG=0X1088,ADDR=0X7FD74
_PBT4_0	RSEG           	0X1		; Bank 0

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

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

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC7	PSECT	FLAG=0X1088,ADDR=0X7FD9C
_PBPU4_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC8	PSECT	FLAG=0X1088,ADDR=0X7FD9D
_PBPU5_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC9	PSECT	FLAG=0X1088,ADDR=0X7FD9E
_PBPU6_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC10	PSECT	FLAG=0X1088,ADDR=0X30408
_T31EN_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC11	PSECT	FLAG=0X1088,ADDR=0X30438
_UPIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC12	PSECT	FLAG=0X1088,ADDR=0X30458
_UPIS_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC13	PSECT	FLAG=0X1088,ADDR=0X30468
_UPIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T31_timer_external_clock_timer_external_clock_c_STATIC14	PSECT	FLAG=0X1088,ADDR=0X30488
_UPIC_0	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            	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            	0X6081		; Bank 0
_T31C0L_0	RSEG           	0X1		; Bank 0
	ORG            	0X6085		; Bank 0
_T31C2L_0	RSEG           	0X1		; Bank 0
	ORG            	0X6094		; Bank 0
_T31CH1C_0	RSEG           	0X1		; Bank 0
	ORG            	0X6095		; Bank 0
_T31CH2C_0	RSEG           	0X1		; Bank 0
	ORG            	0X609C		; Bank 0
_T31PRSL_0	RSEG           	0X1		; Bank 0
	ORG            	0X609D		; Bank 0
_T31PRSH_0	RSEG           	0X1		; Bank 0
	ORG            	0X609E		; Bank 0
_T31CNTLDL_0	RSEG           	0X1		; Bank 0
	ORG            	0X609F		; Bank 0
_T31CNTLDH_0	RSEG           	0X1		; Bank 0
	ORG            	0X60A0		; Bank 0
_T31POS_0	RSEG           	0X1		; Bank 0
	END
