SN8F2250B 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.
090H
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 [6:0]
Bit 7
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.
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.
9.5.2 USB STATUS REGISTER
The USB status register indicates the status of USB.
091H
Bit 7
Bit 6
Bit 5
SOF
R/W
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
EP0_OUT
R/W
USTATUS
Read/Write
After reset
BUS_RST SUSPEND EP0_SETUP EP0_IN
R
0
R
0
R/W
0
R/W
0
0
Bit 0
Bit 1
Bit 2
EP0_OUT : Endpoint 0 OUT Token Received.
0 = Endpoint 0 has no OUT token received.
1 = A valid OUT packet has been received. The bit is set to 1 after the last received packet in an OUT
transaction.
EP0_IN : Endpoint 0 IN Token Received.
0 = Endpoint 0 has no IN token received.
1 = A valid IN packet has been received. The bit is set to 1 after the last received packet in an IN
transaction.
EP0_SETUP : Endpoint 0 SETUP Token Received.
0 = Endpoint 0 has no SETUP token received.
1 = A valid SETUP packet has been received. The bit is set to 1 after the last received packet in an SETUP
transaction. While the bit is set to 1, the HOST can not write any data in to EP0 FIFO. This prevents SIE
from overwriting an incoming SETUP transaction before firmware has a chance to read the SETUP data.
Bit 3
SUSPEND: indicate USB suspend status.
0 = Non-suspend status. When MCU wakeup from sleep mode by USB resume wakeup request, the bit will
changes from 1 to 0 automatically.
1 = Set to 1 by hardware when USB suspend request.
Bit 4
Bit 5
BUS_RST: USB bus reset.
0 = Non-USB bus reset.
1 = Set to 1 by hardware when USB bus reset request.
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 set to 1 by hardware when the SOF packet is received. Otherwise
the bit will always be 0. Clear this bit and also the bit 7 of INTRQ register (0x C8) by firmware.
SONiX TECHNOLOGY CO., LTD
Page 104
Version 1.1