SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
9.5 USB REGISTERS
9.5.1 USB DEVICE ADDRESS REGISTER
The USB Device Address Register (UDA) contains a 7-bit USB device address and one bit to enable the USB function.
This register is cleared during a reset, setting the USB device address to zero and disable the USB function.
091H
UDA
Read/Write
After reset
Bit 7
UDE
R/W
0
Bit 6
UDA6
R/W
0
Bit 5
UDA5
R/W
0
Bit 4
UDA4
R/W
0
Bit 3
UDA3
R/W
0
Bit 2
UDA2
R/W
0
Bit 1
UDA1
R/W
0
Bit 0
UDA0
R/W
0
Bit 7
UDE: Device Function Enable. This bit must be enabled by firmware to enable the USB device function.
0 = Disable USB device function.
1 = Enable USB device function.
Bit [6:0]
UDA [6:0]: These bits must be set by firmware during the USB enumeration process (i.e., SetAddress) to
the non-zero address assigned by the USB host.
9.5.2 USB STATUS REGISTER
The USB status register indicates the status of USB.
092H
Bit 7
Bit 6
Bit 5
SOF
R/W
0
Bit 4
Bit 3
Bit 2
Bit 1
EP0IN
R/W
0
Bit 0
EP0OUT
R/W
USTATUS CRCERR PKTERR
Read/Write
After reset
BUS_RST SUSPEND EP0SETUP
R/W
0
R/W
0
R
0
R
0
R/W
0
0
Bit 7
Bit 6
Bit 5
CRCERR: USB data CRC check error.
0 = Non-USB data CRC check error, cleared by firmware.
1 = Set to 1 by hardware when USB data CRC check error occur.
PKTERR: USB packet error.
0 = Non-USB packet error, cleared by firmware.
1 = Set to 1 by hardware when USB packet error occur.
SOF: Indicate the USB SIE’s SOF packet is received
0 = Non USB SIE’s SOF packet received.
1 = If SOF_INT_EN = 1 then this bit will be set to 1 by hardware when the SOF packet is received.
Otherwise the bit will always be 0.
Bit 4
BUS_RST: USB bus reset.
0 = Non-USB bus reset.
1 = Set to 1 by hardware when USB bus reset request.
SONiX TECHNOLOGY CO., LTD
Page 106
Version 1.1