SN8P2200 Series
USB 1.1 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 105
Version 1.7
9.5.7 USB DATA REGISTER
Store the data, which UDP0 point to.
0A6H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
UDR0 UDR07 UDR06 UDR05 UDR04 UDR03 UDR02 UDR01 UDR00
Read/Write
R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
9.5.8 USB DATA POINTER 1 REGISTER
FIFO 1’s address pointer. Use the point to set the FIFO address for reading data from FIFO and writing data to FIFO.
0A7H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
UDP1
UDP14 UDP13 UDP12 UDP11 UDP10
Read/Write
-
-
- R/W R/W R/W R/W R/W
After
reset
- - - 0 0 0 0 0
Address [07]~address [00]: data buffer for endpoint 0. Check the bit 7 of the USTATUS register (0xA9H) to select the
right FIFO.
Address [0F]~address [08]: data buffer for endpoint 1. Check the bit 6 of the UE1E register (0xA2H) to select the right
FIFO.
Address [17]~address [10]: data buffer for endpoint 2. Check the bit 6 of the UE2E register (0xA3H) to select the right
FIFO.
Address [1F]~address [18]: data buffer for endpoint 3. Check the bit 6 of the UE3E register (0xA4H) to select the right
FIFO.
9.5.9 USB DATA REGISTER
Store the data, which UDP1 point to.
0A8H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
UDR1 UDR17 UDR16 UDR15 UDR14 UDR13 UDR12 UDR11 UDR10
Read/Write
R/W
R/W
R/W R/W R/W R/W R/W R/W
After
reset
0 0 0 0 0 0 0 0
9.5.10 USB STATUS REGISTER
The USB status register indicate the status of USB suspend request, USB bus reset and some other two indicate bits
for FIFO selection and OUT token data counter.
0A9H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
USTATUS FFS0 USPND URST UEP0OC4
UEP0OC3
UEP0OC2 UEP0OC1
UEP0OC0
Read/Write
R
R
R R/W R/W R/W R/W R/W
After
reset
- 0 0 0 0 0 0 0
Bit [4:0] UEP0C [4:0]:
USB endpoint OUT token data counter.
Bit 5
URST:
USB bus reset.
0 = Non-bus reset.
1 = Set to 1 by hardware when USB bus reset request.
Bit 6
USPND:
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 after eight instruction cycles. The bit works on MCU normal mode, sleep mode, green
mode and the slow mode with high clock turn on.
1 = Set to 1 by hardware when USB suspend request.
Bit 7
FFS0:
endpoint 0 FIFO selection control bit.
FFS0
UE0DO=1, endpoint OUT data
UE0DI=1, endpoint IN data
0
FIFO 1
FIFO 0
1
FIFO 0
FIFO 1