SN8F2250B Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
9.5.10 USB ENDPOINT 3 ENABLE REGISTER
The communication with the USB host using endpoint 3, endpoint 3’s FIFO is implemented as 8 bytes of dedicated
RAM. The endpoint 3 is an interrupt endpoint.
099H
UE3R
Read/Write
After reset
Bit 7
UE3E
R/W
0
Bit 6
UE3M1
R/W
0
Bit 5
UE3M0
R/W
0
Bit 4
UE3C4
R/W
0
Bit 3
UE3C3
R/W
0
Bit 2
UE3C2
R/W
0
Bit 1
UE3C1
R/W
0
Bit 0
UE3C0
R/W
0
Bit [4:0] UE3C [4:0]: Indicate the number of data bytes in a transaction: For IN transactions, firmware loads the
count with the number of bytes to be transmitted to the host from the endpoint 3 FIFO.
Bit [6:5] UE3M [1:0]: The endpoint 3 modes determine how the SIE responds to USB traffic that the host sends to
the endpoint 3. For example, if the endpoint 3’s mode bit is set to 00 that is NAK IN/OUT mode as shown in
Table, The USB SIE will send NAK handshakes in response to any IN/OUT token set to the endpoint 3. The
bit 5 UE3M0 will auto reset to zero when the ACK transaction complete.
USB endpoint 3’s mode table
UE3M1
UE3M0
IN/OUT Token Handshake
0
0
1
1
0
1
0
1
NAK
ACK
STALL
STALL
Bit 7
UE3E: USB endpoint 3 function enable bit.
0 = disable USB endpoint 3 function.
1 = enable USB endpoint 3 function.
9.5.11 USB DATA POINTER REGISTER
USB FIFO address pointer. Use the point to set the FIFO address for reading data from USB FIFO and writing data to
USB FIFO.
0A3H
UDP0
Read/Write
After reset
Bit 7
UDP07
R/W
0
Bit 6
UDP06
R/W
0
Bit 5
UDP05
R/W
0
Bit 4
UDP04
R/W
0
Bit 3
UDP03
R/W
0
Bit 2
UDP02
R/W
0
Bit 1
UDP01
R/W
0
Bit 0
UDP00
R/W
0
Address [07]~address [00]: data buffer for endpoint 0.
Address [17]~address [08]: data buffer for endpoint 1.
Address [27]~address [18]: data buffer for endpoint 2.
Address [37]~address [28]: data buffer for endpoint 3.
9.5.12 USB DATA READ/WRITE REGISTER
0A5H
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
UDR0_R
Read/Write
After reset
UDR0_R7 UDR0_R6 UDR0_R5 UDR0_R4 UDR0_R3 UDR0_R2 UDR0_R1 UDR0_R0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
UDR0_R: Read the data from USB FIFO which UDP0 register point to.
0A6H Bit 7 Bit 6 Bit 5 Bit 4 Bit 3
Bit 2
Bit 1
Bit 0
UDR0_W UDR0_W7 UDR0_W6 UDR0_W5 UDR0_W4 UDR0_W3 UDR0_W2 UDR0_W1 UDR0_W0
Read/Write
After reset
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
R/W
0
UDR0_W: Write the data to USB FIFO which UDP0 register point to.
SONiX TECHNOLOGY CO., LTD
Page 108
Version 1.1