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E.0
		FP16G1	EQU	PEDGE.1
		FP50G0	EQU	PEDGE.2
		FP50G1	EQU	PEDGE.3
		FP20VSS_EN	EQU	PEDGE.5
		FUPDET_EN	EQU	PEDGE.6
		FUPDETS	EQU	PEDGE.7
	P0M	EQU	0xa0
		FP00M	EQU	P0M.0
		FP01M	EQU	P0M.1
		FP02M	EQU	P0M.2
		FP03M	EQU	P0M.3
		FP04M	EQU	P0M.4
		FP05M	EQU	P0M.5
		FP06M	EQU	P0M.6
		FP07M	EQU	P0M.7
	P1M	EQU	0xa1
		FP10M	EQU	P1M.0
		FP11M	EQU	P1M.1
		FP12M	EQU	P1M.2
		FP13M	EQU	P1M.3
		FP14M	EQU	P1M.4
		FP15M	EQU	P1M.5
		FP16M	EQU	P1M.6
		FP17M	EQU	P1M.7
	P2M	EQU	0xa2
		FP21M	EQU	P2M.1
		FP22M	EQU	P2M.2
		FP23M	EQU	P2M.3
		FP24M	EQU	P2M.4
		FP25M	EQU	P2M.5
		FP26M	EQU	P2M.6
		FP27M	EQU	P2M.7
	P4M	EQU	0xa3
		FP40M	EQU	P4M.0
		FP41M	EQU	P4M.1
		FP42M	EQU	P4M.2
		FP43M	EQU	P4M.3
		FP44M	EQU	P4M.4
		FP45M	EQU	P4M.5
		FP46M	EQU	P4M.6
		FP47M	EQU	P4M.7
	P5M	EQU	0xa4
		FP50M	EQU	P5M.0
		FP51M	EQU	P5M.1
		FP52M	EQU	P5M.2
		FP53M	EQU	P5M.3
		FP54M	EQU	P5M.4
		FP55M	EQU	P5M.5
		FP56M	EQU	P5M.6
	P0	EQU	0xa5
		FP00	EQU	P0.0
		FP01	EQU	P0.1
		FP02	EQU	P0.2
		FP03	EQU	P0.3
		FP04	EQU	P0.4
		FP05	EQU	P0.5
		FP06	EQU	P0.6
		FP07	EQU	P0.7
	P1	EQU	0xa6
		FP10	EQU	P1.0
		FP11	EQU	P1.1
		FP12	EQU	P1.2
		FP13	EQU	P1.3
		FP14	EQU	P1.4
		FP15	EQU	P1.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QU	TC2M.5
		FTC2RATE0	EQU	TC2M.4
		FTC2CKS0	EQU	TC2M.2
		FTC2PO	EQU	TC2M.1
		FPWM2OUT	EQU	TC2M.0
	TC2C	EQU	0xc1
	TC2R	EQU	0xc2
	TC2D	EQU	0xc3
	PWCH	EQU	0xc4
		FPWCH20	EQU	PWCH.5
		FPWCH21	EQU	PWCH.4
		FPWCH11	EQU	PWCH.3
		FPWCH10	EQU	PWCH.2
		FPWCH01	EQU	PWCH.1
		FPWCH00	EQU	PWCH.0
	PWES	EQU	0xc5
		FPW2ES1	EQU	PWES.3
		FPW2ES0	EQU	PWES.2
		FPW1ES1	EQU	PWES.1
		FPW1ES0	EQU	PWES.0
	P2CON	EQU	0xc6
		FP2CON7	EQU	P2CON.7
		FP2CON6	EQU	P2CON.6
		FP2CON5	EQU	P2CON.5
		FP2CON4	EQU	P2CON.4
		FP2CON3	EQU	P2CON.3
		FP2CON2	EQU	P2CON.2
		FP2CON1	EQU	P2CON.1
		FP2CON0	EQU	P2CON.0
	P4CON	EQU	0xc7
		FP4CON7	EQU	P4CON.7
		FP4CON6	EQU	P4CON.6
		FP4CON5	EQU	P4CON.5
		FP4CON4	EQU	P4CON.4
		FP4CON3	EQU	P4CON.3
		FP4CON2	EQU	P4CON.2
		FP4CON1	EQU	P4CON.1
		FP4CON0	EQU	P4CON.0
	ADM	EQU	0xc8
		FADENB	EQU	ADM.7
		FADS	EQU	ADM.6
		FEOC	EQU	ADM.5
		FGCHS	EQU	ADM.4
		FCHS3	EQU	ADM.3
		FCHS2	EQU	ADM.2
		FCHS1	EQU	ADM.1
		FCHS0	EQU	ADM.0
	ADB	EQU	0xc9
		FADB11	EQU	ADB.7
		FADB10	EQU	ADB.6
		FADB9	EQU	ADB.5
		FADB8	EQU	ADB.4
		FADB7	EQU	ADB.3
		FADB6	EQU	ADB.2
		FADB5	EQU	ADB.1
		FADB4	EQU	ADB.0
	ADR	EQU	0xca
		FAIN0IG_EN	EQU	ADR.7
		FADCKS1	EQU	ADR.6
		FADLEN	EQU	ADR.5
		FADCKS0	EQU	ADR.4
		FADB3	EQU	ADR.3
		FADB2	EQU	ADR.2
		FADB1	EQU	ADR.1
		FADB0	EQU	ADR.0
	ADT	EQU	0xcb
		FEVHENB	EQU	ADT.5
	UDA	EQU	0xcc
		FUDE	EQU	UDA.7
		FUDA6	EQU	UDA.6
		FUDA5	EQU	UDA.5
		FUDA4	EQU	UDA.4
		FUDA3	EQU	UDA.3
		FUDA2	EQU	UDA.2
		FUDA1	EQU	UDA.1
		FUDA0	EQU	UDA.0
	USTATUS	EQU	0xcd
		FERR_TIMEOUT	EQU	USTATUS.7
		FERR_SETUP	EQU	USTATUS.6
		FEP0_PRESETUP	EQU	USTATUS.5
		FEP0_OUT_STALL	EQU	USTATUS.4
		FEP0_IN_STALL	EQU	USTATUS.3
		FEP0SETUP	EQU	USTATUS.2
		FEP0IN	EQU	USTATUS.1
		FEP0OUT	EQU	USTATUS.0
	USTATUS1	EQU	0xce
		FNDT2	EQU	USTATUS1.7
		FNDT1	EQU	USTATUS1.6
		FSOF	EQU	USTATUS1.4
		FBUS_RESUME	EQU	USTATUS1.3
		FBUS_WAKEUP	EQU	USTATUS1.2
		FBUS_RST	EQU	USTATUS1.1
		FSUSPEND	EQU	USTATUS1.0
	USB_INT_EN	EQU	0xcf
		FSOF_IE	EQU	USB_INT_EN.5
		FEPN_ACK_IE	EQU	USB_INT_EN.4
		FEPN_NAK_IE	EQU	USB_INT_EN.3
		FBUS_IE	EQU	USB_INT_EN.2
		FBUSWK_IE	EQU	USB_INT_EN.1
		FUSB_IE	EQU	USB_INT_EN.0
	EP_ACK	EQU	0xd0
		FEP6_ACK	EQU	EP_ACK.5
		FEP5_ACK	EQU	EP_ACK.4
		FEP4_ACK	EQU	EP_ACK.3
		FEP3_ACK	EQU	EP_ACK.2
		FEP2_ACK	EQU	EP_ACK.1
		FEP1_ACK	EQU	EP_ACK.0
	EP_NAK	EQU	0xd1
		FEP6_NAK	EQU	EP_NAK.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QU	PS2M.2
		FSDAM	EQU	PS2M.1
		FSCKM	EQU	PS2M.0
	STKP	EQU	0xef
		FGIE	EQU	STKP.7
		FLVD24	EQU	STKP.6
		FLVD33	EQU	STKP.5
		FULVD36	EQU	STKP.4
		FSTKPB2	EQU	STKP.2
		FSTKPB1	EQU	STKP.1
		FSTKPB0	EQU	STKP.0
	STK7L	EQU	0xf0
	STK7H	EQU	0xf1
	STK6L	EQU	0xf2
	STK6H	EQU	0xf3
	STK5L	EQU	0xf4
	STK5H	EQU	0xf5
	STK4L	EQU	0xf6
	STK4H	EQU	0xf7
	STK3L	EQU	0xf8
	STK3H	EQU	0xf9
	STK2L	EQU	0xfa
	STK2H	EQU	0xfb
	STK1L	EQU	0xfc
	STK1H	EQU	0xfd
	STK0L	EQU	0xfe
	STK0H	EQU	0xff
@RST_WDT	macro
		   MOV  A, #0x5A
		   B0MOV  WDTR, A
	endm

SleepMode	macro	
		B0BSET	FCPUM0
	endm

GreenMode	macro	
		B0BSET	FCPUM1
		NOP
		NOP
	endm

SlowMode	macro	
		B0BSET	FCLKMD
		B0BSET	FSTPHX
	endm

Slow2Normal	macro	
		B0BCLR	FSTPHX
		NOP
		NOP
		NOP
		B0BCLR	FCLKMD
	endm

Set_P3_Input_Pullup	macro	
    DW	0x2D00 		;mov	a, #0x00	; Port 3: Input pull-up high
    DW 	0x2FC3 		;b0mov	P3M,a
    DW	0x2DFF 		;mov	a, #0xFF
    DW	0x2FD3 		;b0mov	P3,a
    DW	0x2FE3 		;b0mov	P3UR,a
	endm

endif
