
.module SUSP
.globl _EZUSB_Susp

USBCS	= 0x7FD6	; XDATA
PCON	= 0x87		; DATA

.area CSEG (CODE)

_EZUSB_Susp:	mov	dptr,#USBCS	; Clear the Wake Source bit in
		movx	a,@dptr		; the USBCS register
		orl	a,#0x80
		movx	@dptr,a

		orl	PCON,#0b00000001; Place the processor in idle

		nop			; Insert some meaningless instruction
		nop			; fetches to insure that the processor
		nop			; suspends and resumes before RET
		nop
		nop
er_end:		ret

