mg84fl54b Megawin Technology, mg84fl54b Datasheet - Page 70

no-image

mg84fl54b

Manufacturer Part Number
mg84fl54b
Description
Full-speed Usb Micro-controller
Manufacturer
Megawin Technology
Datasheet
DCON (Device Control Register, Address=C0H, SYS_reset=xxxx-0xxx, Read/Write)
Bit7~4: Reserved, always write 0.
Bit3: EP3DIR-- USB Endpoint 3 Direction select.
Bit2~0: Reserved, always write 0.
UADDR (USB Address Register, Address=D8H, SYS/USB_reset=x000-0000, Read/Write)
Bit7: Reserved.
Bit6~0: UADD[6:0]-- USB Function Address.
UPCON (USB Power Control Register, Address=C9H, SYS/USB_reset=0x0x-x000, Read/Write)
Bit7: CONEN-- USB Connect Enable.
Bit6: Reserved.
Bit5: URWU-- Function Remote Wake-Up Trigger.
Bit4~3: Reserved.
Bit2: URST-- USB Reset Flag.
Bit1: URSM-- USB Resume Flag.
Bit0: USUS-- USB Suspend Flag.
IEN (Interrupt Enable Register, Address=D9H, SYS_reset=xxxx-x00x, Read/Write)
Bit7~3: Reserved.
70
CONEN
7
7
7
7
When this bit is set to “1”, EP3 will behave as an IN endpoint.
When this bit is cleared to “0”, EP3 will behave as an OUT endpoint. Default is out endpoint.
This register holds the address for the USB function. During bus enumeration, it is written with a unique
value assigned by the host.
Default is cleared to '0' after reset. FW should set '1' to enable connection to upper host/hub.
This bit is set by the uC to initiate a remote wake-up on the USB bus when uC is wake-up by external
trigger. It will be cleared by hardware when remote-wakeup is completed. Don't set this bit unless the
function is suspended
Set by hardware when the function detects the USB bus reset. If this bit is set, the chip will generate an
USRT interrupt to uC. It would be cleared by firmware when serving the USB reset interrupt. This bit is
cleared when firmware writes '1' to it.
Set by hardware when the function detects the resume state on the USB bus. If this bit is set, the chip will
generate an interrupt to uC. It would be cleared by firmware when serving the function resume interrupt.
This bit is cleared when firmware writes '1' to it.
Set by hardware when the function detects the suspend state on the USB bus. If this bit is set, the chip will
generate an interrupt to uC. During the function suspend interrupt-service routine, firmware should clear
this bit before enter the suspend mode. This bit is cleared when firmware writes '1' to it.
-
-
-
UADD6
6
6
6
6
-
-
-
UADD5
URWU
5
5
5
5
-
-
UADD4
MG84FL54B Data Sheet
4
4
4
4
-
-
-
EP3DIR
UADD3
3
3
3
3
-
-
UADD2
URST
EFSR
2
2
2
2
-
UADD1
FRSM
EF
1
1
1
1
-
UADD0
FSUS
0
0
0
0
-
-
MEGAWIN

Related parts for mg84fl54b