
USB on-the-go full-speed (OTG_FS)
RM0351
1704/1830
DocID024597 Rev 5
47.15.44 OTG device control OUT endpoint 0 control register
(OTG_DOEPCTL0)
Address offset: 0xB00
Reset value: 0x0000 8000
This section describes the OTG_DOEPCTL0
register. Nonzero control endpoints use
registers for endpoints 1–3.
Bit 16
EONUM:
Even/odd frame
Applies to isochronous IN endpoints only.
Indicates the frame number in which the core transmits/receives isochronous data for this
endpoint. The application must program the even/odd frame number in which it intends to
transmit/receive isochronous data for this endpoint using the SEVNFRM and SODDFRM
fields in this register.
0: Even frame
1: Odd frame
DPID:
Endpoint data PID
Applies to interrupt/bulk IN endpoints only.
Contains the PID of the packet to be received or transmitted on this endpoint. The
application must program the PID of the first packet to be received or transmitted on this
endpoint, after the endpoint is activated. The application uses the SD0PID register field to
program either DATA0 or DATA1 PID.
0: DATA0
1: DATA1
Bit 15
USBAEP:
USB active endpoint
Indicates whether this endpoint is active in the current configuration and interface. The core
clears this bit for all endpoints (other than EP 0) after detecting a USB reset. After receiving
the SetConfiguration and SetInterface commands, the application must program endpoint
registers accordingly and set this bit.
Bits 14:11 Reserved, must be kept at reset value.
Bits 10:0
MPSIZ:
Maximum packet size
The application must program this field with the maximum packet size for the current logical
endpoint. This value is in bytes.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
EPENA EPDIS
Res.
Res.
SNAK
CNAK
Res.
Res.
Res.
Res.
STALL
SNPM
EPTYP
NAK
STS
Res.
w
r
w
w
rs
rw
r
r
r
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
USBA
EP
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
MPSIZ
r
r
r