SN8F2280 Series
USB 2.0 Full-Speed 8-Bit Micro-Controller
9.5.7 USB ENDPOINT 0 ENABLE REGISTER
An endpoint 0 (EP0) is used to initialize and control the USB device. EP0 is bi-directional (Control pipe), as the device,
can both receive and transmit data, which provides to access the device configuration information and allows generic
USB status and control accesses.
097H
UE0R
Read/Write
After reset
Bit 7
Bit 6
UE0M1
R/W
0
Bit 5
UE0M0
R/W
0
Bit 4
Bit 3
UE0C3
R/W
0
Bit 2
UE0C2
R/W
0
Bit 1
UE0C1
R/W
0
Bit 0
UE0C0
R/W
0
-
-
-
-
-
-
Bit [6:5] UE0M [1:0]: The endpoint 0 modes determine how the SIE responds to USB traffic that the host sends to
the endpoint 0. For example, if the endpoint 0’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 0.The
bit 5 UE0M0 will auto reset to zero when the ACK transaction complete.
USB endpoint 0’s mode table
UE0M1
UE0M0
IN/OUT Token Handshake
0
0
1
1
0
1
0
1
NAK
ACK
STALL
STALL
Bit [3:0] UE0C [3: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 0 FIFO.
9.5.8 USB ENDPOINT 1 ENABLE REGISTER
The communication with the USB host using endpoint 1, endpoint 1’s FIFO is implemented as W bytes of dedicated
RAM. The endponit1 is an interrupt endpoint.
098H
UE1R
Read/Write
After reset
Bit 7
UE1E
R/W
0
Bit 6
UE1M1
R/W
0
Bit 5
UE1M0
R/W
0
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Bit 7
UE1E: USB endpoint 1 function enable bit.
0 = disable USB endpoint 1 function.
1 = enable USB endpoint 1 function.
Bit [6:5] UE1M [1:0]: The endpoint 1 modes determine how the SIE responds to USB traffic that the host sends to
the endpoint 1. For example, if the endpoint 1’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 1.The
bit 5 UE1M0 will auto reset to zero when the ACK transaction complete.
SONiX TECHNOLOGY CO., LTD
Page 109
Version 1.1