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

#INCLUDE       	<ES7P169C.INC>
#INCLUDE       	<OPERATION.INC>
	PUBLIC         	_Duty
	PUBLIC         	_RAMclear
	PUBLIC         	_GPIOInit
	PUBLIC         	_isr
	PUBLIC         	_main
_isr_#T20403_7	EQU            	_isrDATA + 0X0		; Bank 0
_isr_#T20410_7	EQU            	_isrDATA + 0X0		; Bank 0
#TMP	EQU            	?_TMP+ 0X3		; Bank 0
?_TMP_RET	EQU            	?_TMP		; Bank 0
_T21TR_0#sh	EQU            	0X74F		; Bank 0
_T21EN_0#sh	EQU            	0X797		; Bank 0
_T21OC_0#sh	EQU            	0XE9		; Bank 0
_T21PL_0#sh	EQU            	0XEC		; Bank 0
_T21PH_0#sh	EQU            	0XED		; Bank 0
_T21R0L_0#sh	EQU            	0XEE		; Bank 0
_T21R0H_0#sh	EQU            	0XEF		; Bank 0
_T21CL_0#sh	EQU            	0XF0		; Bank 0
_T21CM_0#sh	EQU            	0XF1		; Bank 0
_T21R1L_0#sh	EQU            	0XF3		; Bank 0
_T21R1H_0#sh	EQU            	0XF4		; Bank 0
_T21R2L_0#sh	EQU            	0XF5		; Bank 0
_T21R2H_0#sh	EQU            	0XF6		; 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.
; *文件名：pwm_multiprecision.c
; *作  者：AE Team
; *版  本：v1.0，编译于iDesigner(v4.2.3.166) + 工具链HRCC(v1.2.0.106)
; *日  期：2020/07/09
; *描  述：T21多精度pwm模式，T21_CH0(PA0)和T21_CH1(PA7)输出pwm互补波形，T21_CH2(PB7)输出占空比连续变化的pwm波形
; *备  注：本软件仅供学习和演示使用，对用户直接引用代码所带来的风险或后果不承担任何法律责任。
; *******************************************************/
; #include <hic.h>
; #define CLRWDT()   {__Asm CWDT;}        //宏定义清狗指令
; unsigned int Duty;        //T21 pwm2占空比
; /******************************************************
; 函数名：void RAMclear(void)
; 描  述：RAM区数据清零，RAM区地址0x0000~0x03FF
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void RAMclear(void)
; {
#line 25	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     for (IAAH=0; IAAH<=0x03; IAAH++)
	CLR            	BKSR
;   25:(    ASGN_1,          0 ,            ,      IAAH)

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

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

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

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

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

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

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

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

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

; ITemplate_LABEL
#L20286
#line 29	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         IAD = 0x00;
;   29:(    ASGN_1,          0 ,            ,       IAD)

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

; ITemplate_INC_1_TMP
	INC            	_IAAH_0
#line 30	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     }
;   30:(       JMP,            ,            ,   #L20268)

; ITemplate_JMP
	GOTO           	#L20268
#line 31	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ; }
;   31:(     LABEL,    #L20345 ,            ,          )

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

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

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

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

; ITemplate_CLR1_4_TMP
	CLR            	_PAT_0
#line 45	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     PBT = 0x00;
;   45:(    ASGN_1,          0 ,            ,       PBT)

; ITemplate_CLR1_4_TMP
	CLR            	_PBT_0
#line 46	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     PCT = 0x00;
;   46:(    ASGN_1,          0 ,            ,       PCT)

; ITemplate_CLR1_4_TMP
	CLR            	_PCT_0
#line 47	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     PA = 0x00;
;   47:(    ASGN_1,          0 ,            ,        PA)

; ITemplate_CLR1_4_TMP
	CLR            	_PA_0
#line 48	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     PB = 0x00;
;   48:(    ASGN_1,          0 ,            ,        PB)

; ITemplate_CLR1_4_TMP
	CLR            	_PB_0
#line 49	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     PC = 0x00;
;   49:(    ASGN_1,          0 ,            ,        PC)

; ITemplate_CLR1_4_TMP
	CLR            	_PC_0
#line 50	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ; }
;   50:(       RET,            ,            ,          )

; ITemplate_RET
	RET            			; Bank 0		; ShBank 0
	_DESC          	##isr,0X3,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
; 描  述：中断服务程序，周期溢出时将T21R的值更新至精度缓冲器(实际起作用，但不可见)。
;         所以每次进入中断函数时更新至精度缓冲器中的数是上一次周期溢出时的T21R值
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void isr(void) interrupt
; {
#line 62	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     if (T21PIE==1 && T21PIF==1)        //定时器pwm周期中断
;   62:(    CVB_SC,     T21PIE ,            ,   #T20403)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_T21PIE_0)/8,	(_T21PIE_0)%8
	MOVI           	0x1
	SECTION        	0x1
	MOVA           	(_isr_#T20403_7) & 0X7F		; Bank 1
;   62:(    JNEQ_1,          1 ,    #T20403 ,   #L20468)

; ITemplate_JNEQ1_4
	MOV            	(_isr_#T20403_7) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20468
;   62:(    CVB_SC,     T21PIF ,            ,   #T20410)

; ITemplate_CVB_UC
	MOVI           	0x0
	JBC            	(_T21PIF_0)/8,	(_T21PIF_0)%8
	MOVI           	0x1
	MOVA           	(_isr_#T20410_7) & 0X7F		; Bank 1
;   62:(    JNEQ_1,          1 ,    #T20410 ,   #L20468)

; ITemplate_JNEQ1_4
	MOV            	(_isr_#T20410_7) & 0X7F,	0x0		; Bank 1
	XORI           	0x1
	JBS            	PSW,	0x2
	GOTO           	#L20468
;     {
#line 64	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         T21PIF = 0;                //清标志位
;   64:(    ASGN_0,          0 ,            ,    T21PIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T21PIF_0)/8,	(_T21PIF_0)%8
#line 66	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         Duty ++;
;   66:(     ADD_2,       Duty ,          1 ,      Duty)

; ITemplate_INC_2_TMP
	INC            	(_Duty) & 0X7F		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20589
	INC            	(_Duty+0x1) & 0X7F		; Bank 1
#L20589
#line 67	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         if (Duty >= 0x03E8)        //占空比大于周期，重新赋初值
;   67:(    JLT_2U,       Duty ,       1000 ,   #L20437)

; ITemplate_JLT1_4U
	MOVI           	0x3
	SUB            	(_Duty+0x1) & 0X7F,	0x0		; Bank 1
	JBS            	PSW,	0x2
	GOTO           	#L20590
	MOVI           	0xe8
	SUB            	(_Duty) & 0X7F,	0x0		; Bank 1
#L20590
	JBS            	PSW,	0x0
	GOTO           	#L20437
#line 68	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;             Duty = 0x0001;
;   68:(    ASGN_2,          1 ,            ,      Duty)

; ITemplate_ASGN1_4_R
	MOVI           	0x0
	MOVA           	(_Duty+0x1) & 0X7F		; Bank 1
	MOVI           	0x1
	MOVA           	(_Duty) & 0X7F		; Bank 1
;   68:(     LABEL,    #L20437 ,            ,          )

; ITemplate_LABEL
#L20437
#line 70	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         T21R2H = Duty>>8;    
;   70:(    RSH_2U,       Duty ,          8 ,    T21R2H)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	SECTION        	0x0
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	MOVRA          	_Duty		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_Duty+0x1		; Bank 1
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	GOTO           	#L20591
#L20592
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L20591
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L20592
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_T21R2H_0#sh		; ShBank 0
#line 71	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         T21R2L = Duty;      
;   71:(   CVUI_UC,       Duty ,            ,    T21R2L)

; ITemplate_CVSMT
	MOVRA          	_Duty		; Bank 1
	MOVA           	_T21R2L_0#sh		; ShBank 0
;     }
#line 73	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ; }
;   73:(     LABEL,    #L20468 ,            ,          )

; ITemplate_LABEL
#L20468
;   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,0X3,0X0,RAMclear,GPIOInit
main#	CSEG           
_main
; /*******************************************************
; 函数名：void main(void)
; 描  述：主函数，T21_CH0(PA0)和T21_CH1(PA7)输出pwm互补波形，T21_CH2(PB7)输出占空比连续变化的pwm波形
; 输入值：无
; 输出值：无
; 返回值：无
; *******************************************************/
; void main(void) 
; {
#line 84	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     RAMclear();
	CLR            	BKSR
;   84:(      CALL, (RAMclear.0) ,            ,          )

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

; ITemplate_CALL
	SEGMENTSEL     	_GPIOInit
	CALL           	_GPIOInit		; Bank 0		; ShBank 0
	SEGMENTSEL     	$
#line 86	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21CL = 0xC0;        //多精度pwm模式
;   86:(    ASGN_1,        192 ,            ,     T21CL)

; ITemplate_ASGN1_4_R
	MOVI           	0xc0
	MOVA           	_T21CL_0#sh		; ShBank 0
#line 87	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21CM = 0x2F;        //T21_CH0输出低有效、T21_CH1输出高有效，预分频1:16
;   87:(    ASGN_1,         47 ,            ,     T21CM)

; ITemplate_ASGN1_4_R
	MOVI           	0x2f
	MOVA           	_T21CM_0#sh		; ShBank 0
#line 88	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21OC = 0x25;        //T21_CH2输出高有效，打开捕捉端口复用功能
;   88:(    ASGN_1,         37 ,            ,     T21OC)

; ITemplate_ASGN1_4_R
	MOVI           	0x25
	MOVA           	_T21OC_0#sh		; ShBank 0
#line 89	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21PH = 0x03;        //pwm周期
;   89:(    ASGN_1,          3 ,            ,     T21PH)

; ITemplate_ASGN1_4_R
	MOVI           	0x3
	MOVA           	_T21PH_0#sh		; ShBank 0
#line 90	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21PL = 0xE8;
;   90:(    ASGN_1,        232 ,            ,     T21PL)

; ITemplate_ASGN1_4_R
	MOVI           	0xe8
	MOVA           	_T21PL_0#sh		; ShBank 0
#line 91	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R0H = 0x01;       //pwm0占空比
;   91:(    ASGN_1,          1 ,            ,    T21R0H)

; ITemplate_ASGN1_4_R
	MOVI           	0x1
	MOVA           	_T21R0H_0#sh		; ShBank 0
#line 92	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R0L = 0x4D;
;   92:(    ASGN_1,         77 ,            ,    T21R0L)

; ITemplate_ASGN1_4_R
	MOVI           	0x4d
	MOVA           	_T21R0L_0#sh		; ShBank 0
#line 93	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R1H = 0x01;
;   93:(    ASGN_1,          1 ,            ,    T21R1H)

; ITemplate_ASGN1_4_R
	MOVI           	0x1
	MOVA           	_T21R1H_0#sh		; ShBank 0
#line 94	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R1L = 0x4D;
;   94:(    ASGN_1,         77 ,            ,    T21R1L)

; ITemplate_ASGN1_4_R
	MOVI           	0x4d
	MOVA           	_T21R1L_0#sh		; ShBank 0
#line 95	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     Duty = 0x0001;       //pwm2占空比
;   95:(    ASGN_2,          1 ,            ,      Duty)

; ITemplate_ASGN1_4_R
	MOVI           	0x0
	MOVAR          	_Duty+0x1		; Bank 1
	MOVI           	0x1
	MOVAR          	_Duty		; Bank 1
#line 96	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R2H = Duty>>8;
;   96:(    RSH_2U,       Duty ,          8 ,    T21R2H)

; ITemplate_RSH1_4U
	MOVI           	0x8
	ADDI           	0x1
	MOVA           	(?_TMP) & 0X7F		; Bank 0
	MOVRA          	_Duty		; Bank 1
	MOVA           	(?_TMP+0x1) & 0X7F		; Bank 0
	MOVRA          	_Duty+0x1		; Bank 1
	MOVA           	(?_TMP+0x2) & 0X7F		; Bank 0
	MOV            	(?_TMP) & 0X7F,	0x0		; Bank 0
	GOTO           	#L20593
#L20594
	BCC            	PSW,	0x0
	RR             	(?_TMP+0x2) & 0X7F,	0x1		; Bank 0
	RR             	(?_TMP+0x1) & 0X7F,	0x1		; Bank 0
#L20593
	ADDI           	0xff
	JBS            	PSW,	0x2
	GOTO           	#L20594
	MOV            	(?_TMP+0x1) & 0X7F,	0x0		; Bank 0
	MOVA           	_T21R2H_0#sh		; ShBank 0
#line 97	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21R2L = Duty;
;   97:(   CVUI_UC,       Duty ,            ,    T21R2L)

; ITemplate_CVSMT
	MOVRA          	_Duty		; Bank 1
	MOVA           	_T21R2L_0#sh		; ShBank 0
#line 98	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21TR = 1;           //启动pwm输出
;   98:(    ASGN_0,          1 ,            ,     T21TR)

; ITemplate_SET_0_TMP
	BSS            	(_T21TR_0#sh)/8,	(_T21TR_0#sh)%8		; ShBank 0
#line 99	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21PIE = 1;          //打开T21周期2中断    
;   99:(    ASGN_0,          1 ,            ,    T21PIE)

; ITemplate_SET_0_TMP
	BSS            	(_T21PIE_0)/8,	(_T21PIE_0)%8
#line 100	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21PIF = 0;          //清标志位
;  100:(    ASGN_0,          0 ,            ,    T21PIF)

; ITemplate_CLR_0_TMP
	BCC            	(_T21PIF_0)/8,	(_T21PIF_0)%8
#line 101	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     GIE = 1;             //开全局中断    
;  101:(    ASGN_0,          1 ,            ,       GIE)

; ITemplate_SET_0_TMP
	BSS            	(_GIE_0)/8,	(_GIE_0)%8
#line 102	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     T21EN = 1;           //使能T21
;  102:(    ASGN_0,          1 ,            ,     T21EN)

; ITemplate_SET_0_TMP
	BSS            	(_T21EN_0#sh)/8,	(_T21EN_0#sh)%8		; ShBank 0
#line 103	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     while (1)
;  103:(     LABEL,    #L20585 ,            ,          )

; ITemplate_LABEL
#L20585
;     {
#line 105	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;         CLRWDT();
; ITemplate_LABEL
;-----------Embedded Asm--------------
	CWDT
;-------------------------------------
#line 106	C:\Users\lisq\Desktop\AN135_Examples_ES7P169C\T21\pwm_multiprecision\pwm_multiprecision.c ;     }
;  106:(       JMP,            ,            ,   #L20585)

; ITemplate_JMP
	GOTO           	#L20585

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

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T21_pwm_multiprecision_pwm_multiprecision_c_STATIC1	PSECT	FLAG=0X1088,ADDR=0X7FCEB
_T21PIE_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T21_pwm_multiprecision_pwm_multiprecision_c_STATIC2	PSECT	FLAG=0X1088,ADDR=0X7FCF3
_T21PIF_0	RSEG           	0X1		; Bank 0

SECTION8C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T21_pwm_multiprecision_pwm_multiprecision_c_STATIC3	PSECT	FLAG=0X1088,ADDR=0X3054F
_T21TR_0	RSEG           	0X1		; Bank 0

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

SECTION1C__Users_lisq_Desktop_AN135_Examples_ES7P169C_T21_pwm_multiprecision_pwm_multiprecision_c_STATIC	UNINTIAL       	0		; Bank 0
	ORG            	0X81		; Bank 0
_Duty	RSEG           	0X2		; 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            	0X60A9		; Bank 0
_T21OC_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            	0X60AE		; Bank 0
_T21R0L_0	RSEG           	0X1		; Bank 0
	ORG            	0X60AF		; Bank 0
_T21R0H_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            	0X60B3		; Bank 0
_T21R1L_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B4		; Bank 0
_T21R1H_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B5		; Bank 0
_T21R2L_0	RSEG           	0X1		; Bank 0
	ORG            	0X60B6		; Bank 0
_T21R2H_0	RSEG           	0X1		; Bank 0
	END
