USBHS — Universal Serial Bus High Speed

The USBHS (USB high speed) peripheral is a USB 2.0 device that supports USB 2.0 and is backward compatible with the USB 1.1 Specification.

The following are main features of USBHS:

USB pins

The USBHS peripheral features a number of dedicated pins which can be grouped into two categories: signal and power.

Signal pins connect to the USB device and consist of the D+ and D- pins. These are dedicated pins and not available as standard GPIO pins. The data line does not need serial resistors. TXRTUNE connects to a tuning resistor on the PCB. The USBHS does not have an ID pin. The USBHS peripheral is implemented according to the USB Specification v2.0, 5V Short Circuit Withstand ECN Requirement Change, meaning these pins are not 5 V tolerant.

See Reference circuitry for the reference circuit diagram.

The signal pins are operational when the following are true:
  • The device is powered
  • VBUS is in the valid voltage range
  • USBHS is enabled by the software driver
Note: The D+ and D- pins are impedance controlled signals and must be routed on the PCB according to the USB standard. See the development kit user guide for a routing example.

TXRTUNE resistor

An external resistor with 200 Ω resistance and 1% tolerance must be connected from the TXRTUNE pin to the VSS pin to calibrate a 45 Ω source impedance for the D+ and D- pins. Using a constant current output from the TXRTUNE pin and measuring the voltage over the external resistor, the nominal voltage over the resistor will be 400 mV.

VBUS detection

The VBUS pin has a voltage detector for both rising and falling voltage. This means it will detect the USB cable being connected and disconnected. The voltage detector generates events that are picked up by the USBHS software driver, which can be used as wakeup-sources for the device.

For pin assignments, see Pin assignments.

Interrupt sharing

USBHS and USBHSCORE share the same interrupt, and interrupts are generated through USBHS.

The interrupts are enabled and disabled using the mechanisms available in USBHSCORE, using registers such as USBHSCORE.GINTSTS and USBHSCORE.GINTMSK.

USBHS not in use

If USBHS is not used in an application, the following applies.

All USBHS pins can be left floating (not connected). See USB pins for the list of USBHS pins.

Do not enable USBHS or the USB regulator.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
USBHS : S
USBHS : NS
GLOBAL0x5005A000
0x4005A000
USSSANoUSBHS

Configuration

InstanceDomainConfiguration
USBHS : S
USBHS : NS
GLOBAL

Has Start of Frame (SOF) event.

RTUNE method for calibrating DP and DM 45Ohm source impedance without external TXRTUNE resistor available.

Includes STATUS register

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Start the USB peripheral.
TASKS_STOP0x004Stop the USB peripheral
PUBLISH_SOF0x180Publish configuration for SOF event.
ENABLE0x400Enable USB peripheral.
STATUS0x408This register contains status bits for the USBHS
PHY.CONFIG0x440USB PHY parameter overrides
PHY.CLOCK0x444USB PHY clock configurations
PHY.BATTCHRG0x448Battery Charging Configuration
PHY.BATTCHRGSTATUS0x44CBattery charger input signals
PHY.INPUTOVERRIDE0x458Enables overriding of individual signals to the PHY, the override values are set in PHY.OVERRIDEVALUES
PHY.OVERRIDEVALUES0x45CValues that are used to override the input signals to the PHY.
PHY.RTUNE0x464The RTUNE mode is an alternative method for calibrating the DP and DM 45-Ohm source impedance.

TASKS_START

Address offset: 0x000

Start the USB peripheral.

To start USB peripheral, it needs to be enabled using the ENABLE register first.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_START

Start the USB peripheral.

To start USB peripheral, it needs to be enabled using the ENABLE register first.

Trigger1Trigger task

TASKS_STOP

Address offset: 0x004

Stop the USB peripheral

This bit can be cleared to disable the clock to the USB core. By default the clock is enabled when ENABLE.CORE is set. To enable the clock again run the START task.

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOP

Stop the USB peripheral

This bit can be cleared to disable the clock to the USB core. By default the clock is enabled when ENABLE.CORE is set. To enable the clock again run the START task.

Trigger1Trigger task

PUBLISH_SOF

Address offset: 0x180

Publish configuration for SOF event.

In Host mode, this event triggers every time a Start Of Frame (SOF) is generated in the USB controller. In Device mode, this signal triggers every time a SOF token is received from the USB host or when a SOF token is missed at the start of frame.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHIDX[0..255]DPPI channel to publish to
BRWENEnable publishing of SOF event
Disabled0Disable publishing
Enabled1Enable publishing

ENABLE

Address offset: 0x400

Enable USB peripheral.

To enable USB peripheral, both USB Controller and USB PHY need to be enabled

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCOREEnable USB Controller
Disabled0USB Controller disabled.
Enabled1USB Controller enabled.
BRWPHYEnable USB PHY
Disabled0USB PHY disabled.
Enabled1USB PHY enabled.

STATUS

Address offset: 0x408

This register contains status bits for the USBHS

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCOREIndicates wether the USBHS core is ready after a START task
NotReady0The USBHS core is not ready, and register access to the USBHSCORE registers is not possible. Access to USBHSCORE.PCGCCTL is possible even when NotReady.
Ready1The USBHS core is ready, and register access to the USBHS.CORE registers is possible

PHY.CONFIG

Address offset: 0x440

USB PHY parameter overrides

Bit number313029282726252423222120191817161514131211109876543210
IDLKKJJIIHHHHGGGGFFEEDDDCCCBBBBAA
Reset 0x5533D6F001010101001100111101011011110000
IDR/WFieldValue IDValueDescription
ARWPLLITUNE[0x0..0x3]PLL Integral Path Tune
BRWPLLPTUNE[0x0..0xf]PLL Proportional Path Tune
CRWCOMPDISTUNE0[0x0..0x7]Disconnect Threshold Adjustment
DRWSQRXTUNE0[0x0..0x3]Squelch Threshold Adjustment
ERWVDATREFTUNE0[0x0..0x3]Data Detect Voltage Adjustment
FRWTXHSXVTUNE0[0x0..0x2]Transmitter High-Speed Crossover Adjustment
GRWTXFSLSTUNE0[0x0..0x7]FS/LS Source Impedance Adjustment
HRWTXVREFTUNE0[0x0..0x7]HS DC Voltage Level Adjustment
IRWTXRISETUNE0[0x0..0x2]HS Transmitter Rise/Fall Time Adjustment
JRWTXRESTUNE0[0x0..0x2]USB Source Impedance Adjustment
KRWTXPREEMPAMPTUNE0[0x0..0x2]HS Transmitter Pre-Emphasis Current Control
LRWTXPREEMPPULSETUNE0[0x0..0x1]HS Transmitter Pre-Emphasis Duration Control

PHY.CLOCK

Address offset: 0x444

USB PHY clock configurations

Bit number313029282726252423222120191817161514131211109876543210
IDCBAAA
Reset 0x0000001A00000000000000000000000000011010
IDR/WFieldValue IDValueDescription
ARWFSELSelect reference clock frequency
Clock19200KHz0

Reference clock is 19.2MHz.

The PLLBTUNE must be set to 1.

Clock20000KHz1

Reference clock is 20MHz.

The PLLBTUNE must be set to 1.

Clock24000KHz2

Reference clock is 24MHz.

The PLLBTUNE must be set to 1.

Clock50000KHz7

Reference clock is 50MHz.

The PLLBTUNE must be set to 0.

BRWPLLBTUNEPLL bandwidth adjustment
Disabled0PLL bandwidth adjustment disabled.
Enabled1PLL bandwidth adjustment enabled.
CRWCOMMONONNCommon block power down control
POWERED0The REFCLOCK_LOGIC,bias and PLL blocks are powered in sleep or suspend mode.
SUSPEND1The REFCLOCK_LOGIC, bias and PLL blocks are powered down in suspend mode and bias and PLL blocks are powered down in sleep mode.

PHY.BATTCHRG

Address offset: 0x448

Battery Charging Configuration

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCHRGSEL0Battery charging source select
SourceDP0SinkDM00Data source voltage (VDAT_SRC) is sourced onto DP0 and sunk from DM0
SourceDM0SinkDP01Data source voltage (VDAT_SRC) is sourced onto DM0 and sunk from DP0
BRWVDATENB0Attach/Connect Detection Enable
Disabled0Data detect voltage (CHG_DET) is disabled
Enabled1Data detect voltage (CHG_DET) is enabled
CRWVDATSRCENB0Battery Charging Source Select
Disabled0Data source voltage (VDAT_SRC) is disabled
Enabled1Data source voltage (VDAT_SRC) is enabled

PHY.BATTCHRGSTATUS

Address offset: 0x44C

Battery charger input signals

Bit number313029282726252423222120191817161514131211109876543210
IDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCHGDET
BRFSVPLUS
CRFSVMINUS

PHY.INPUTOVERRIDE

Address offset: 0x458

Enables overriding of individual signals to the PHY, the override values are set in PHY.OVERRIDEVALUES

The override values are set in the OVERRIDEVALUES register. When INPUTOVERRIDE is enabled for a signal the input signals to the PHY is driven by the OVERRIDEVALUES register, when INPUTOVERRIDE is disabled the input signals to the PHY is driven by the USB controller for normal operation.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBBAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWOPMODE0
Disabled0Overrides are disabled
Enabled3Overrides are enabled
BRWXCVRSEL0
Disabled0Overrides are disabled
Enabled3Overrides are enabled
CRWDPPULLDOWN
DRWDMPULLDOWN
ERWSUSPENDM0
FRWVBUSVALID
GRWIDOverrides OTG ID pin signal

PHY.OVERRIDEVALUES

Address offset: 0x45C

Values that are used to override the input signals to the PHY.

These values defines the values of the input signals to the PHY when the INPUTOVERRIDE is enabled.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBBAA
Reset 0x0200000000000010000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWOPMODE0
BRWXCVRSEL0
CRWDPPULLDOWNThis field controls the pull-down resistor on D+
Enable1The pull-down resistor on D+ is enabled
Disable0The pull-down resistor on D+ is disabled
DRWDMPULLDOWNThis field controls the pull-down resistor on D-
Enable1The pull-down resistor on D- is enabled
Disable0The pull-down resistor on D- is disabled
ERWSUSPENDM0
FRWVBUSVALID

Signals to the PHY that VBUS is valid, and enables the pull-up resistor on D+

This field is not functional in Host mode.

Valid1VBUS is valid, and the pull-up resistor on D+ is enabled
NotValid0VBUS is not valid, and the pull-up resistor on D+ is disabled.
GRWIDOverrides OTG ID pin signal
Device1Role is Device
Host0Role is Host.

PHY.RTUNE

Address offset: 0x464

The RTUNE mode is an alternative method for calibrating the DP and DM 45-Ohm source impedance.

When this method is used, the USBHS REXT resistor does not need to be connected and can be left floating. This RTUNE mode is selected by setting RTUNESEL to 0, and the tune calibration value is set by the RCALCODE input bus.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBA
Reset 0x0000000F00000000000000000000000000001111
IDR/WFieldValue IDValueDescription
ARWRTUNESELThis signal selects the tuning method for the high-speed DP and DM source impedance of the USBHS.
TXRTUNE1The TXRTUNE pin, external resistor REXT, and resulting internal digital calibration code are used for tuning the high-speed source impedance.
RTUNE0The RCALCODE value is used for tuning the high-speed source impedance.
BRWRCALCODE

This signal is used to tune the internal 200 ohm resistor or the USBHS DP and DM high-speed source impedance.

All values from 4'b1111 to 4'b0000 are valid. A value of 4'b1111 provides the lowest impedance on DP/DM, and a value of 4'b0000 provides the highest impedance on DP/DM

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
USBHSCORE : S
USBHSCORE : NS
GLOBAL0x50020000
0x40020000
USSSANoUSBHSCORE

Register overview

RegisterOffsetTZDescription
GOTGCTL0x000Control and Status Register
GOTGINT0x004Interrupt Register
GAHBCFG0x008AHB Configuration Register
GUSBCFG0x00CUSB Configuration Register
GRSTCTL0x010Reset Register
GINTSTS0x014Interrupt STATUS Register
GINTMSK0x018Interrupt Mask Register
GRXSTSR0x01CReceive Status Debug Read Register
GRXSTSP0x020Receive Status Read/Pop Register
GRXFSIZ0x024Receive FIFO Size Register
GNPTXFSIZ0x028Non-periodic Transmit FIFO Size Register
GNPTXSTS0x02CNon-periodic Transmit FIFO/Queue Status Register
GGPIO0x038General Purpose Input/Output Register
GUID0x03CUser ID Register
GSNPSID0x040Synopsys ID Register
GHWCFG10x044User Hardware Configuration 1 Register
GHWCFG20x048User Hardware Configuration 2 Register
GHWCFG30x04CUser Hardware Configuration 3 Register
GHWCFG40x050User Hardware Configuration 4 Register
GLPMCFG0x054LPM Config Register
GPWRDN0x058Global Power Down Register
GDFIFOCFG0x05CGlobal DFIFO Configuration Register
GINTMSK20x068Interrupt Mask Register 2
GINTSTS20x06CInterrupt Register 2
HPTXFSIZ0x100Host Periodic Transmit FIFO Size Register
DIEPTXF[n]0x104Device IN Endpoint Transmit FIFO 1 Size Register
HCFG0x400Host Configuration Register
HFIR0x404Host Frame Interval Register
HFNUM0x408Host Frame Number/Frame Time Remaining Register
HPTXSTS0x410Host Periodic Transmit FIFO/Queue Status Register
HAINT0x414Host All Channels Interrupt Register
HAINTMSK0x418Host All Channels Interrupt Mask Register
HPRT0x440Host Port Control and Status Register
HC[n].CHAR0x500Host Channel Characteristics Register 0
HC[n].SPLT0x504Host Channel Split Control Register 0
HC[n].INT0x508Host Channel Interrupt Register 0
HC[n].INTMSK0x50CHost Channel Interrupt Mask Register 0
HC[n].TSIZ0x510Host Channel Transfer Size Register 0
HC[n].DMA0x514Host Channel DMA Address Register 0
DCFG0x800Device Configuration Register
DCTL0x804Device Control Register
DSTS0x808Device Status Register
DIEPMSK0x810Device IN Endpoint Common Interrupt Mask Register
DOEPMSK0x814Device OUT Endpoint Common Interrupt Mask Register
DAINT0x818Device All Endpoints Interrupt Register
DAINTMSK0x81CDevice All Endpoints Interrupt Mask Register
DVBUSDIS0x828Device VBUS Discharge Time Register
DVBUSPULSE0x82CDevice VBUS Pulsing Time Register
DTHRCTL0x830Device Threshold Control Register
DIEPEMPMSK0x834Device IN Endpoint FIFO Empty Interrupt Mask Register
DIEPCTL00x900Device Control IN Endpoint 0 Control Register
DIEPINT00x908Device IN Endpoint 0 Interrupt Register
DIEPTSIZ00x910Device IN Endpoint 0 Transfer Size Register
DIEPDMA00x914Device IN Endpoint 0 DMA Address Register
DTXFSTS00x918Device IN Endpoint Transmit FIFO Status Register 0
DIEPCTL10x920Device Control IN Endpoint Control Register 1
DIEPINT10x928Device IN Endpoint Interrupt Register 1
DIEPTSIZ10x930Device IN Endpoint Transfer Size Register 1
DIEPDMA10x934Device IN Endpoint DMA Address Register 1
DTXFSTS10x938Device IN Endpoint Transmit FIFO Status Register 1
DIEPCTL20x940Device Control IN Endpoint Control Register 2
DIEPINT20x948Device IN Endpoint Interrupt Register 2
DIEPTSIZ20x950Device IN Endpoint Transfer Size Register 2
DIEPDMA20x954Device IN Endpoint DMA Address Register 2
DTXFSTS20x958Device IN Endpoint Transmit FIFO Status Register 2
DIEPCTL30x960Device Control IN Endpoint Control Register 3
DIEPINT30x968Device IN Endpoint Interrupt Register 3
DIEPTSIZ30x970Device IN Endpoint Transfer Size Register 3
DIEPDMA30x974Device IN Endpoint DMA Address Register 3
DTXFSTS30x978Device IN Endpoint Transmit FIFO Status Register 3
DIEPCTL40x980Device Control IN Endpoint Control Register 4
DIEPINT40x988Device IN Endpoint Interrupt Register 4
DIEPTSIZ40x990Device IN Endpoint Transfer Size Register 4
DIEPDMA40x994Device IN Endpoint DMA Address Register 4
DTXFSTS40x998Device IN Endpoint Transmit FIFO Status Register 4
DIEPCTL50x9A0Device Control IN Endpoint Control Register 5
DIEPINT50x9A8Device IN Endpoint Interrupt Register 5
DIEPTSIZ50x9B0Device IN Endpoint Transfer Size Register 5
DIEPDMA50x9B4Device IN Endpoint DMA Address Register 5
DTXFSTS50x9B8Device IN Endpoint Transmit FIFO Status Register 5
DIEPCTL60x9C0Device Control IN Endpoint Control Register 6
DIEPINT60x9C8Device IN Endpoint Interrupt Register 6
DIEPTSIZ60x9D0Device IN Endpoint Transfer Size Register 6
DIEPDMA60x9D4Device IN Endpoint DMA Address Register 6
DTXFSTS60x9D8Device IN Endpoint Transmit FIFO Status Register 6
DIEPCTL70x9E0Device Control IN Endpoint Control Register 7
DIEPINT70x9E8Device IN Endpoint Interrupt Register 7
DIEPTSIZ70x9F0Device IN Endpoint Transfer Size Register 7
DIEPDMA70x9F4Device IN Endpoint DMA Address Register 7
DTXFSTS70x9F8Device IN Endpoint Transmit FIFO Status Register 7
DIEPCTL80xA00Device Control IN Endpoint Control Register 8
DIEPINT80xA08Device IN Endpoint Interrupt Register 8
DIEPTSIZ80xA10Device IN Endpoint Transfer Size Register 8
DIEPDMA80xA14Device IN Endpoint DMA Address Register 8
DTXFSTS80xA18Device IN Endpoint Transmit FIFO Status Register 8
DIEPCTL90xA20Device Control IN Endpoint Control Register 9
DIEPINT90xA28Device IN Endpoint Interrupt Register 9
DIEPTSIZ90xA30Device IN Endpoint Transfer Size Register 9
DIEPDMA90xA34Device IN Endpoint DMA Address Register 9
DTXFSTS90xA38Device IN Endpoint Transmit FIFO Status Register 9
DIEPCTL100xA40Device Control IN Endpoint Control Register 10
DIEPINT100xA48Device IN Endpoint Interrupt Register 10
DIEPTSIZ100xA50Device IN Endpoint Transfer Size Register 10
DIEPDMA100xA54Device IN Endpoint DMA Address Register 10
DTXFSTS100xA58Device IN Endpoint Transmit FIFO Status Register 10
DIEPCTL110xA60Device Control IN Endpoint Control Register 11
DIEPINT110xA68Device IN Endpoint Interrupt Register 11
DIEPTSIZ110xA70Device IN Endpoint Transfer Size Register 11
DIEPDMA110xA74Device IN Endpoint DMA Address Register 11
DTXFSTS110xA78Device IN Endpoint Transmit FIFO Status Register 11
DIEPCTL120xA80Device Control IN Endpoint Control Register 12
DIEPINT120xA88Device IN Endpoint Interrupt Register 12
DIEPTSIZ120xA90Device IN Endpoint Transfer Size Register 12
DIEPDMA120xA94Device IN Endpoint DMA Address Register 12
DTXFSTS120xA98Device IN Endpoint Transmit FIFO Status Register 12
DIEPCTL130xAA0Device Control IN Endpoint Control Register 13
DIEPINT130xAA8Device IN Endpoint Interrupt Register 13
DIEPTSIZ130xAB0Device IN Endpoint Transfer Size Register 13
DIEPDMA130xAB4Device IN Endpoint DMA Address Register 13
DTXFSTS130xAB8Device IN Endpoint Transmit FIFO Status Register 13
DIEPCTL140xAC0Device Control IN Endpoint Control Register 14
DIEPINT140xAC8Device IN Endpoint Interrupt Register 14
DIEPTSIZ140xAD0Device IN Endpoint Transfer Size Register 14
DIEPDMA140xAD4Device IN Endpoint DMA Address Register 14
DTXFSTS140xAD8Device IN Endpoint Transmit FIFO Status Register 14
DIEPCTL150xAE0Device Control IN Endpoint Control Register 15
DIEPINT150xAE8Device IN Endpoint Interrupt Register 15
DIEPTSIZ150xAF0Device IN Endpoint Transfer Size Register 15
DIEPDMA150xAF4Device IN Endpoint DMA Address Register 15
DTXFSTS150xAF8Device IN Endpoint Transmit FIFO Status Register 15
DOEPCTL00xB00Device Control OUT Endpoint 0 Control Register
DOEPINT00xB08Device OUT Endpoint 0 Interrupt Register
DOEPTSIZ00xB10Device OUT Endpoint 0 Transfer Size Register
DOEPDMA00xB14Device OUT Endpoint 0 DMA Address Register
DOEPCTL10xB20Device Control OUT Endpoint Control Register 1
DOEPINT10xB28Device OUT Endpoint Interrupt Register 1
DOEPTSIZ10xB30Device OUT Endpoint Transfer Size Register 1
DOEPDMA10xB34Device OUT Endpoint DMA Address Register 1
DOEPCTL20xB40Device Control OUT Endpoint Control Register 2
DOEPINT20xB48Device OUT Endpoint Interrupt Register 2
DOEPTSIZ20xB50Device OUT Endpoint Transfer Size Register 2
DOEPDMA20xB54Device OUT Endpoint DMA Address Register 2
DOEPCTL30xB60Device Control OUT Endpoint Control Register 3
DOEPINT30xB68Device OUT Endpoint Interrupt Register 3
DOEPTSIZ30xB70Device OUT Endpoint Transfer Size Register 3
DOEPDMA30xB74Device OUT Endpoint DMA Address Register 3
DOEPCTL40xB80Device Control OUT Endpoint Control Register 4
DOEPINT40xB88Device OUT Endpoint Interrupt Register 4
DOEPTSIZ40xB90Device OUT Endpoint Transfer Size Register 4
DOEPDMA40xB94Device OUT Endpoint DMA Address Register 4
DOEPCTL50xBA0Device Control OUT Endpoint Control Register 5
DOEPINT50xBA8Device OUT Endpoint Interrupt Register 5
DOEPTSIZ50xBB0Device OUT Endpoint Transfer Size Register 5
DOEPDMA50xBB4Device OUT Endpoint DMA Address Register 5
DOEPCTL60xBC0Device Control OUT Endpoint Control Register 6
DOEPINT60xBC8Device OUT Endpoint Interrupt Register 6
DOEPTSIZ60xBD0Device OUT Endpoint Transfer Size Register 6
DOEPDMA60xBD4Device OUT Endpoint DMA Address Register 6
DOEPCTL70xBE0Device Control OUT Endpoint Control Register 7
DOEPINT70xBE8Device OUT Endpoint Interrupt Register 7
DOEPTSIZ70xBF0Device OUT Endpoint Transfer Size Register 7
DOEPDMA70xBF4Device OUT Endpoint DMA Address Register 7
DOEPCTL80xC00Device Control OUT Endpoint Control Register 8
DOEPINT80xC08Device OUT Endpoint Interrupt Register 8
DOEPTSIZ80xC10Device OUT Endpoint Transfer Size Register 8
DOEPDMA80xC14Device OUT Endpoint DMA Address Register 8
DOEPCTL90xC20Device Control OUT Endpoint Control Register 9
DOEPINT90xC28Device OUT Endpoint Interrupt Register 9
DOEPTSIZ90xC30Device OUT Endpoint Transfer Size Register 9
DOEPDMA90xC34Device OUT Endpoint DMA Address Register 9
DOEPCTL100xC40Device Control OUT Endpoint Control Register 10
DOEPINT100xC48Device OUT Endpoint Interrupt Register 10
DOEPTSIZ100xC50Device OUT Endpoint Transfer Size Register 10
DOEPDMA100xC54Device OUT Endpoint DMA Address Register 10
DOEPCTL110xC60Device Control OUT Endpoint Control Register 11
DOEPINT110xC68Device OUT Endpoint Interrupt Register 11
DOEPTSIZ110xC70Device OUT Endpoint Transfer Size Register 11
DOEPDMA110xC74Device OUT Endpoint DMA Address Register 11
DOEPCTL120xC80Device Control OUT Endpoint Control Register 12
DOEPINT120xC88Device OUT Endpoint Interrupt Register 12
DOEPTSIZ120xC90Device OUT Endpoint Transfer Size Register 12
DOEPDMA120xC94Device OUT Endpoint DMA Address Register 12
DOEPCTL130xCA0Device Control OUT Endpoint Control Register 13
DOEPINT130xCA8Device OUT Endpoint Interrupt Register 13
DOEPTSIZ130xCB0Device OUT Endpoint Transfer Size Register 13
DOEPDMA130xCB4Device OUT Endpoint DMA Address Register 13
DOEPCTL140xCC0Device Control OUT Endpoint Control Register 14
DOEPINT140xCC8Device OUT Endpoint Interrupt Register 14
DOEPTSIZ140xCD0Device OUT Endpoint Transfer Size Register 14
DOEPDMA140xCD4Device OUT Endpoint DMA Address Register 14
DOEPCTL150xCE0Device Control OUT Endpoint Control Register 15
DOEPINT150xCE8Device OUT Endpoint Interrupt Register 15
DOEPTSIZ150xCF0Device OUT Endpoint Transfer Size Register 15
DOEPDMA150xCF4Device OUT Endpoint DMA Address Register 15
PCGCCTL0xE00Power and Clock Gating Control Register
GSTARFXDIS0xF00Global STAR Fix Disable Register
DWCOTGDFIFO[n].DATA[o]0x1000Data FIFO Access Register Map 0
DWCOTGDFIFODIRECTACCESS.DATA[n]0x11000Data FIFO Direct Access Register Map

GOTGCTL

Address offset: 0x000

Control and Status Register

The OTG Control and Status register controls the behavior and reflects the status of the OTG function of the controller.

Bit number313029282726252423222120191817161514131211109876543210
IDPONNNNNMLKJIHGFEDCBA
Reset 0x000D000000000000000011010000000000000000
IDR/WFieldValue IDValueDescription
ARWVBVALIDOVEN

Mode: Host only. VBUS Valid Override Enable (VbvalidOvEn)

This bit is used to enable/disable the software to override the Bvalid signal using the GOTGCTL.VbvalidOvVal.

DISABLED0Override is disabled and bvalid signal from the respective PHY selected is used internally by the controller
ENABLED1The vbus-valid signal received from the PHY is overridden with GOTGCTL.VbvalidOvVal
BRWVBVALIDOVVAL

Mode: Host only. VBUS Valid OverrideValue (VbvalidOvVal)

This bit is used to set Override value for vbusvalid signal when GOTGCTL.VbvalidOvEn is set.

SET00vbusvalid value when GOTGCTL.VbvalidOvEn = 1
SET11vbusvalid value when GOTGCTL.VbvalidOvEn is 1
CRWAVALIDOVEN

Mode: Host only. A-Peripheral Session Valid Override Enable (AvalidOvEn)

This bit is used to enable/disable the software to override the Avalid signal using the GOTGCTL.AvalidOvVal.

DISABLED0Derive AValid from PHY
ENABLED1Derive Avalid from GOTGCTL.AvalidOvVal
DRWAVALIDOVVAL

Mode: Host only. A-Peripheral Session Valid OverrideValue (AvalidOvVal)

This bit is used to set Override value for Avalid signal when GOTGCTL.AvalidOvEn is set.

VALUE00Avalid value is 1'b0 when GOTGCTL.AvalidOvEn =1
VALUE11Avalid value is 1'b1 when GOTGCTL.AvalidOvEn =1
ERWBVALIDOVEN

Mode: Device only. B-Peripheral Session Valid Override Value (BvalidOvEn)

This bit is used to enable/disable the software to override the Bvalid signal using the GOTGCTL.BvalidOvVal.

DISABLED0Override is disabled and bvalid signal from the respective PHY selected is used internally by the core
ENABLED1Internally Bvalid received from the PHY is overridden with GOTGCTL.BvalidOvVal
FRWBVALIDOVVAL

Mode: Device only. B-Peripheral Session Valid OverrideValue (BvalidOvVal)

This bit is used to set Override value for Bvalid signal when GOTGCTL.BvalidOvEn is set.

VALUE00Bvalid value when GOTGCTL.BvalidOvEn =1
VALUE11Bvalid value when GOTGCTL.BvalidOvEn =1
GRWDBNCEFLTRBYPASS

Mode: Host and Device. Debounce Filter Bypass

Bypass Debounce filters for avalid, bvalid, vbusvalid, sessend, iddig signals when enabled. Note: This register bit is valid only when debounce filters are present in core.

DISABLED0Debounce Filter Bypass is disabled.
ENABLED1Debounce Filter Bypass is enabled.
HRCONIDSTS

Mode: Host and Device. Connector ID Status (ConIDSts)

Indicates the connector ID status on a connect event. Note: The reset value of this register field can be read only after the PHY clock is stable, or if IDDIG_FILTER is enabled, wait for the filter timer to expire to read the correct reset value which ever event is later. Reset: - 1'b0: in host only mode (OTG_MODE = 5 or 6) - 1'b1: in all other configurations

MODEA0The core is in A-Device mode.
MODEB1The core is in B-Device mode.
IRDBNCTIME

Mode: Host only. Long/Short Debounce Time (DbncTime)

Indicates the debounce time of a detected connection.

LONG0Long debounce time, used for physical connections (100 ms + 2.5 micro-sec)
SHORT1Short debounce time, used for soft connections (2.5 micro-sec)
JRASESVLD

Mode: Host only. A-Session Valid (ASesVld)

Indicates the Host mode transceiver status. Note: If you do not enabled OTG features (such as SRP and HNP), the read reset value will be 1. The vbus assigns the values internally for non-SRP or non-HNP configurations. In case of OTG_MODE=0, the reset value of this bit is 1'b0.

NOTVALID0A-session is not valid.
VALID1A-session is valid.
KRBSESVLD

Mode: Device only. B-Session Valid (BSesVld)

Indicates the Device mode transceiver status. In OTG mode, you can use this bit to determine if the device is connected or disconnected. Note: - If you do not enable OTG features (such as SRP and HNP), the read reset value will be 1.The vbus assigns the values internally for non- SRP or non-HNP configurations. - In case of OTG_MODE=0, the reset value of this bit is 1'b0. - The reset value of this register field can be read only after the PHY clock is stable, or if IDDIG_FILTER is enabled, wait for the filter timer to expire to read the correct reset value which ever event is later.

NOTVALID0B-session is not valid.
VALID1B-session is valid.
LRWOTGVER

OTG Version (OTGVer)

Indicates the OTG revision.

VER130Supports OTG Version 1.3
VER201Supports OTG Version 2.0
MRCURMOD

Current Mode of Operation (CurMod)

Mode: Host and Device Indicates the current mode. Reset: Note: The reset value of this register field can be read only after the PHY clock is stable, or if IDDIG_FILTER is enabled, wait for the filter timer to expire to read the correct reset value which ever event is later.

DEVICEMODE0Current mode is device mode.
HOSTMODE1Current mode is host mode.
NRMULTVALIDBC

Mode: Host and Device. Multi Valued ID pin (MultValIdBC)

Battery Charger ACA inputs in the following order:

RIDC1B-Device connected to ACA. VBUS is on.
RIDB2B-Device connected to ACA. VBUS is off.
RIDA4A-Device connected to ACA
RIDGND8A-Device not connected to ACA
RIDFLOAT16B-Device not connected to ACA
ORWCHIRPENMode: Device Only. This bit when programmed to 1'b1 results in the core asserting chirp_on before sending an actual Chirp "K" signal on USB. This bit is present only if OTG_BC_SUPPORT = 1.If OTG_BC_SUPPORT!=1, this bit is a reserved bit. Do not set this bit when core is operating in HSIC mode because HSIC always operates at High Speed and High speed chirp is not used
CHIRPDISABLE0The controller does not assert chirp_on before sending an actual Chirp "K" signal on USB.
CHIRPENABLE1The controller asserts chirp_on before sending an actual Chirp "K" signal on USB.
PRWEUSB2PHYDISCSUPPThis field is only applicable to Device mode and must be set to 1'b1 if eUSB2 PHY is used.
DISABLED0Device disconnect detection using GINTSTS.USBRst interrupt when not in hibernation and GPWRDN.ResetDetected when in hibernation
ENABLED1Device disconnect detection using GOTGINT.SesEEndDet interrupt when not in hibernation and GPWRDN.StsChngInt when in hibernation

GOTGINT

Address offset: 0x004

Interrupt Register

The application reads this register whenever there is an OTG interrupt and clears the bits in this register to clear the OTG interrupt.

Bit number313029282726252423222120191817161514131211109876543210
IDGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWSESENDDET

Mode: Host and Device. Session End Detected (SesEndDet)

The controller sets this bit when the utmiotg_bvalid signal is deasserted. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0Session is Active
ACTIVE1SessionEnd utmiotg_bvalid signal is deasserted
BRWSESREQSUCSTSCHNG

Mode: Host and Device. Session Request Success Status Change (SesReqSucStsChng)

The core sets this bit on the success or failure of a session request. The application must read the Session Request Success bit in the OTG Control and Status register (GOTGCTL.SesReqScs) to check for success or failure. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Change in Session Request Status
ACTIVE1Session Request Status has changed
CRWHSTNEGSUCSTSCHNG

Mode: Host and Device. Host Negotiation Success Status Change (HstNegSucStsChng)

The core sets this bit on the success or failure of a USB host negotiation request. The application must read the Host Negotiation Success bit of the OTG Control and Status register (GOTGCTL.HstNegScs) to check for success or failure. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Change
ACTIVE1Host Negotiation Status Change
DRWHSTNEGDET

Mode:Host and Device. Host Negotiation Detected (HstNegDet)

The core sets this bit when it detects a host negotiation request on the USB. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Active HNP Request
ACTIVE1Active HNP request detected
ERWADEVTOUTCHG

Mode: Host and Device. A-Device Timeout Change (ADevTOUTChg)

The core sets this bit to indicate that the A-device has timed out while waiting for the B-device to connect.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No A-Device Timeout
ACTIVE1A-Device Timeout
FRWDBNCEDONE

Mode: Host only. Debounce Done (DbnceDone)

The core sets this bit when the debounce is completed after the device connect. The application can start driving USB reset after seeing this interrupt. This bit is only valid when the HNP Capable or SRP Capable bit is SET in the Core USB Configuration register (GUSBCFG.HNPCap or GUSBCFG.SRPCap, respectively). This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0After Connect waiting for Debounce to complete
ACTIVE1Debounce completed
GRWMULTVALIPCHNG

This bit when set indicates that there is a change in the value of at least one ACA pin value.

This bit is present only if OTG_BC_SUPPORT=1, otherwise it is reserved.

NOACAPINCHANGE0Indicates there is no change in ACA pin value
ACAPINCHANGE1Indicates there is a change in ACA pin value

GAHBCFG

Address offset: 0x008

AHB Configuration Register

This register can be used to configure the core after power-on or a change in mode. This register mainly contains AHB system-related configuration parameters. Do not change this register after the initial programming. The application must program this register before starting any transactions on either the AHB or the USB.

Bit number313029282726252423222120191817161514131211109876543210
IDJJIIHGFEDCBBBBA
Reset 0x0A00000000001010000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWGLBLINTRMSK

Mode: Host and device. Global Interrupt Mask (GlblIntrMsk)

The application uses this bit to mask or unmask the interrupt line assertion to itself. Irrespective of this bit's setting, the interrupt status registers are updated by the controller.

MASK0Mask the interrupt assertion to the application
NOMASK1Unmask the interrupt assertion to the application.
BRWHBSTLEN

Mode: Host and device. Burst Length/Type (HBstLen)

This field is used in both External and Internal DMA modes. In External DMA mode, these bits appear on dma_burst[3:0] ports, which can be used by an external wrapper to interface the External DMA Controller interface to Synopsys DW_ahb_dmac or ARM PrimeCell. External DMA Mode defines the DMA burst length in terms of 32-bit words: Internal DMA Mode AHB Requester burst type:

WORD1ORSINGLE01 word or single
WORD4ORINCR14 words or INCR
WORD828 words
WORD16ORINCR4316 words or INCR4
WORD32432 words
WORD64ORINCR8564 words or INCR8
WORD1286128 words
WORD256ORINCR167256 words or INCR16
WORDX8Others reserved
CRWDMAEN

Mode: Host and device. DMA Enable (DMAEn)

This bit is always 0 when Completer-Only mode has been selected.

COMPLETERMODE0Core operates in Completer mode
DMAMODE1Core operates in a DMA mode
DRWNPTXFEMPLVL

Mode: Host and device. Non-Periodic TxFIFO Empty Level (NPTxFEmpLvl)

This bit is used only in Completer mode. In host mode and with Shared FIFO with device mode, this bit indicates when the Non-Periodic TxFIFO Empty Interrupt bit in the Core Interrupt register (GINTSTS.NPTxFEmp) is triggered. With dedicated FIFO in device mode, this bit indicates when IN endpoint Transmit FIFO empty interrupt (DIEPINTn.TxFEmp) is triggered. Host mode and with Shared FIFO with device mode: Dedicated FIFO in device mode:

HALFEMPTY0DIEPINTn.TxFEmp interrupt indicates that the Non-Periodic TxFIFO is half empty or that the IN Endpoint TxFIFO is half empty.
EMPTY1GINTSTS.NPTxFEmp interrupt indicates that the Non-Periodic TxFIFO is completely empty or that the IN Endpoint TxFIFO is completely empty.
ERWPTXFEMPLVL

Mode: Host only. Periodic TxFIFO Empty Level (PTxFEmpLvl)

Indicates when the Periodic TxFIFO Empty Interrupt bit in the Core Interrupt register (GINTSTS.PTxFEmp) is triggered. This bit is used only in Completer mode.

HALFEMPTY0GINTSTS.PTxFEmp interrupt indicates that the Periodic TxFIFO is half empty.
EMPTY1GINTSTS.PTxFEmp interrupt indicates that the Periodic TxFIFO is completely empty.
FRWREMMEMSUPP

Mode: Host and Device. Remote Memory Support (RemMemSupp)

This bit is programmed to enable the functionality to wait for the system DMA Done Signal for the DMA Write Transfers. - GAHBCFG.RemMemSupp=1 The int_dma_req output signal is asserted when the DMA starts write transfer to the external memory. When the core is done with the Transfers it asserts int_dma_done signal to flag the completion of DMA writes from the controller. The core then waits for sys_dma_done signal from the system to proceed further and complete the Data Transfer corresponding to a particular Channel/Endpoint. - GAHBCFG.RemMemSupp=0 The int_dma_req and int_dma_done signals are not asserted and the core proceeds with the assertion of the XferComp interrupt as soon as the DMA write transfer is done at the Core Boundary and it does not wait for the sys_dma_done signal to complete the DATA transfers.

DISABLED0Remote Memory Support Feature disabled
ENABLED1Remote Memory Support Feature enabled
GRWNOTIALLDMAWRIT

Mode: Host and Device. Notify All DMA Write Transactions (NotiAllDmaWrit)

This bit is programmed to enable the System DMA Done functionality for all the DMA write Transactions corresponding to the Channel/Endpoint. This bit is valid only when GAHBCFG.RemMemSupp is set to 1. - GAHBCFG.NotiAllDmaWrit = 1 The core asserts int_dma_req for all the DMA write transactions on the AHB interface along with int_dma_done, chep_last_transact and chep_number signal informations. The core waits for sys_dma_done signal for all the DMA write transactions in order to complete the transfer of a particular Channel/Endpoint. - GAHBCFG.NotiAllDmaWrit = 0 The core asserts int_dma_req signal only for the last transaction of DMA write transfer corresponding to a particular Channel/Endpoint. Similarly, the core waits for sys_dma_done signal only for that transaction of DMA write to complete the transfer of a particular Channel/Endpoint.

LASTTRANS0
ALLTRANS1The core asserts int_dma_req for all the DMA write transactions on the AHB interface along with int_dma_done, chep_last_transact and chep_number signal informations. The core waits for sys_dma_done signal for all the DMA write transactions in order to complete the transfer of a particular Channel/Endpoint
HRWAHBSINGLE

Mode: Host and Device. AHB Single Support (AHBSingle)

This bit when programmed supports Single transfers for the remaining data in a transfer when the core is operating in DMA mode. Note: If this feature is enabled, the AHB RETRY and SPLIT transfers still have INCR burst type. Enable this feature when the AHB Completer connected to the core does not support INCR burst (and when Split, and Retry transactions are not being used in the bus).

INCRBURST0The remaining data in the transfer is sent using INCR burst size
SINGLEBURST1The remaining data in the transfer is sent using Single burst size
IRWLOAEOPCHECKCLKSBYTE

Mode: Host. Number of clock cycles to check for EOP SE0 for LOA logic

Note: - This field only affects USB2.0 FS operation in UTMI 8bit mode. The mac_prt logic checks for the programmed number of clocks of SE0 to validate an EOP for a packet. - The actual number of clocks checked will be the value programmed plus 1. So a value 1 results in checking for 2 clocks of SE0. Value of 3 checks 4 clocks of SE0 and so on. - The default value is 1, which results in 2 clocks of SE0 check.

ONE1Check for 2 clocks of EOP SE0
TWO2Check for 3 clocks of EOP SE0
JRWLOAEOPCHECKCLKSWORD

Mode: Host. Number of clock cycles to check for EOP SE0 for LOA logic

Note: - This field only affects USB2.0 FS operation in UTMI 16bit mode. The mac_prt logic checks for the programmed number of clocks of SE0 to validate an EOP for a packet. - The actual number of clocks checked will be the value programmed plus 1. So a value 1 results in checking for 2 clocks of SE0. Value of 3 checks 4 clocks of SE0 and so on. - The default value is 1, which results in 2 clocks of SE0 check.

ONE1Check for 2 clocks of EOP SE0
TWO2Check for 3 clocks of EOP SE0

GUSBCFG

Address offset: 0x00C

USB Configuration Register

This register can be used to configure the core after power-on or when changing to Host mode or Device mode. It contains USB and USB-PHY related configuration parameters. The application must program this register before starting any transactions on either the AHB or the USB. If you are using the HSIC interface, HSIC PHY must be in reset while programming this register. Do not make changes to this register after the initial programming.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGFFFFEDCBAAA
Reset 0x1000140000010000000000000001010000000000
IDR/WFieldValue IDValueDescription
ARWTOUTCAL

Mode: Host and Device. HS/FS Timeout Calibration (TOutCal)

The number of PHY clocks that the application programs in this field is added to the high-speed/full-speed interpacket timeout duration in the core to account for any additional delays introduced by the PHY. This can be required, because the delay introduced by the PHY in generating the linestate condition can vary from one PHY to another. The USB standard timeout value for high-speed operation is 736 to 816 (inclusive) bit times. The USB standard timeout value for full-speed operation is 16 to 18 (inclusive) bit times. The application must program this field based on the speed of enumeration. The number of bit times added per PHY clock are as follows: High-speed operation: - One 30-MHz PHY clock = 16 bit times - One 60-MHz PHY clock = 8 bit times Full-speed operation: - One 30-MHz PHY clock = 0.4 bit times - One 60-MHz PHY clock = 0.2 bit times - One 48-MHz PHY clock = 0.25 bit times

ZERO0Add 0 PHY clocks
ONE1Add 1 PHY clocks
TWO2Add 2 PHY clocks
THREE3Add 3 PHY clocks
FOUR4Add 4 PHY clocks
FIVE5Add 5 PHY clocks
SIX6Add 6 PHY clocks
SEVEN7Add 7 PHY clocks
BRWPHYIF

Mode: Host and Device. PHY Interface (PHYIf)

The application uses this bit to configure the core to support a UTMI+ PHY with an 8- or 16-bit interface. When a ULPI PHY is chosen, this must be Set to 8-bit mode. This bit is writable only If UTMI+ and ULPI were selected. Otherwise, this bit returns the value for the power-on interface selected during configuration.

BITS80PHY 8bit Mode
BITS161PHY 16bit Mode
CRULPIUTMISEL

Mode: Host and Device. ULPI or UTMI+ Select (ULPI_UTMI_Sel)

The application uses this bit to select either a UTMI+ interface or ULPI Interface.

UTMI0UTMI+ Interface
ULPI1ULPI Interface
DRFSINTF

Mode: Host and Device. Full-Speed Serial Interface Select (FSIntf)

The application uses this bit to select either a unidirectional or bidirectional USB 1.1 full-speed serial transceiver interface. If a USB 1.1 Full-Speed Serial Transceiver interface was not selected, this bit is always 0, with Write Only access. If a USB 1.1 FS interface was selected, Then the application can Set this bit to select between the 3- and 6-pin interfaces, and access is Read and Write. Note: For supporting the new 4-pin bi-directional interface, you need to select 6-pin unidirectional FS serial mode, and add an external control to convert it to a 4-pin interface.

FS6PIN06-pin unidirectional full-speed serial interface
FS3PIN13-pin bidirectional full-speed serial interface
ERPHYSEL

PHYSel

Mode: Host and Device USB 2.0 High-Speed PHY or USB 1.1 Full-Speed Serial Transceiver Select (PHYSel) The application uses this bit to select either a high-speed UTMI+ or ULPI PHY, or a full-speed transceiver. If a USB 1.1 Full-Speed Serial Transceiver interface was not selected in, this bit is always 0, with Write Only access. If a high-speed PHY interface was not selected in, this bit is always 1, with Write Only access. If both interface types were selected (parameters have non-zero values), the application uses this bit to select which interface is active, and access is Read and Write.

USB200USB 2.0 high-speed UTMI+ or ULPI PHY is selected
USB111USB 1.1 full-speed serial transceiver is selected
FRWUSBTRDTIM

Mode: Device only. USB Turnaround Time (USBTrdTim)

Sets the turnaround time in PHY clocks. Specifies the response time for a MAC request to the Packet FIFO Controller (PFC) to fetch data from the DFIFO (SPRAM). This must be programmed to Note:Refer to Programming Guide Section "Choosing the Value of GUSBCFG.USBTrdTim" for the turnaround time calculation. During the AHB Clock Frequency selection, it is recommended to consider mis-sampling into account for USBTrdTim. USB turnaround time is critical for certification where long cables and 5-Hubs are used. If you need the AHB to run at less than 30 MHz (or less than 42MHz when operating in 16-bit UTMI mode in HS speed), and if USB turnaround time is not critical, these bits can be programmed to a larger value.

TURNTIME16BIT5MAC interface is 16-bit UTMI+.
TURNTIME8BIT9MAC interface is 8-bit UTMI+.
GRWPHYLPWRCLKSEL

PHY Low-Power Clock Select (PhyLPwrClkSel)

Mode: Host and Device Selects either 480-MHz or 48-MHz (low-power) PHY mode. In FS and LS modes, the PHY can usually operate on a 48-MHz clock to save power. In 480 MHz mode, the UTMI interface operates at either 60 or 30-MHz, depending upon whether 8- or 16-bit data width is selected. In 48-MHz mode, the UTMI interface operates at 48 MHz in FS mode and at either 48 or 6 MHz in LS mode (depending on the PHY vendor). This bit drives the utmi_fsls_low_power core output signal, and is valid only for UTMI+ PHYs.

INTPLLCLK0480-MHz Internal PLL clock
EXTCLK148-MHz External Clock
HRWTERMSELDLPULSE

Mode: Device only. TermSel DLine Pulsing Selection (TermSelDLPulse)

This bit selects utmi_termselect to drive data line pulse during SRP.

TXVALID0Data line pulsing using utmi_txvalid
TERMSEL1Data line pulsing using utmi_termsel
IRICUSBCAP

Mode: Host and Device. IC_USB-Capable (IC_USBCap)

The application uses this bit to control the core's IC_USB capabilities. This bit is writable only if OTG_ENABLE_IC_USB=1 and OTG_FSPHY_INTERFACE!=0. The reset value depends on the configuration parameter OTG_SELECT_IC_USB when OTG_ENABLE_IC_USB = 1. In all other cases, this bit is set to 1'b0 and the bit is read only.

NOTSELECTED0IC_USB PHY Interface is not selected
SELECTED1IC_USB PHY Interface is selected
JRWTXENDDELAY

Mode: Device only. Tx End Delay (TxEndDelay)

Setting this bit to 1'b1 enables the controller to follow the TxEndDelay timings as per UTMI+ specification 1.05 section 4.1.5 for opmode signal during remote wakeup. The default value of this field is 1'b1 and it is not recommended to program it to 1'b0. The option to set it to 1'b0 (Normal Mode) is present only for debug purpose.

DISABLED0Normal Mode
ENABLED1Tx End delay
KRWFORCEHSTMODE

Mode: Host and device. Force Host Mode (ForceHstMode)

Writing a 1 to this bit forces the core to host mode irrespective of utmiotg_iddig input pin. After setting the force bit, the application must wait at least 25 ms before the change to take effect. When the simulation is in scale down mode, waiting for 500 micro sec is sufficient. This bit is valid only when OTG_MODE = 0, 1 or 2. In all other cases, this bit reads 0.

DISABLED0Normal Mode
ENABLED1Force Host Mode
LRWFORCEDEVMODE

Mode:Host and device. Force Device Mode (ForceDevMode)

Writing a 1 to this bit forces the controller to device mode irrespective of utmiotg_iddig input pin. After setting the force bit, the application must wait at least 25 ms before the change to take effect. When the simulation is in scale down mode, waiting for 500 micro sec is sufficient. This bit is valid only when OTG_MODE = 0, 1 or 2. In all other cases, this bit reads 0.

DISABLED0Normal Mode
ENABLED1Force Device Mode
MWCORRUPTTXPKT

Mode: Host and device. Corrupt Tx packet (CorruptTxPkt)

This bit is for debug purposes only. Never Set this bit to 1. The application must always write 1'b0 to this bit.

Disabled0Normal Mode
Enabled1Debug Mode

GRSTCTL

Address offset: 0x010

Reset Register

The application uses this register to reset various hardware features inside the controller.

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGGGFFFFFEDCBA
Reset 0x8000000010000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWCSFTRST

Mode: Host and Device. Core Soft Reset (CSftRst)

Resets the hclk and phy_clock domains as follows: - Clears the interrupts and all the CSR registers except the following register bits: -- PCGCCTL.RstPdwnModule -- PCGCCTL.GateHclk -- PCGCCTL.PwrClmp -- PCGCCTL.StopPPhyLPwrClkSelclk -- GUSBCFG.ForceDevMode -- GUSBCFG.ForceHstMode -- GUSBCFG.PhyLPwrClkSel -- GUSBCFG.DDRSel -- GUSBCFG.PHYSel -- GUSBCFG.FSIntf -- GUSBCFG.ULPI_UTMI_Sel -- GUSBCFG.PHYIf -- GUSBCFG.TxEndDelay -- GUSBCFG.TermSelDLPulse -- GUSBCFG.ULPIClkSusM -- GUSBCFG.ULPIAutoRes -- GUSBCFG.ULPIFsLs -- GGPIO -- GPWRDN -- GADPCTL -- HCFG.FSLSPclkSel -- DCFG.DevSpd -- DCTL.SftDiscon - All module state machines - All module state machines (except the AHB Completer Unit) are reset to the IDLE state, and all the transmit FIFOs and the receive FIFO are flushed. - Any transactions on the AHB Requester are terminated as soon as possible, after gracefully completing the last data phase of an AHB transfer. Any transactions on the USB are terminated immediately. - When Hibernation or ADP feature is enabled, the PMU module is not reset by the Core Soft Reset. The application can write to this bit any time it wants to reset the core. The application must clear this bit after checking the bit 29 of this register (Core Soft Reset Done). Software must also must check that bit 31 of this register is 1 (AHB Requester is IDLE) before starting any operation. Typically software reset is used during software development and also when you dynamically change the PHY selection bits in the USB configuration registers listed above. When you change the PHY, the corresponding clock for the PHY is selected and used in the PHY domain. Once a new clock is selected, the PHY domain has to be reset for proper operation.

NOTACTIVE0No reset
ACTIVE1Resets hclk and phy_clock domains
BRWPIUFSSFTRST

Mode: Host and Device. PIU FS Dedicated Controller Soft Reset (PIUFSSftRst)

Resets the PIU FS Dedicated Controller All module state machines in FS Dedicated Controller of PIU are reset to the IDLE state. Used to reset the FS Dedicated controller in PIU in case of any PHY Errors like Loss of activity or Babble Error resulting in the PHY remaining in RX state for more than one frame boundary. This is a self clearing bit and core clears this bit after all the necessary logic is reset in the core.

RESETINACTIVE0No Reset
RESETACTIVE1PIU FS Dedicated Controller Soft Reset
CRWFRMCNTRRST

Mode: Host only. Host Frame Counter Reset (FrmCntrRst)

The application writes this bit to reset the (micro)Frame number counter inside the core. When the (micro)Frame counter is reset, the subsequent SOF sent out by the core has a (micro)Frame number of 0. When application writes 1 to the bit, it might not be able to read back the value as it gets cleared by the core in a few clock cycles.

NOTACTIVE0No reset
ACTIVE1Host Frame Counter Reset
DRWRXFFLSH

Mode: Host and Device. RxFIFO Flush (RxFFlsh)

The application can flush the entire RxFIFO using this bit, but must first ensure that the core is not in the middle of a transaction. The application must only write to this bit after checking that the controller is neither reading from the RxFIFO nor writing to the RxFIFO. The application must wait until the bit is cleared before performing any other operations. This bit requires eight clocks (slowest of PHY or AHB clock) to clear.

INACTIVE0Does not flush the entire RxFIFO
ACTIVE1Flushes the entire RxFIFO
ERWTXFFLSH

Mode: Host and Device. TxFIFO Flush (TxFFlsh)

This bit selectively flushes a single or all transmit FIFOs, but cannot do so If the core is in the midst of a transaction. The application must write this bit only after checking that the core is neither writing to the TxFIFO nor reading from the TxFIFO. Verify using these registers: - ReadNAK Effective Interrupt ensures the core is not reading from the FIFO - WriteGRSTCTL.AHBIdle ensures the core is not writing anything to the FIFO. Flushing is normally recommended when FIFOs are reconfigured or when switching between Shared FIFO and Dedicated Transmit FIFO operation. FIFO flushing is also recommended during device endpoint disable. The application must wait until the core clears this bit before performing any operations. This bit takes eight clocks to clear, using the slower clock of phy_clk or hclk.

INACTIVE0No Flush
ACTIVE1Selectively flushes a single or all transmit FIFOs
FRWTXFNUM

Mode: Host and Device. TxFIFO Number (TxFNum)

This is the FIFO number that must be flushed using the TxFIFO Flush bit. This field must not be changed until the core clears the TxFIFO Flush bit. -- Non-periodic TxFIFO flush in Host mode -- Non-periodic TxFIFO flush in device mode when in shared FIFO operation -- Tx FIFO 0 flush in device mode when in dedicated FIFO mode -- Periodic TxFIFO flush in Host mode -- Periodic TxFIFO 1 flush in Device mode when in shared FIFO operation -- TXFIFO 1 flush in device mode when in dedicated FIFO mode -- Periodic TxFIFO 2 flush in Device mode when in shared FIFO operation -- TXFIFO 2 flush in device mode when in dedicated FIFO mode ... -- Periodic TxFIFO 15 flush in Device mode when in shared FIFO operation -- TXFIFO 15 flush in device mode when in dedicated FIFO mode

TXF00-Periodic TxFIFO flush in host mode -Periodic TxFIFO 0 flush in device mode when in shared FIFO operation -TXFIFO 0 flush in device mode when in dedicated FIFO mode
TXF11-Periodic TxFIFO flush in host mode -Periodic TxFIFO 1 flush in device mode when in shared FIFO operation -TXFIFO 1 flush in device mode when in dedicated FIFO mode
TXF22-Periodic TxFIFO 2 flush in device mode when in shared FIFO operation -TXFIFO 2 flush in device mode when in dedicated FIFO mode
TXF33-Periodic TxFIFO 3 flush in device mode when in shared FIFO operation -TXFIFO 3 flush in device mode when in dedicated FIFO mode
TXF44-Periodic TxFIFO 4 flush in device mode when in shared FIFO operation -TXFIFO 4 flush in device mode when in dedicated FIFO mode
TXF55-Periodic TxFIFO 5 flush in device mode when in shared FIFO operation -TXFIFO 5 flush in device mode when in dedicated FIFO mode
TXF66-Periodic TxFIFO 6 flush in device mode when in shared FIFO operation -TXFIFO 6 flush in device mode when in dedicated FIFO mode
TXF77-Periodic TxFIFO 7 flush in device mode when in shared FIFO operation -TXFIFO 7 flush in device mode when in dedicated FIFO mode
TXF88-Periodic TxFIFO 8 flush in device mode when in shared FIFO operation -TXFIFO 8 flush in device mode when in dedicated FIFO mode
TXF99-Periodic TxFIFO 9 flush in device mode when in shared FIFO operation -TXFIFO 9 flush in device mode when in dedicated FIFO mode
TXF1010-Periodic TxFIFO 10 flush in device mode when in shared FIFO operation -TXFIFO 10 flush in device mode when in dedicated FIFO mode
TXF1111-Periodic TxFIFO 11 flush in device mode when in shared FIFO operation -TXFIFO 11 flush in device mode when in dedicated FIFO mode
TXF1212-Periodic TxFIFO 12 flush in device mode when in shared FIFO operation -TXFIFO 12 flush in device mode when in dedicated FIFO mode
TXF1313-Periodic TxFIFO 13 flush in Device mode when in shared FIFO operation -TXFIFO 13 flush in device mode when in dedicated FIFO mode
TXF1414-Periodic TxFIFO 14 flush in Device mode when in shared FIFO operation -TXFIFO 14 flush in device mode when in dedicated FIFO mode
TXF1515-Periodic TxFIFO 15 flush in Device mode when in shared FIFO operation - TXFIFO 15 flush in device mode when in dedicated FIFO mode
TXF1616Flush all the transmit FIFOs in device or host mode
GRWCLOCKSWITCHTIMER

This field is applicable if the controller is configured with multiple PHY interfaces.

It must be programmed before programming the required PHY interface in GUSBCFG register. Host Mode: Set this field to 3'b111 if: - The clock from the previous PHY is OFF before switching to the new PHY. Set this field to 3'b010 if all the below conditions are satisfied: - (OTG_FSPHY_INTERFACE != 0 && OTG_HSPHY_INTERFACE !=0) - USB1.1 FS Serial PHY will be used (i.e., GUSBCFG.PHYSel = 1'b1). - Clock from previous PHY is not OFF before switching to the new PHY. This field need not be programmed in other cases. Device Mode: Set this field to 3'b111 if: - The clock from the previous PHY is off before switching to the new PHY. Set this field to 3'b010 if all the below conditions are satisfied: - (OTG_FSPHY_INTERFACE != 0 && OTG_HSPHY_INTERFACE !=0) - USB1.1 FS Serial PHY will be used (i.e., GUSBCFG.PHYSel = 1'b1) - DCFG.DevSpd = 2'b10. - Clock from previous PHY is not OFF before switching to the new PHY. This field need not be programmed in other cases. Note: This field is not required to be programmed if Shared PHY interface is not configured.

TIMERVALUE190timer value set to 19
TIMERVALUE151timer value set to 15
TIMERVALUE1472timer value set to 147
TIMERVALUE503timer value set to 50
TIMERVALUE1004timer value set to 100
TIMERVALUE1255timer value set to 125
TIMERVALUE2006timer value set to 200
TIMERDISABLED7timer is disabled
HRWCSFTRSTDONE

Mode: Host and Device. Core Soft Reset Done (CSftRstDone)

The core sets this bit when all the necessary logic is reset in the core.This bit is cleared by the application along with GRSTCTL.CSftRst (bit 0)

INACTIVE0No reset
ACTIVE1Core Soft Reset is done
IRDMAREQ

Mode: Host and Device. DMA Request Signal (DMAReq)

Indicates that the DMA request is in progress. Used for debug.

INACTIVE0No DMA request
ACTIVE1DMA request is in progress
JRAHBIDLE

Mode: Host and Device. AHB Requester Idle (AHBIdle)

Indicates that the AHB Requester State Machine is in the IDLE condition.

INACTIVE0Not Idle
ACTIVE1AHB Requester Idle

GINTSTS

Address offset: 0x014

Interrupt STATUS Register

This register interrupts the application for system-level events in the current mode (Device mode or Host mode). Some of the bits in this register are valid only in Host mode, while others are valid in Device mode only. This register also indicates the current mode. To clear the interrupt status bits of type R_SS_WC, the application must write 1'b1 to the bit. The FIFO status interrupts are read only; once software reads from or writes to the FIFO while servicing these interrupts, FIFO interrupt conditions are cleared automatically. The application must clear the GINTSTS register at initialization before unmasking the interrupt bit to avoid any interrupts generated prior to initialization. Note: Read the reset value of GINTSTS.CurMod only after the following conditions: - If IDDIG_FILTER is disabled, read only after PHY clock is stable. - If IDDIG_FILTER is enabled, read only after the filter timer expires.

Bit number313029282726252423222120191817161514131211109876543210
IDdcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0400002000000100000000000000000000100000
IDR/WFieldValue IDValueDescription
ARCURMOD

Mode: Host and Device. Current Mode of Operation (CurMod)

Indicates the current mode. Note: The reset value of this register field can be read only after the PHY clock is stable, or if IDDIG_FILTER is enabled, wait for the filter timer to expire to read the correct reset value which ever event is later.

DEVICE0Device mode
HOST1Host mode
BRWMODEMIS

Mode: Host and Device. Mode Mismatch Interrupt (ModeMis)

The core sets this bit when the application is trying to access: - A Host mode register, when the controller is operating in Device mode - A Device mode register, when the controller is operating in Host mode The register access is completed on the AHB with an OKAY response, but is ignored by the controller internally and does not affect the operation of the controller. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Mode Mismatch Interrupt
ACTIVE1Mode Mismatch Interrupt
CROTGINT

Mode: Host and Device. OTG Interrupt (OTGInt)

The controller sets this bit to indicate an OTG protocol event. The application must read the OTG Interrupt Status (GOTGINT) register to determine the exact event that caused this interrupt. The application must clear the appropriate status bit in the GOTGINT register to clear this bit.

INACTIVE0No Interrupt
ACTIVE1OTG Interrupt
DRWSOF

Mode: Host and Device. Start of (micro)Frame (Sof)

In Host mode, the core sets this bit to indicate that an SOF (FS), micro-SOF (HS), or Keep-Alive (LS) is transmitted on the USB. The application must write a 1 to this bit to clear the interrupt. In Device mode, the controller sets this bit to indicate that an SOF token has been received on the USB. The application can read the Device Status register to get the current (micro)Frame number. This interrupt is seen only when the core is operating at either HS or FS. This bit can be set only by the core and the application must write 1 to clear it. Note: This register may return 1'b1 if read immediately after power-on reset. If the register bit reads 1'b1 immediately after power-on reset, it does not indicate that an SOF has been sent (in case of host mode) or SOF has been received (in case of device mode). The read value of this interrupt is valid only after a valid connection between host and device is established. If the bit is set after power on reset the application can clear the bit.

INACTIVE0No Start of Frame
ACTIVE1Start of Frame
ERRXFLVL

Mode: Host and Device. RxFIFO Non-Empty (RxFLvl)

Indicates that there is at least one packet pending to be read from the RxFIFO.

INACTIVE0Rx Fifo is empty
ACTIVE1Rx Fifo is not empty
FRNPTXFEMP

Mode: Host and Device. Non-periodic TxFIFO Empty (NPTxFEmp)

This interrupt is asserted when the Non-periodic TxFIFO is either half or completely empty, and there is space for at least one Entry to be written to the Non-periodic Transmit Request Queue. The half or completely empty status is determined by the Non-periodic TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl). In host mode, the application can use GINTSTS.NPTxFEmp with the OTG_EN_DED_TX_FIFO parameter set to either 1 or 0. In device mode, the application uses GINTSTS.NPTxFEmp when OTG_EN_DED_TX_FIFO=0. When OTG_EN_DED_TX_FIFO=1, the application uses DIEPINTn.TxFEmp.

INACTIVE0Non-periodic TxFIFO is not empty
ACTIVE1Non-periodic TxFIFO is empty
GRGINNAKEFF

Mode: Device only. Global IN Non-periodic NAK Effective (GINNakEff)

Indicates that the Set Global Non-periodic IN NAK bit in the Device Control register (DCTL.SGNPInNak) set by the application, has taken effect in the core. That is, the core has sampled the Global IN NAK bit Set by the application. This bit can be cleared by clearing the Clear Global Non-periodic IN NAK bit in the Device Control register (DCTL.CGNPInNak). This interrupt does not necessarily mean that a NAK handshake is sent out on the USB. The STALL bit takes precedence over the NAK bit.

INACTIVE0Global Non-periodic IN NAK not active
ACTIVE1Set Global Non-periodic IN NAK bit
HRGOUTNAKEFF

Mode: Device only. Global OUT NAK Effective (GOUTNakEff)

Indicates that the Set Global OUT NAK bit in the Device Control register (DCTL.SGOUTNak), Set by the application, has taken effect in the core. This bit can be cleared by writing the Clear Global OUT NAK bit in the Device Control register (DCTL.CGOUTNak).

INACTIVE0Not Active
ACTIVE1Global OUT NAK Effective
IRWERLYSUSP

Mode: Device only. Early Suspend (ErlySusp)

The controller sets this bit to indicate that an Idle state has been detected on the USB for 3 ms.

INACTIVE0No Idle state detected
ACTIVE13ms of Idle state detected
JRWUSBSUSP

Mode: Device only. USB Suspend (USBSusp)

The controller sets this bit to indicate that a suspend was detected on the USB. The controller enters the Suspended state when there is no activity on the linestate signal for an extended period of time.

INACTIVE0Not Active
ACTIVE1USB Suspend
KRWUSBRST

Mode: Device only. USB Reset (USBRst)

The controller sets this bit to indicate that a reset is detected on the USB.

INACTIVE0Not active
ACTIVE1USB Reset
LRWENUMDONE

Mode: Device only. Enumeration Done (EnumDone)

The core sets this bit to indicate that speed enumeration is complete. The application must read the Device Status (DSTS) register to obtain the enumerated speed.

INACTIVE0Not active
ACTIVE1Enumeration Done
MRWISOOUTDROP

Mode: Device only. Isochronous OUT Packet Dropped Interrupt (ISOOutDrop)

The controller sets this bit when it fails to write an isochronous OUT packet into the RxFIFO because the RxFIFO does not have enough space to accommodate a maximum packet size packet for the isochronous OUT endpoint.

INACTIVE0Not active
ACTIVE1Isochronous OUT Packet Dropped Interrupt
NRWEOPF

Mode: Device only. End of Periodic Frame Interrupt (EOPF)

Indicates that the period specified in the Periodic Frame Interval field of the Device Configuration register (DCFG.PerFrInt) has been reached in the current microframe. In case of Non-Ignore Frame Number Scatter/Gather (Descriptor DMA) mode, the controller internally handles the following scenarios based on EOPF: Read Flush: At the EOPF, the controller checks if there are any pending packets in the FIFO corresponding to the current (micro)Frame. - If there are any pending packets, then the controller initiates read flush, due to which the read pointer is updated to the starting location of the next micro-frame packet. - If there are no pending packets corresponding to the current (micro)Frame, the controller does not take any action. Write Flush: At the EOPF, if the controller is still fetching the current micro-frame data, then the controller stops pushing data into the TXFIFO but keeps fetching the complete packet from the System Memory. After completing the scheduled packet size fetch, the controller updates the Status Quadlet Fields (Transmit Status to BUFFLUSH) and closes the Descriptor. During the descriptor close, the controller initiates write flush, due to which the write pointer is updated to the starting location of the next micro-frame packet. Because the controller stops pushing the packet to the TxFIFO after EOPF, to bring the write pointer to the starting location of the next micro-frame, write flush is done.

INACTIVE0Not active
ACTIVE1End of Periodic Frame Interrupt
ORWRSTRDONEINT

Mode: Device only. Restore Done Interrupt (RstrDoneInt)

The controller sets this bit to indicate that the restore command after Hibernation was completed by the core. The controller continues from Suspended state into the mode dictated by PCGCCTL.RestoreMode field.

INACTIVE0Not active
ACTIVE1Restore Done Interrupt
PRWEPMIS

Mode: Device only. Endpoint Mismatch Interrupt (EPMis)

Note: This interrupt is valid only in shared FIFO operation. Indicates that an IN token has been received for a non-periodic endpoint, but the data for another endpoint is present in the top of the Non-periodic Transmit FIFO and the IN endpoint mismatch count programmed by the application has expired.

INACTIVE0Not active
ACTIVE1Endpoint Mismatch Interrupt
QRIEPINT

Mode: Device only. IN Endpoints Interrupt (IEPInt)

The core sets this bit to indicate that an interrupt is pending on one of the IN endpoints of the core (in Device mode). The application must read the Device All Endpoints Interrupt (DAINT) register to determine the exact number of the IN endpoint on Device IN Endpoint-n Interrupt (DIEPINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the corresponding DIEPINTn register to clear this bit.

INACTIVE0Not active
ACTIVE1IN Endpoints Interrupt
RROEPINT

Mode: Device only. OUT Endpoints Interrupt (OEPInt)

The controller sets this bit to indicate that an interrupt is pending on one of the OUT endpoints of the core (in Device mode). The application must read the Device All Endpoints Interrupt (DAINT) register to determine the exact number of the OUT endpoint on which the interrupt occurred, and then read the corresponding Device OUT Endpoint-n Interrupt (DOEPINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the corresponding DOEPINTn register to clear this bit.

INACTIVE0Not active
ACTIVE1OUT Endpoints Interrupt
SRWINCOMPISOIN

Mode: Device only. Incomplete Isochronous IN Transfer (incompISOIN)

The core sets this interrupt to indicate that there is at least one isochronous IN endpoint on which the transfer is not completed in the current microframe. This interrupt is asserted along with the End of Periodic Frame Interrupt (EOPF) bit in this register. Note: This interrupt is not asserted in Scatter/Gather DMA mode.

INACTIVE0Not active
ACTIVE1Incomplete Isochronous IN Transfer
TRWINCOMPLP

Incomplete Periodic Transfer (incomplP)

Mode: Host only In Host mode, the core sets this interrupt bit when there are incomplete periodic transactions still pending which are scheduled for the current microframe. Incomplete Isochronous OUT Transfer (incompISOOUT) Mode: Device only The Device mode, the core sets this interrupt to indicate that there is at least one isochronous OUT endpoint on which the transfer is not completed in the current microframe. This interrupt is asserted along with the End of Periodic Frame Interrupt (EOPF) bit in this register.

INACTIVE0Not active
ACTIVE1Incomplete Periodic Transfer
URWFETSUSP

Mode: Device only. Data Fetch Suspended (FetSusp)

This interrupt is valid only in DMA mode. This interrupt indicates that the core has stopped fetching data. For IN endpoints due to the unavailability of TxFIFO space or Request Queue space. This interrupt is used by the application for an endpoint mismatch algorithm. For example, after detecting an endpoint mismatch, the application: - Sets a Global non-periodic IN NAK handshake - Disables IN endpoints - Flushes the FIFO - Determines the token sequence from the IN Token Sequence Learning Queue - Re-enables the endpoints - Clears the Global non-periodic IN NAK handshake If the Global non-periodic IN NAK is cleared, the core has not yet fetched data for the IN endpoint, and the IN token is received. The core generates an 'IN token received when FIFO empty' interrupt. It then sends the host a NAK response. To avoid this scenario, the application can check the GINTSTS.FetSusp interrupt, which ensures that the FIFO is full before clearing a Global NAK handshake. Alternatively, the application can mask the IN token received when FIFO empty interrupt when clearing a Global IN NAK handshake.

INACTIVE0Not active
ACTIVE1Data Fetch Suspended
VRWRESETDET

Mode: Device only. Reset detected Interrupt (ResetDet)

In Device mode, this interrupt is asserted when a reset is detected on the USB in partial power-down mode when the device is in Suspend. In Host mode, this interrupt is not asserted.

INACTIVE0Not active
ACTIVE1Reset detected Interrupt
WRPRTINT

Mode: Host only. Host Port Interrupt (PrtInt)

The core sets this bit to indicate a change in port status of one of the controller ports in Host mode. The application must read the Host Port Control and Status (HPRT) register to determine the exact event that caused this interrupt. The application must clear the appropriate status bit in the Host Port Control and Status register to clear this bit.

INACTIVE0Not active
ACTIVE1Host Port Interrupt
XRHCHINT

Mode: Host only. Host Channels Interrupt (HChInt)

The core sets this bit to indicate that an interrupt is pending on one of the channels of the core (in Host mode). The application must read the Host All Channels Interrupt (HAINT) register to determine the exact number of the channel on which the interrupt occurred, and Then read the corresponding Host Channel-n Interrupt (HCINTn) register to determine the exact cause of the interrupt. The application must clear the appropriate status bit in the HCINTn register to clear this bit.

INACTIVE0Not active
ACTIVE1Host Channels Interrupt
YRPTXFEMP

Mode: Host only. Periodic TxFIFO Empty (PTxFEmp)

This interrupt is asserted when the Periodic Transmit FIFO is either half or completely empty and there is space for at least one entry to be written in the Periodic Request Queue. The half or completely empty status is determined by the Periodic TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.PTxFEmpLvl).

INACTIVE0Not active
ACTIVE1Periodic TxFIFO Empty
ZRWLPMINT

Mode: Host and Device. LPM Transaction Received Interrupt (LPM_Int).

- Device Mode: This interrupt is asserted when the device receives an LPM transaction and responds with a non-ERRORed response. - Host Mode: This interrupt is asserted when the device responds to an LPM transaction with a non-ERRORed response or when the host core has completed LPM transactions for the programmed number of times (GLPMCFG.RetryCnt).

INACTIVE0Not Active
ACTIVE1LPM Transaction Received Interrupt
aRWCONIDSTSCHNG

Mode: Host and Device. Connector ID Status Change (ConIDStsChng)

The core sets this bit when there is a change in connector ID status.

INACTIVE0Not Active
ACTIVE1Connector ID Status Change
bRWDISCONNINT

Mode: Host only. Disconnect Detected Interrupt (DisconnInt)

Asserted when a device disconnect is detected.

INACTIVE0Not active
ACTIVE1Disconnect Detected Interrupt
cRWSESSREQINT

Mode: Host and Device. Session Request/New Session Detected Interrupt (SessReqInt)

In Host mode, this interrupt is asserted when a session request is detected from the device. In Host mode, this interrupt is asserted when a session request is detected from the device. In Device mode, this interrupt is asserted when the utmisrp_bvalid signal goes high. For more information on how to use this interrupt, see 'Partial Power-Down and Clock Gating Programming Model' in the Programming Guide.

INACTIVE0Not active
ACTIVE1Session Request New Session Detected Interrupt
dRWWKUPINT

Mode: Host and Device. Resume/Remote Wakeup Detected Interrupt (WkUpInt)

Wakeup Interrupt during Suspend(L2) or LPM(L1) state. - During Suspend(L2): -- Device Mode: This interrupt is asserted only when Host Initiated Resume is detected on USB. -- Host Mode: This interrupt is asserted only when Device Initiated Remote Wakeup is detected on USB. For more information, see 'Partial Power-Down and Clock Gating Programming Model' in the Programming Guide. - During LPM(L1): -- Device Mode: This interrupt is asserted for either Host Initiated Resume or Device Initiated Remote Wakeup on USB. -- Host Mode: This interrupt is asserted for either Host Initiated Resume or Device Initiated Remote Wakeup on USB. For more information, see 'LPM Entry and Exit Programming Model' in the Programming Guide.

INACTIVE0Not active
ACTIVE1Resume or Remote Wakeup Detected Interrupt

GINTMSK

Address offset: 0x018

Interrupt Mask Register

This register works with the Interrupt Register (GINTSTS) to interrupt the application. When an interrupt bit is masked, the interrupt associated with that bit is not generated. However, the GINTSTS register bit corresponding to that interrupt is still set. Note: The fields of this register change depending on host or device mode.

Bit number313029282726252423222120191817161514131211109876543210
IDbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMODEMISMSKMode: Host and Device. Mode Mismatch Interrupt Mask (ModeMisMsk)
MASK0Mode Mismatch Interrupt Mask
NOMASK1No Mode Mismatch Interrupt Mask
BRWOTGINTMSKMode: Host and Device. OTG Interrupt Mask (OTGIntMsk)
MASK0OTG Interrupt Mask
NOMASK1No OTG Interrupt Mask
CRWSOFMSKMode: Host and Device. Start of (micro)Frame Mask (SofMsk)
MASK0Start of Frame Mask
NOMASK1No Start of Frame Mask
DRWRXFLVLMSKMode: Host and Device. Receive FIFO Non-Empty Mask (RxFLvlMsk)
MASK0Receive FIFO Non-Empty Mask
NOMASK1No Receive FIFO Non-Empty Mask
ERWNPTXFEMPMSKMode: Host and Device. Non-periodic TxFIFO Empty Mask (NPTxFEmpMsk)
MASK0Non-periodic TxFIFO Empty Mask
NOMASK1No Non-periodic TxFIFO Empty Mask
FRWGINNAKEFFMSKMode: Device only,. Global Non-periodic IN NAK Effective Mask (GINNakEffMsk)
MASK0Global Non-periodic IN NAK Effective Mask
NOMASK1No Global Non-periodic IN NAK Effective Mask
GRWGOUTNAKEFFMSKMode: Device only. Global OUT NAK Effective Mask (GOUTNakEffMsk)
MASK0Global OUT NAK Effective Mask
NOMASK1No Global OUT NAK Effective Mask
HRWERLYSUSPMSKMode: Device only. Early Suspend Mask (ErlySuspMsk)
MASK0Early Suspend Mask
NOMASK1No Early Suspend Mask
IRWUSBSUSPMSKMode: Device only. USB Suspend Mask (USBSuspMsk)
MASK0USB Suspend Mask
NOMASK1No USB Suspend Mask
JRWUSBRSTMSKMode: Device only. USB Reset Mask (USBRstMsk)
MASK0USB Reset Mask
NOMASK1No USB Reset Mask
KRWENUMDONEMSKMode: Device only. Enumeration Done Mask (EnumDoneMsk)
MASK0Enumeration Done Mask
NOMASK1No Enumeration Done Mask
LRWISOOUTDROPMSKMode: Device only. Isochronous OUT Packet Dropped Interrupt Mask (ISOOutDropMsk)
MASK0Isochronous OUT Packet Dropped Interrupt Mask
NOMASK1No Isochronous OUT Packet Dropped Interrupt Mask
MRWEOPFMSKMode: Device only. End of Periodic Frame Interrupt Mask (EOPFMsk)
MASK0End of Periodic Frame Interrupt Mask
NOMASK1No End of Periodic Frame Interrupt Mask
NRWRSTRDONEINTMSKMode: Host and Device. Restore Done Interrupt Mask (RstrDoneIntMsk)
MASK0Restore Done Interrupt Mask
NOMASK1No Restore Done Interrupt Mask
ORWEPMISMSKMode: Device only. Endpoint Mismatch Interrupt Mask (EPMisMsk)
MASK0Endpoint Mismatch Interrupt Mask
NOMASK1No Endpoint Mismatch Interrupt Mask
PRWIEPINTMSKMode: Device only. IN Endpoints Interrupt Mask (IEPIntMsk)
MASK0IN Endpoints Interrupt Mask
NOMASK1No IN Endpoints Interrupt Mask
QRWOEPINTMSKMode: Device only. OUT Endpoints Interrupt Mask (OEPIntMsk)
MASK0OUT Endpoints Interrupt Mask
NOMASK1No OUT Endpoints Interrupt Mask
RRWINCOMPLPMSK

Incomplete Periodic Transfer Mask (incomplPMsk)

Mode: Host only Incomplete Isochronous OUT Transfer Interrupt Mask (incompISOOUTMsk) Mode: Device only

MASK0Host mode: Incomplete Periodic Transfer MaskDevice mode: Incomplete Isochronous OUT Transfer Mask
NOMASK1Host mode: No Incomplete Periodic Transfer MaskDevice mode: No Incomplete Isochronous OUT Transfer Mask
SRWFETSUSPMSKMode: Device only. Data Fetch Suspended Mask (FetSuspMsk)
MASK0Data Fetch Suspended Mask
NOMASK1No Data Fetch Suspended Mask
TRWRESETDETMSKMode: Device only. Reset detected Interrupt Mask (ResetDetMsk)
MASK0Reset detected Interrupt Mask
NOMASK1No Reset detected Interrupt Mask
URWPRTINTMSKMode: Host only. Host Port Interrupt Mask (PrtIntMsk)
MASK0Host Port Interrupt Mask
NOMASK1No Host Port Interrupt Mask
VRWHCHINTMSKMode: Host only. Host Channels Interrupt Mask (HChIntMsk)
MASK0Host Channels Interrupt Mask
NOMASK1No Host Channels Interrupt Mask
WRWPTXFEMPMSKMode: Host only. Periodic TxFIFO Empty Mask (PTxFEmpMsk)
MASK0Periodic TxFIFO Empty Mask
NOMASK1No Periodic TxFIFO Empty Mask
XRWLPMINTMSK

Mode: Host and Device. LPM Transaction Received Interrupt (LPM_Int)

LPM Transaction received interrupt Mask

MASK0LPM Transaction received interrupt Mask
NOMASK1No LPM Transaction received interrupt Mask
YRWCONIDSTSCHNGMSKMode: Host and Device. Connector ID Status Change Mask (ConIDStsChngMsk)
MASK0Connector ID Status Change Mask
NOMASK1No Connector ID Status Change Mask
ZRWDISCONNINTMSKMode: Host and Device. Disconnect Detected Interrupt Mask (DisconnIntMsk)
MASK0Disconnect Detected Interrupt Mask
NOMASK1No Disconnect Detected Interrupt Mask
aRWSESSREQINTMSKMode: Host and Device. Session Request/New Session Detected Interrupt Mask (SessReqIntMsk)
MASK0Session Request or New Session Detected Interrupt Mask
NOMASK1No Session Request or New Session Detected Interrupt Mask
bRWWKUPINTMSK

Mode: Host and Device. Resume/Remote Wakeup Detected Interrupt Mask (WkUpIntMsk)

The WakeUp bit is used for LPM state wake up in a way similar to that of wake up in suspend state.

MASK0Resume or Remote Wakeup Detected Interrupt Mask
NOMASK1Unmask Resume Remote Wakeup Detected Interrupt

GRXSTSR

Address offset: 0x01C

Receive Status Debug Read Register

A read to the Receive Status Debug Read register returns the contents of the top of the Receive FIFO. The receive status contents must be interpreted differently in Host and Device modes. The core ignores the receive status read when the receive FIFO is empty and returns a value of 32'h0000_0000. Note: - Use of these fields vary based on whether the core is functioning as a host or a device. - Do not read this register's reset value before configuring the core because the read value is 'X' in the simulation.

Bit number313029282726252423222120191817161514131211109876543210
IDEEEEDDDDCCBBBBBBBBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCHNUM

Channel Number (ChNum)

Mode: Host only Indicates the channel number to which the current received packet belongs. Endpoint Number (EPNum) Mode: Device only Indicates the endpoint number to which the current received packet belongs.

CHEP00Channel or EndPoint 0
CHEP11Channel or EndPoint 1
CHEP22Channel or EndPoint 2
CHEP33Channel or EndPoint 3
CHEP44Channel or EndPoint 4
CHEP55Channel or EndPoint 5
CHEP66Channel or EndPoint 6
CHEP77Channel or EndPoint 7
CHEP88Channel or EndPoint 8
CHEP99Channel or EndPoint 9
CHEP1010Channel or EndPoint 10
CHEP1111Channel or EndPoint 11
CHEP1212Channel or EndPoint 12
CHEP1313Channel or EndPoint 13
CHEP1414Channel or EndPoint 14
CHEP1515Channel or EndPoint 15
BRBCNT

Byte Count (BCnt)

In host mode, indicates the byte count of the received IN data packet. In device mode, indicates the byte count of the received data packet.

CRDPID

Data PID (DPID)

In host mode, indicates the Data PID of the received packet. In device mode, indicates the Data PID of the received OUT data packet.

DATA00DATA0
DATA21DATA2
DATA12DATA1
MDATA3MDATA
DRPKTSTS

Packet Status (PktSts) indicates the status of the received packet.

In host mode, In device mode,

OUTNAK1Global OUT NAK in device mode (triggers an interrupt)
INOUTDPRX2IN data packet received in host mode and OUT data packet received in device mode
INOUTTRCOM3IN or OUT transfer completed in both host and device mode (triggers an interrupt)
DSETUPCOM4SETUP transaction completed in device mode (triggers an interrupt)
DTTOG5Data toggle error (triggers an interrupt) in host mode
DSETUPRX6SETUP data packet received in device mode
CHHALT7Channel halted in host mode (triggers an interrupt)
ERFN

Mode: Device only. Frame Number (FN)

This is the least significant 4 bits of the (micro)Frame number in which the packet is received on the USB. This field is supported only when isochronous OUT endpoints are supported.

GRXSTSP

Address offset: 0x020

Receive Status Read/Pop Register

A read to the Receive Status Read and Pop register returns the contents of the top of the Receive FIFO and additionally pops the top data entry out of the RxFIFO. The receive status contents must be interpreted differently in Host and Device modes. The core ignores the receive status pop/read when the receive FIFO is empty and returns a value of 32'h0000_0000. The application must only pop the Receive Status FIFO when the Receive FIFO Non-Empty bit of the Core Interrupt register (GINTSTS.RxFLvl) is asserted. Note: - Use of these fields vary based on whether the core is functioning as a host or a device. - Do not read this register's reset value before configuring the core because the read value is 'X' in the simulation.

Bit number313029282726252423222120191817161514131211109876543210
IDEEEEDDDDCCBBBBBBBBBBBAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARCHNUM

Channel Number (ChNum)

Mode: Host only Indicates the channel number to which the current received packet belongs. Endpoint Number (EPNum) Mode: Device only Indicates the endpoint number to which the current received packet belongs.

CHEP00Channel or EndPoint 0
CHEP11Channel or EndPoint 1
CHEP22Channel or EndPoint 2
CHEP33Channel or EndPoint 3
CHEP44Channel or EndPoint 4
CHEP55Channel or EndPoint 5
CHEP66Channel or EndPoint 6
CHEP77Channel or EndPoint 7
CHEP88Channel or EndPoint 8
CHEP99Channel or EndPoint 9
CHEP1010Channel or EndPoint 10
CHEP1111Channel or EndPoint 11
CHEP1212Channel or EndPoint 12
CHEP1313Channel or EndPoint 13
CHEP1414Channel or EndPoint 14
CHEP1515Channel or EndPoint 15
BRBCNT

Byte Count (BCnt)

In host mode, indicates the byte count of the received IN data packet. In device mode, indicates the byte count of the received data packet.

CRDPID

Data PID (DPID)

In host mode, indicates the Data PID of the received packet. In device mode, indicates the Data PID of the received OUT data packet.

DATA00DATA0
DATA21DATA2
DATA12DATA1
MDATA3MDATA
DRPKTSTS

Packet Status (PktSts) indicates the status of the received packet.

In host mode, In device mode,

OUTNAK1Global OUT NAK in device mode (triggers an interrupt)
INOUTDPRX2IN data packet received in host mode and OUT data packet received in device mode
INOUTTRCOM3IN or OUT transfer completed in both host and device mode (triggers an interrupt)
DSETUPCOM4SETUP transaction completed in device mode (triggers an interrupt)
DTTOG5Data toggle error (triggers an interrupt) in host mode
ERFN

Mode: Device only. Frame Number (FN)

This is the least significant 4 bits of the (micro)Frame number in which the packet is received on the USB. This field is supported only when isochronous OUT endpoints are supported.

GRXFSIZ

Address offset: 0x024

Receive FIFO Size Register

The application can program the RAM size that must be allocated to the RxFIFO.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARWRXFDEP

Mode: Host and Device. RxFIFO Depth (RxFDep)

This value is in terms of 32-bit words. - Minimum value is 16 - Maximum value is 32,768 The power-on reset value of this register is specified as the Largest Rx Data FIFO Depth during configuration. If Enable Dynamic FIFO Sizing is selected in coreConsultant, these flops are optimized, and reads return the power-on value. If Enable Dynamic FIFO Sizing is selected in coreConsultant, you can write a new value in this field. Programmed values must not exceed the power-on value.

GNPTXFSIZ

Address offset: 0x028

Non-periodic Transmit FIFO Size Register

The application can program the RAM size and the memory start address for the Non-periodic TxFIFO Note: The fields of this register change depending on host or device mode.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBAAAAAAAAAAAA
Reset 0x0C000C0000001100000000000000110000000000
IDR/WFieldValue IDValueDescription
ARWNPTXFSTADDR

Non-periodic Transmit RAM Start Address (NPTxFStAddr)

For host mode, this field is always valid. This field contains the memory start address for Non-periodic Transmit FIFO RAM. - This field is determined during coreConsultant configuration by "Enable Dynamic FIFO Sizing?" (OTG_DFIFO_DYNAMIC):OTG_DFIFO_DYNAMIC = 0 These flops are optimized, and reads return the power-on value. - OTG_DFIFO_DYNAMIC = 1 The application can write a new value in this field. Programmed values must not exceed the power-on value set in coreConsultant. Programmed values must not exceed the power-on value set in coreConsultant. The power-on reset value of this field is specified during coreConsultant configuration by Largest Rx Data FIFO Depth (parameter OTG_RX_DFIFO_DEPTH).

BRWNPTXFDEP

Mode: Host only. Non-periodic TxFIFO Depth (NPTxFDep)

For host mode, this field is always valid. For device mode, this field is valid only when OTG_EN_DED_TX_FIFO=0. This value is in terms of 32-bit words. - Minimum value is 16 - Maximum value is 32,768 This attribute of field is determined during coreConsultant configuration by "Enable Dynamic FIFO Sizing?" (OTG_DFIFO_DYNAMIC): - OTG_DFIFO_DYNAMIC = 0: These flops are optimized, and reads return the power-on value. - OTG_DFIFO_DYNAMIC = 1: The application can write a new value in this field. Programmed values must not exceed the power-on value set in coreConsultant. The power-on reset value of this field is specified during coreConsultant configuration as Largest IN Endpoint FIFO 0 Depth (parameter OTG_TX_DINEP_DFIFO_DEPTH_0).

GNPTXSTS

Address offset: 0x02C

Non-periodic Transmit FIFO/Queue Status Register

In Device mode, this register is valid only in Shared FIFO operation. This read-only register contains the free space information for the Non-periodic TxFIFO and the Non-periodic Transmit Request Queue.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCCBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x00080C0000000000000010000000110000000000
IDR/WFieldValue IDValueDescription
ARNPTXFSPCAVAIL

Non-periodic TxFIFO Space Avail (NPTxFSpcAvail)

Indicates the amount of free space available in the Non-periodic TxFIFO. Values are in terms of 32-bit words. Reset: Configurable

BRNPTXQSPCAVAIL

Non-periodic Transmit Request Queue Space Available (NPTxQSpcAvail)

Indicates the amount of free space available in the Non-periodic Transmit Request Queue. This queue holds both IN and OUT requests in Host mode. Device mode has only IN requests. - n: n locations available (0 <= n <= 8) Reset: Configurable

FULL0Non-periodic Transmit Request Queue is full
QUE111 location available
QUE222 locations available
QUE333 locations available
QUE444 locations available
QUE555 locations available
QUE666 locations available
QUE777 locations available
QUE888 locations available
CRNPTXQTOP

Top of the Non-periodic Transmit Request Queue (NPTxQTop)

Entry in the Non-periodic Tx Request Queue that is currently being processed by the MAC.

INOUTTK0IN/OUT token
ZEROTX1Zero-length transmit packet (device IN/host OUT)
PINGCSPLIT2PING/CSPLIT token
CHNHALT3Channel halt command

GGPIO

Address offset: 0x038

General Purpose Input/Output Register

The application can use this register for general purpose input/output ports or for debugging.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARGPIGeneral Purpose Input (GPI) This field's read value reflects the gp_i[15:0] core input value.
BRWGPOGeneral Purpose Output (GPO) This field is driven as an output from the core, gp_o[15:0]. The application can program this field to determine the corresponding value on the gp_o[15:0] output.

GUID

Address offset: 0x03C

User ID Register

This is a read/write register containing the User ID. It is implemented only if Remove Optional Features? was deselected during coreConsultant configuration (parameter OTG_RM_OPT_FEATURES = 0). The power-on value for this register is specified as the Power-on Value of User ID Register User Identification Register during coreConsultant configuration (parameter OTG_USERID). This register can be used in the following ways: - To store the version or revision of your system - To store hardware configurations that are outside the DWC_otg core - As a scratch register

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWGUID

User ID (UserID) Application-programmable ID field.

Reset value is configurable.

GSNPSID

Address offset: 0x040

Synopsys ID Register

This read-only register contains the release number of the core being used.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x4F54500B01001111010101000101000000001011
IDR/WFieldValue IDValueDescription
ARSYNOPSYSID

Release number of the controller being used currently.

Bits [31:16]: - 0x4f54: ASCII Value for OT Bits [15:0]: Current Release Number. For example, 0x400a corresponds to v4.00a Release number.

GHWCFG1

Address offset: 0x044

User Hardware Configuration 1 Register

This register contains the logical endpoint direction(s) selected using coreConsultant.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AREPDIR

This 32-bit field uses two bits per

endpoint to determine the endpoint direction. Endpoint ... Direction Note: This field is configured using the OTG_EP_DIR_1(n) parameter.

GHWCFG2

Address offset: 0x048

User Hardware Configuration 2 Register

This register contains configuration options selected using coreConsultant.

Bit number313029282726252423222120191817161514131211109876543210
IDMMMMMLLKKJIHGGGGFFFFEEDDCBBAAA
Reset 0x228FFC5200100010100011111111110001010010
IDR/WFieldValue IDValueDescription
AROTGMODE

Mode of Operation (OtgMode)

- 3'b000: HNP- and SRP-Capable OTG (Host & Device) Note: This field is configured using the OTG_MODE parameter.

HNPSRP0HNP- and SRP-Capable OTG (Host and Device)
SRPOTG1SRP-Capable OTG (Host and Device)
NHNPNSRP2Non-HNP and Non-SRP Capable OTG (Host and Device)
SRPCAPD3SRP-Capable Device
NONOTGD4Non-OTG Device
SRPCAPH5SRP-Capable Host
NONOTGH6Non-OTG Host
BROTGARCH

Architecture (OtgArch)

- 2'b00: Completer-Only Note: This field is configured using the OTG_ARCHITECTURE parameter.

COMPLETERMODE0Completer Mode
EXTERNALDMA1External DMA Mode
INTERNALDMA2Internal DMA Mode
CRSINGPNT

Point-to-Point (SingPnt)

- 1'b0: Multi-point application (hub and split support) Note: This field is configured using the OTG_SINGLE_POINT parameter.

MULTIPOINT0Multi-point application (hub and split support)
SINGLEPOINT1Single-point application (no hub and split support)
DRHSPHYTYPE

High-Speed PHY Interface Type (HSPhyType)

- 2'b00: High-Speed interface not supported Note: This field is configured using the OTG_HSPHY_INTERFACE parameter.

NOHS0High-Speed interface not supported
UTMIPLUS1High Speed Interface UTMI+ is supported
ULPI2High Speed Interface ULPI is supported
UTMIPUSULPI3High Speed Interfaces UTMI+ and ULPI is supported
ERFSPHYTYPE

Full-Speed PHY Interface Type (FSPhyType)

- 2'b00: Full-speed interface not supported Note: This field is configured using the OTG_FSPHY_INTERFACE parameter.

NOFS0Full-speed interface not supported
FS1Dedicated full-speed interface is supported
FSPLUSUTMI2FS pins shared with UTMI+ pins is supported
FSPLUSULPI3FS pins shared with ULPI pins is supported
FRNUMDEVEPS

Number of Device Endpoints (NumDevEps)

Indicates the number of device endpoints supported by the core in Device mode. The range of this field is 0-15. Note: This field is configured using the OTG_NUM_EPS parameter.

ENDPT00End point 0
ENDPT11End point 1
ENDPT22End point 2
ENDPT33End point 3
ENDPT44End point 4
ENDPT55End point 5
ENDPT66End point 6
ENDPT77End point 7
ENDPT88End point 8
ENDPT99End point 9
ENDPT1010End point 10
ENDPT1111End point 11
ENDPT1212End point 12
ENDPT1313End point 13
ENDPT1414End point 14
ENDPT1515End point 15
GRNUMHSTCHNL

Number of Host Channels (NumHstChnl)

Indicates the number of host channels supported by the core in Host mode. The range of this field is 0-15: 0 specifies 1 channel, 15 specifies 16 channels. Note: This field is configured using the OTG_NUM_HOST_CHAN parameter.

HOSTCH00Host Channel 1
HOSTCH11Host Channel 2
HOSTCH22Host Channel 3
HOSTCH33Host Channel 4
HOSTCH44Host Channel 5
HOSTCH55Host Channel 6
HOSTCH66Host Channel 7
HOSTCH77Host Channel 8
HOSTCH88Host Channel 9
HOSTCH99Host Channel 10
HOSTCH1010Host Channel 11
HOSTCH1111Host Channel 12
HOSTCH1212Host Channel 13
HOSTCH1313Host Channel 14
HOSTCH1414Host Channel 15
HOSTCH1515Host Channel 16
HRPERIOSUPPORT

Periodic OUT Channels Supported in Host Mode (PerioSupport)

- 1'b0: No Note: This field is configured using the OTG_EN_PERIO_HOST parameter.

DISABLED0Periodic OUT Channels is not supported in Host Mode
ENABLED1Periodic OUT Channels Supported in Host Mode Supported
IRDYNFIFOSIZING

Dynamic FIFO Sizing Enabled (DynFifoSizing)

- 1'b0: No Note: This field is configured using the OTG_DFIFO_DYNAMIC parameter.

DISABLED0Dynamic FIFO Sizing Disabled
ENABLED1Dynamic FIFO Sizing Enabled
JRMULTIPROCINTRPT

Multi Processor Interrupt Enabled (MultiProcIntrpt)

- 1'b0: No Note: This field is configured using the OTG_MULTI_PROC_INTRPT parameter.

DISABLED0No Multi Processor Interrupt Enabled
ENABLED1Multi Processor Interrupt Enabled
KRNPTXQDEPTH

Non-periodic Request Queue Depth (NPTxQDepth)

- 2'b00: 2 Note: This field is configured using the OTG_NPERIO_TX_QUEUE_DEPTH parameter.

TWO0Queue size 2
FOUR1Queue size 4
EIGHT2Queue size 8
LRPTXQDEPTH

Host Mode Periodic Request Queue Depth (PTxQDepth)

- 2'b00: 2 Note: This field is configured using the OTG_PERIO_TX_QUEUE_DEPTH parameter.

QUE20Queue Depth 2
QUE41Queue Depth 4
QUE82Queue Depth 8
QUE163Queue Depth 16
MRTKNQDEPTH

Device Mode IN Token Sequence Learning Queue Depth (TknQDepth)

Range: 0-30 Note: This field is configured using the OTG_TOKEN_QUEUE_DEPTH parameter.

GHWCFG3

Address offset: 0x04C

User Hardware Configuration 3 Register

This register contains configuration options selected using coreConsultant.

Bit number313029282726252423222120191817161514131211109876543210
IDLLLLLLLLLLLLLLLLKJIHGFEDCBBBAAAA
Reset 0x0BE0C0E800001011111000001100000011101000
IDR/WFieldValue IDValueDescription
ARXFERSIZEWIDTH

Width of Transfer Size Counters (XferSizeWidth)

- 4'b0000: 11 bits ... Note: This field is configured using the OTG_PACKET_COUNT_WIDTH parameter.

WIDTH110Width of Transfer Size Counter 11 bits
WIDTH121Width of Transfer Size Counter 12 bits
WIDTH132Width of Transfer Size Counter 13 bits
WIDTH143Width of Transfer Size Counter 14 bits
WIDTH154Width of Transfer Size Counter 15 bits
WIDTH165Width of Transfer Size Counter 16 bits
WIDTH176Width of Transfer Size Counter 17 bits
WIDTH187Width of Transfer Size Counter 18 bits
WIDTH198Width of Transfer Size Counter 19 bits
BRPKTSIZEWIDTH

Width of Packet Size Counters (PktSizeWidth)

- 3'b000: 4 bits Note: This field is configured using the OTG_PACKET_COUNT_WIDTH parameter.

BITS40Width of Packet Size Counter 4
BITS51Width of Packet Size Counter 5
BITS62Width of Packet Size Counter 6
BITS73Width of Packet Size Counter 7
BITS84Width of Packet Size Counter 8
BITS95Width of Packet Size Counter 9
BITS106Width of Packet Size Counter 10
CROTGEN

OTG Function Enabled (OtgEn)

The application uses this bit to indicate the OTG capabilities of the controller . Note: This field is configured using the OTG_MODE parameter.

DISABLED0Not OTG Capable
ENABLED1OTG Capable
DRI2CINTSEL

I2C Selection (I2CIntSel)

- 1'b0: I2C Interface is not available on the controller. Note: This field is configured using the OTG_I2C_INTERFACE parameter.

DISABLED0I2C Interface is not available
ENABLED1I2C Interface is available
ERVNDCTLSUPT

Vendor Control Interface Support (VndctlSupt)

- 1'b0: Vendor Control Interface is not available on the core. Note: This field is configured using the OTG_VENDOR_CTL_INTERFACE parameter.

DISABLED0Vendor Control Interface is not available.
ENABLED1Vendor Control Interface is available.
FROPTFEATURE

Optional Features Removed (OptFeature)

Indicates whether the User ID register, GPIO interface ports, and SOF toggle and counter ports were removed for gate count optimization by enabling Remove Optional Features. Note: This field is configured using the OTG_RM_OPT_FEATURES parameter.

DISABLED0Optional features were not Removed
ENABLED1Optional Features have been Removed
GRRSTTYPE

Reset Style for Clocked always Blocks in RTL (RstType)

- 1'b0: Asynchronous reset is used in the controller Note: This field is configured using the OTG_SYNC_RESET_TYPE parameter.

ASYNCRST0Asynchronous reset is used in the core
SYNCRST1Synchronous reset is used in the core
HRADPSUPPORT

This bit indicates whether ADP logic is present within or external to the controller

- 0: No ADP logic present with the controller - 1: ADP logic is present along with the controller.

DISABLED0ADP logic is not present along with the controller
ENABLED1ADP logic is present along with the controller
IRHSICMODE

HSIC mode specified for Mode of Operation

Value Range: 0 - 1 - 1: HSIC-capable with shared UTMI PHY interface - 0: Non-HSIC-capable

DISABLED0No HSIC capability
ENABLED1HSIC-capable with shared UTMI PHY interface
JRBCSUPPORT

This bit indicates the controller support for Battery Charger.

- 0 - No Battery Charger Support

DISABLED0No Battery Charger Support
ENABLED1Battery Charger Support present
KRLPMMODELPM mode specified for Mode of Operation.
DISABLED0LPM disabled
ENABLED1LPM enabled
LRDFIFODEPTH

DFIFO Depth (DfifoDepth - EP_LOC_CNT)

This value is in terms of 32-bit words. - Minimum value is 32 - Maximum value is 32,768 Note: This field is configured using the OTG_DFIFO_DEPTH parameter. For more information on EP_LOC_CNT, see the "Endpoint Information Controller (EPINFO_CTL)" section.

GHWCFG4

Address offset: 0x050

User Hardware Configuration 4 Register

This register contains configuration options selected using coreConsultant. Note: Bit [31] is available only when Scatter/Gather DMA mode is enabled. When Scatter/Gather DMA mode is disabled, this field is reserved.

Bit number313029282726252423222120191817161514131211109876543210
IDUTSSSSRQPONMLLLLKKJIHGFEDCBAAAA
Reset 0x3E10AA6000111110000100001010101001100000
IDR/WFieldValue IDValueDescription
ARNUMDEVPERIOEPS

Number of Device Mode Periodic IN Endpoints (NumDevPerioEps)

Range: 0-15

VALUE00Number of Periodic IN EPs is 0
VALUE11Number of Periodic IN EPs is 1
VALUE22Number of Periodic IN EPs is 2
VALUE33Number of Periodic IN EPs is 3
VALUE44Number of Periodic IN EPs is 4
VALUE55Number of Periodic IN EPs is 5
VALUE66Number of Periodic IN EPs is 6
VALUE77Number of Periodic IN EPs is 7
VALUE88Number of Periodic IN EPs is 8
VALUE99Number of Periodic IN EPs is 9
VALUE1010Number of Periodic IN EPs is 10
VALUE1111Number of Periodic IN EPs is 11
VALUE1212Number of Periodic IN EPs is 12
VALUE1313Number of Periodic IN EPs is 13
VALUE1414Number of Periodic IN EPs is 14
VALUE1515Number of Periodic IN EPs is 15
BRPARTIALPWRDN

Enable Partial Power Down (PartialPwrDn)

- 1'b0: Partial Power Down Not Enabled

DISABLED0Partial Power Down disabled
ENABLED1Partial Power Down enabled
CRAHBFREQ

Minimum AHB Frequency Less Than 60 MHz (AhbFreq)

- 1'b0: No

DISABLED0Minimum AHB Frequency More Than 60 MHz
ENABLED1Minimum AHB Frequency Less Than 60 MHz
DRHIBERNATION

Enable Hibernation (Hibernation)

- 1'b0: Hibernation feature not enabled

DISABLED0Hibernation feature disabled
ENABLED1Hibernation feature enabled
EREXTENDEDHIBERNATION

Enable Hibernation

- 1'b0: Extended Hibernation feature not enabled

DISABLED0Extended Hibernation feature not enabled
ENABLED1Extended Hibernation feature enabled
FRENHANCEDLPMSUPT1

Enhanced LPM Support1 (EnhancedLPMSupt1)

- This bit indicates that the controller supports L1 entry based on FIFO status. - Accept L1 Request even if Bulk/Interrupt TxFIFO is not empty.

DISABLED0Reject L1 Request even if Non-Periodic (Bulk/Interrupt) TxFIFO is not empty.
ENABLED1Accept L1 Request even if Non-Periodic (Bulk/Interrupt) TxFIFO is not empty
GRSERVINTFLOW

Service Interval Flow

This bit indicates that the controller supports Service-Interval based scheduling flow for ISOC IN EPs.

DISABLED0Service Interval Flow not supported
ENABLED1Service Interval Flow supported
HRIPGISOCSUPT

Interpacket Gap ISOC OUT Worst-case Support (ipgisocSupt)

This bit indicates that the controller supports the worst-case scenario of Rx followed by Rx Inter Packet Gap (IPG) (32-bit times) as per the UTMI Specification for any token following an ISOC OUT token. Without this support, when any token follows an ISOC OUT token with the worst-case IPG, the controller does not detect the followed token. The worst-case IPG of the controller without this support depends on the AHB and PHY clock frequency.By default IPG Support is enabled.

DISABLED0Interpacket Gap ISOC OUT Worst-case Support is Disabled
ENABLED1Interpacket Gap ISOC OUT Worst-case Support is Enabled (Default)
IRACGSUPT

Active Clock Gating Support

This bit indicates that the controller supports the Dynamic (Switching) Power Reduction during periods when there is no USB and AHB Traffic.

DISABLED0
ENABLED1Active Clock Gating Support
JRENHANCEDLPMSUPT

Enhanced LPM Support (EnhancedLPMSupt)

This bit indicates that the controller supports the following behavior: L1 Entry Behavior based on FIFO Status - TX FIFO - Accept L1 Request even if ISOC IN TX FIFO is not empty. - Reject L1 Request if Non-Periodic TX FIFO is not empty. - Ensure application can flush the TX FIFO while the Controller is in L1. - RX FIFO - Accept L1 Request even if RX FIFO (common to Periodic and Non-Periodic) is not empty. - Accept L1 Request but delay SLEEPM assertion until RX SINK Buffer is empty. Prevent L1 Entry if a Control Transfer is in progress on any Control Endpoint. Ability to Flush TxFIFO even if PHY Clock is gated.

ENABLED1Enhanced LPM Support is enabled
KRPHYDATAWIDTH

UTMI+ PHY/ULPI-to-Internal UTMI+ Wrapper Data Width

(PhyDataWidth)<vr>When a ULPI PHY is used, an internal wrapper converts ULPI to UTMI+.

WIDTH108 bits
WIDTH2116 bits
WIDTH328/16 bits, software selectable
LRNUMCTLEPS

Number of Device Mode Control Endpoints in Addition to

Endpoint 0 (NumCtlEps) Range: 0-15

ENDPT00End point 0
ENDPT11End point 1
ENDPT22End point 2
ENDPT33End point 3
ENDPT44End point 4
ENDPT55End point 5
ENDPT66End point 6
ENDPT77End point 7
ENDPT88End point 8
ENDPT99End point 9
ENDPT1010End point 10
ENDPT1111End point 11
ENDPT1212End point 12
ENDPT1313End point 13
ENDPT1414End point 14
ENDPT1515End point 15
MRIDDGFLTR

IDDIG Filter Enable (IddgFltr)

- 1'b0: No filter

DISABLED0Iddig Filter Disabled
ENABLED1Iddig Filter Enabled
NRVBUSVALIDFLTR

VBUS Valid Filter Enabled (VBusValidFltr)

- 1'b0: No filter

DISABLED0Vbus Valid Filter Disabled
ENABLED1Vbus Valid Filter Enabled
ORAVALIDFLTR

a_valid Filter Enabled (AValidFltr)

- 1'b0: No filter

DISABLED0No filter
ENABLED1Filter
PRBVALIDFLTR

b_valid Filter Enabled (BValidFltr)

- 1'b0: No filter

DISABLED0No Filter
ENABLED1Filter
QRSESSENDFLTR

session_end Filter Enabled (SessEndFltr)

- 1'b0: No filter

DISABLED0No filter
ENABLED1Filter
RRDEDFIFOMODE

Enable Dedicated Transmit FIFO for device IN Endpoints

(DedFifoMode)

DISABLED0Dedicated Transmit FIFO Operation not enabled
ENABLED1Dedicated Transmit FIFO Operation enabled
SRINEPS

Number of Device Mode IN Endpoints Including Control Endpoints (INEps)

- 0: 1 IN Endpoint - 1: 2 IN Endpoints .... - 15: 16 IN Endpoints

ENDPT101 IN Endpoint
ENDPT212 IN Endpoints
ENDPT323 IN Endpoints
ENDPT434 IN Endpoints
ENDPT545 IN Endpoints
ENDPT656 IN Endpoints
ENDPT767 IN Endpoints
ENDPT878 IN Endpoints
ENDPT989 IN Endpoints
ENDPT10910 IN Endpoints
ENDPT111011 IN Endpoints
ENDPT121112 IN Endpoints
ENDPT131213 IN Endpoints
ENDPT141314 IN Endpoints
ENDPT151415 IN Endpoints
ENDPT161516 IN Endpoints
TRDESCDMAENABLED

Scatter/Gather DMA configuration

- 1'b0: Non-Scatter/Gather DMA configuration

DISABLE0Non-Scatter/Gather DMA configuration
ENABLE1Scatter/Gather DMA configuration
URDESCDMA

Scatter/Gather DMA configuration

- 1'b0: Non Dynamic configuration Note: This field is configured using the OTG_EN_DESC_DMA parameter.

CONFIG10Non Dynamic configuration
CONFIG21Dynamic configuration

GLPMCFG

Address offset: 0x054

LPM Config Register

Register to control the LPM functionality of the controller.

Bit number313029282726252423222120191817161514131211109876543210
IDONMMMLKKKJJJJIHGGFFFFFEDCCCCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWLPMCAP

LPM-Capable (LPMCap)

The application uses this bit to control the controller LPM capabilities. If the core operates as a non-LPM-capable host, it cannot request the connected device/hub to activate LPM mode. If the core operates as a non-LPM-capable device, it cannot respond to any LPM transactions. If GLPMCFG.LPMCap is 1'b0, the software must not set any of the remaining fields in the GLPMCFG register and these fields must hold their Reset values.

DISABLED0LPM capability is not enabled
ENABLED1LPM capability is enabled
BRWAPPL1RES

Mode: Device only. LPM response programmed by application (AppL1Res)

Handshake response to LPM token pre-programmed by device application software. The response depends on GLPMCFG.LPMCap. If GLPMCFG.LPMCap is 1'b0, the core operates as a non-LPM-capable Device and does not respond to any LPM transactions. If GLPMCFG.LPMCap is 1'b1, the core responds as follows: - 1: ACK Even though an ACK is pre-programmed, the core responds with an ACK only on a successful LPM transaction. The LPM transaction is successful if: -- There are no PID/CRC5 errors in both the EXT token and the LPM token (else ERROR) -- A valid bLinkState = 0001B (L1) is received in the LPM transaction (else STALL) -- No data is pending in the Transmit queue (else NYET) - 0: NYET The pre-programmed software bit is overridden for response to LPM token when: -- The received bLinkState is not L1 (STALL response) -- An error is detected in either of the LPM token packets due to corruption (ERROR response).

NYETRESP0The core responds with a NYET when an error is detected in either of the LPM token packets due to corruption
ACKRESP1The core responds with an ACK only on a successful LPM transaction
CRWHIRD

Host-Initiated Resume Duration (HIRD)

EnBESL = 1'b0 Host Initiated Resume Duration. - Host Mode: The value of HIRD to be sent in an LPM transaction. This value is also used to initiate resume for a duration TL1HubDrvResume1 for host-initiated resume. - Device Mode: This field is read only and is updated with the Received LPM Token HIRD bmAttribute when an ACK/NYET/STALL response is sent to an LPM transaction. If HIRD[3:0], EnBESL = 1'b1 Best Effort Service Latency (BESL). - Host Mode: The value of BESL to be sent in an LPM transaction. This value is also used to initiate resume for a duration TL1HubDrvResume1 for host-initiated resume. - Device Mode: This field is updated with the Received LPM Token BESL bmAttribute when an ACK/NYET/STALL response is sent to an LPM transaction. If BESL[3:0],

DRWBREMOTEWAKE

RemoteWakeEnable (bRemoteWake)

Mode: Host and Device Host Mode: The value of remote wake up to be sent in wIndex field of LPM transaction. Device Mode: This field is read only. It is updated with the Received LPM Token bRemoteWake bmAttribute when an ACK/NYET/STALL response is sent to an LPM transaction.

DISABLED0Remote Wakeup is disabled
ENABLED1In Host or device mode, this field takes the value of remote wake up
ERWENBLSLPM

Enable utmi_sleep_n (EnblSlpM)

Mode: Host and Device For ULPI interface: The application uses this bit to control the utmi_sleep_n assertion to the PHY when in L1 state. For the host, this bit is valid only in Local Device mode. Note: - When a ULPI interface is configured, enabling this bit results in a write to Bit 7 of the ULPI Function Control register. The Synopsys ULPI PHY supports writing to this bit, and in the L1 state asserts SleepM when utmi_l1_suspend_n cannot be asserted. - When a ULPI/UTMI PHY associated with the controller (Host or device) does not support the LPM sleep feature clock gating, it is recommended to keep the EnblSlpM bit in disabled state (= 1'b0). This ensures the ULPI wrapper is in enabled mode and detects any wakeup events. For all other interfaces: The application uses this bit to control utmi_sleep_n assertion to the PHY in the L1 state. For the host, this bit is valid only in Local Device mode.

DISABLED0utmi_sleep_n assertion from the core is not transferred to the external PHY
ENABLED1utmi_sleep_n assertion from the core is transferred to the external PHY when utmi_l1_suspend_n cannot be asserted
FRWHIRDTHRES

BESL/HIRD Threshold (HIRD_Thres)

Device Mode: Note: When a ULPI/UTMI PHY associated with the controller (Host or device) does not support the LPM sleep feature clock gating, it is recommended to keep the HIRD_Thres[12] bit in disabled state (= 1'b0). This ensures the ULPI wrapper is in enabled mode and detects any wakeup events. - EnBESL = 1'b0: The core puts the PHY into deep low power mode in L1 (by core asserting L1SuspendM) when HIRD value is greater than or equal to the value defined in this field HIRD_Thres[3:0] and HIRD_Thres[4] is set to 1b1. - EnBESL = 1'b1: The core puts the PHY into deep low power mode in L1 (by core asserting L1SuspendM) when BESL value is greater than or equal to the value defined in this field BESL_Thres[3:0] and BESL_Thres [4] is set to 1'b1. - DCTL.DeepSleepBESLReject = 1'b1: In device initiated resume, the core expects the Host to resume service to the device within the BESL value corresponding to L1 exit time specified in HIRD_Thres[3:0]. The Device sends a NYET response when the received HIRD in LPM token is greater than HIRD threshold. Host Mode: The core puts the PHY into deep low power mode in L1 (by core asserting L1SuspendM) when HIRD_Thres[4] is set to 1'b1. HIRD_Thres[3:0] specifies the time for which resume signaling is to be reflected by host (TL1HubDrvResume2) on the USB bus when it detects device initiated resume. To differentiate between Deep Sleep and Shallow Sleep, HIRD greater than or equal to HIRD threshold comparison is done. For differentiating between NYET or ACK response for LPM token HIRD greater than HIRD Threshold comparison is used. - When EnBESL = 1'b0, HIRD_Thres must not be programmed with a value greater than 4'b1100 in host mode since this exceeds maximum TL1HubDrvResume2. - When EnBESL = 1'b1, HIRD_Thres must not be programmed with a value greater than 4'b0110 in host mode since this exceeds maximum TL1HubDrvResume2. For additional details, see the "Additional Details on GLPMCFG.HIRD_Thres Register Field" section in the databook.

GRCOREL1RES

LPM Response (CoreL1Res)

Device Mode: The response of the core to LPM transaction received is reflected in these two bits. Host Mode: Handshake response received from local device for LPM transaction

LPMRESP10ERROR : No handshake response
LPMRESP21STALL response
LPMRESP32NYET response
LPMRESP43ACK response
HRSLPSTS

Port Sleep Status (SlpSts)

Device Mode: This bit is set as long as a Sleep condition is present on the USB bus. The core enters the Sleep state when an ACK response is sent to an LPM transaction and the TL1TokenRetry timer has expired. To stop the PHY clock, the application must set the Port Clock Stop bit, which asserts the PHY Suspend input signal. The application must rely on SlpSts and not ACK in CoreL1Res to confirm transition into sleep. The core comes out of sleep: - When there is any activity on the USB line_state - When the application writes to the Remote Wakeup Signaling bit in the Device Control register (DCTL.RmtWkUpSig) or when the application resets or soft-disconnects the device. Host Mode: The host transitions to Sleep (L1) state as a side-effect of a successful LPM transaction by the core to the local port with ACK response from the device. The read value of this bit reflects the current Sleep status of the port. The core clears this bit after: - The core detects a remote L1 Wakeup signal; - The application sets the Port Reset bit or the Port L1Resume bit in the HPRT register; or - The application sets the L1Resume/ Remote Wakeup Detected Interrupt bit or Disconnect Detected Interrupt bit in the Core Interrupt register (GINTSTS.L1WkUpInt or GINTSTS.DisconnInt, respectively).

CORENOTINL10In Host or Device mode, this bit indicates core is not in L1
COREINL11In Host mode, this bit indicates the core transitions to Sleep state as a successful LPM transaction. In Device mode, the core enters the Sleep state when an ACK response is sent to an LPM transaction
IRL1RESUMEOK

Sleep State Resume OK (L1ResumeOK)

Device and Host Mode: Indicates that the application or host can start resume from Sleep state. This bit is valid in LPM sleep (L1) state. It is set in sleep mode after a delay of 50 micro sec (TL1Residency). The bit is reset when SlpSts is 0.

NOTOK0The application/core cannot start Resume from Sleep state
OK1The application/core can start Resume from Sleep state
JRWLPMCHNLINDX

LPM Channel Index

Host Mode: The channel number on which the LPM transaction has to be applied while sending an LPM transaction to the local device. Based on the LPM channel index, the core automatically inserts the device address and end point number programmed in the corresponding channel into the LPM transaction. Device Mode: LPM Accept Control (LPM_Accept_Ctrl) LPM_Accept_Ctrl[0] (LPM_Chnl_Indx[3]): The application can use this bit to accept an LPM token even if data is present in the INTR endpoint TxFIFO. This bit is applicable only for Dedicated TX FIFO configurations (OTG_EN_DED_TX_FIFO=1).

CH00Channel 0
CH11Channel 1
CH22Channel 2
CH33Channel 3
CH44Channel 4
CH55Channel 5
CH66Channel 6
CH77Channel 7
CH88Channel 8
CH99Channel 9
CH1010Channel 10
CH1111Channel 11
CH1212Channel 12
CH1313Channel 13
CH1414Channel 14
CH1515Channel15
KRWLPMRETRYCNT

LPM Retry Count (LPM_Retry_Cnt)

Host Mode: Number of additional LPM retries that the HOST would perform if the Device Response was an ERROR until a valid device response is received (STALL/NYET/ACK). Device Mode: LPM Accept Control (LPM_Accept_Ctrl) LPM_Accept_Ctrl[1]: The application can use this bit to reject an LPM token (NYET) between multiple stages of a single control transfer LPM_Accept_Ctrl[2]: The application can use this bit to accept an LPM token even if data is present in the ISOC endpoint TxFIFO. This bit is applicable only for Dedicated TxFIFO configurations (OTG_EN_DED_TX_FIFO=1). LPM_Accept_Ctrl[3]: The application can use this bit to accept an LPM token even if data is present in the BULK endpoint TxFIFO. This bit is applicable only for Dedicated TxFIFO configurations (OTG_EN_DED_TX_FIFO=1).

RETRY00Zero LPM retries
RETRY11One LPM retry
RETRY22Two LPM retries
RETRY33Three LPM retries
RETRY44Four LPM retries
RETRY55Five LPM retries
RETRY66Six LPM retries
RETRY77Seven LPM retries
LRWSNDLPM

Send LPM Transaction (SndLPM)

Host Mode: When set by application software, an LPM transaction containing two tokens, EXT & LPM is sent. Cleared by the hardware once a valid response (STALL./NYET/ACK) is received from the Device or the core had finished transmitting the programmed number of LPM retries. Note that this bit must be set only when the host is connected to local port.

DISABLED0In host-only mode: Received the response from the device for the LPM transaction
ENABLED1In host-only mode: Sending LPM transaction containing EXT and LPM tokens
MRLPMRETRYCNTSTS

LPM Retry Count Status (LPM_RetryCnt_Sts)

Host Mode: Number of LPM Host Retries still remaining to be transmitted for the current LPM sequence.

RETRYREM00Zero LPM retries remaining
RETRYREM11One LPM retry remaining
RETRYREM22Two LPM retries remaining
RETRYREM33Three LPM retries remaining
RETRYREM44Four LPM retries remaining
RETRYREM55Five LPM retries remaining
RETRYREM66Six LPM retries remaining
RETRYREM77Seven LPM retries remaining
NRWLPMENBESL

LPM Enable BESL (LPM_EnBESL)

This bit enables the BESL feature as defined in LPM Errata

DISABLED0BESL is disabled
ENABLED1BESL is enabled as defined in LPM Errata
ORWLPMRESTORESLPSTS

LPM Restore Sleep Status (LPM_RestoreSlpSts)

When the application power gates the core (Partial Power Down / Hibernation) the application needs to program this bit to restore the LPM status in the core. The application needs to program this bit, during restore process, based on whether it decides to go into Shallow Sleep (Clock Gating Only) or Deep Sleep (Power Gating) based on the BESL value received from the Host

DISABLED0Puts the core in Shallow Sleep mode based on the BESL value from the Host
ENABLED1Puts the core in Deep Sleep mode based on the BESL value from the Host

GPWRDN

Address offset: 0x058

Global Power Down Register

This is the Hibernation control register. This register is active only during hibernation and ADP. The application can get the status of the wakeup_logic and control it through this register.

Bit number313029282726252423222120191817161514131211109876543210
IDWWWWWVUTTSRQPONMLKJIHGFEDCBA
Reset 0x0000001000000000000000000000000000010000
IDR/WFieldValue IDValueDescription
ARWPMUINTSEL

PMU Interrupt Select (PMUIntSel)

A write to this bit with 1'b1 enables the PMU to generate interrupts to the application. During this state all interrupts from the DWC_otg_core module are blocked to the application. Note: This bit must be set to 1'b1 before the core is put into hibernation. Note: This bit must not be written to during normal mode of operation.

DISABLE0Internal DWC_otg_core interrupt is selected
ENABLE1External DWC_otg_pmu interrupt is selected
BRWPMUACTV

PMU Active (PMUActv)

This is bit is to enable or disable the PMU logic. Note: This bit must not be written to during normal mode of operation.

DISABLE0Disable PMU module
ENABLE1Enable PMU module
CRWRESTORE

Restore

The application must program this bit to enable or disable restore mode from the PMU module. Note: This bit must not be written to during normal mode of operation.

DISABLE0The controller in normal mode of operation
ENABLE1The controller in Restore mode
DRWPWRDNCLMP

Power Down Clamp (PwrDnClmp)

The application must program this bit to enable or disable the clamps to all the outputs of the core module to prevent the corruption of other active logic.

DISABLE0Disable PMU power clamp
ENABLE1Enable PMU power clamp
ERWPWRDNRSTN

Power Down ResetN (PwrDnRst_n)

The application must program this bit to reset the core during the Hibernation exit process or during ADP when powering up the core (in case the core was powered off during ADP process). Note: This bit must not be written to during normal mode of operation.

DISABLE0Reset the controller
ENABLE1The controller is in normal operation
FRWPWRDNSWTCH

Power Down Switch (PwrDnSwtch)

This bit indicates to the controller whether the VDD switch is in ON/OFF state. Note: This bit must not be written to during normal mode of operation.

ON0The controller is in ON state
OFF1The controller is in OFF state
GRWDISABLEVBUS

DisableVBUS

Host Mode: The application must program this bit if HPRT0.PrtPwr was programmed to 0 before entering Hibernation. This is to indicate PMU whether session was ended before entering Hibernation. Device Mode: The application must program this bit to inform the PMU whether the bvalid valid signal is high (session valid) or low (session end) whenever the core is switched off. This bit is valid only when GPWRDN.PMUActv is 1.

DISABLED0Host mode:HPRT0.PrtPwr was not programmed to 0, and in Device mode:Session Valid
ENABLED1Host mode:HPRT0.PrtPwr was programmed to 0 and in Device mode:Session End
HRWLNSTSCHNG

Line State Change (LnStsChng)

This interrupt is asserted when there is a Linestate Change detected by the PMU. The application must read GPWRDN.Linestate to determine the current linestate on USB. This bit is valid only when GPWRDN.PMUActv is 1.

DISABLED0No LineState change on USB
ENABLED1LineState change on USB
IRWLINESTAGECHANGEMSK

LineStageChangeMsk

Mask for LineStateChange interrupt.

MASK0Mask for LineStateChange Interrupt
NOMASK1No LineStateChange Interrupt Mask
JRWRESETDETECTED

ResetDetected

This field indicates that Reset has been detected by the PMU module. This field generates an interrupt.

DISABLED0Reset not detected
ENABLED1Reset detected
KRWRESETDETMSK

ResetDetMsk

Mask for ResetDetected interrupt

MASK0Mask for ResetDetect Interrupt
NOMASK1No ResetDetect Interrupt Mask
LRWDISCONNECTDETECT

DisconnectDetect

This field indicates that Disconnect has been detected by the PMU. This field generates an interrupt. After detecting disconnect during hibernation the application must not restore the core, but instead start the initialization process.

DISABLED0Disconnect not detected
ENABLED1Disconnect detected
MRWDISCONNECTDETECTMSK

DisconnectDetectMsk

Mask For DisconnectDetect Interrupt

MASK0Mask for DisconnectDetect Interrupt
NOMASK1No DisconnectDetect Interrupt Mask
NRWCONNECTDET

ConnectDet

This field indicates that a new connect has been detected

DISABLED0Connect not detected
ENABLED1Connect detected
ORWCONNDETMSK

ConnDetMsk

Mask for ConnectDet interrupt

NOMASK0No ConnectDet Interrupt Mask
MASK1Mask for ConnectDet Interrupt
PRWSRPDETECT

SRPDetect

This field indicates that SRP has been detected by the PMU. This field generates an interrupt. After detecting SRP during hibernation the application must not restore the core. The application must get into the initialization process.

DISABLED0SRP not detected
ENABLED1SRP detected
QRWSRPDETECTMSK

SRPDetectMsk

Mask for SRPDetect Interrupt

NOMASK0No SRPDetect Interrupt Mask
MASK1Mask for SRPDetect Interrupt
RRWSTSCHNGINT

Status Change Interrupt (StsChngInt)

This field indicates a status change in either the IDDIG or BSessVld signal. After receiving this interrupt the application must read the GPWRDN register and interpret the change in IDDIG or BSesVld with respect to the previous value stored by the application. Note: When Battery Charger is enabled and the ULPI interface is used, if StsChngInt is received and the application reads GPWRDN register and determines that it is because of a change in the value of IDDIG, then StsChngInt may be generated once again within the next few clock cycles. This occurs because of an ambiguity in the implementation of Battery Charger Support over the ULPI interface. After receiving the StsChngInt for the second time the application can once again read the GPWRDN register. However, this time the valueIDDIG (or BSesVld) would not have changed. The application then processes the second interrupt but no further action will be required as a result.

DISABLED0No Status change
ENABLED1Status change detected
SRWSTSCHNGINTMSK

StsChngIntMsk

Mask for StsChng Interrupt

MASK0Mask for Status Change Interrupt
NOMASK1No Status Change Interrupt Mask
TRLINESTATE

LineState

This field indicates the current linestate on USB as seen by the PMU module. This bit is valid only when GPWRDN.PMUActv is 1.

LS10Linestate on USB: DM = 0, DP = 0
LS21Linestate on USB: DM = 0, DP = 1
LS32Linestate on USB: DM = 1, DP = 0
LS43Linestate on USB: Not-defined
URIDDIG

This bit indicates the status of the signal IDDIG. The application must read this bit after receiving GPWRDN.StsChngInt and decode based on the previous value stored by the application.

Indicates the current mode. This bit is valid only when GPWRDN.PMUActv is 1.

DISABLED0Host Mode
ENABLED1Device Mode
VRBSESSVLD

B Session Valid (BSessVld)

This field reflects the B session valid status signal from the PHY. This bit is valid only when GPWRDN.PMUActv is 1.

NOTVALID0B_Valid is 0
VALID1B_Valid is 1
WRMULTVALIDBC

MultValIdBC

Battery Charger ACA inputs in the following order: These bits are present only if BC_SUPPORT = 1. Otherwise, these bits are reserved and will read 5'h0.

RID00OTG device as B-device
RIDC1OTG device as B-device, can connect
RIDB2OTG device as B-device, cannot connect
RIDA4OTG device as A-device
RIDGND8ID_OTG pin is grounded
RIDARIDGND12OTG device as A-device, RID_A=1 and RID_GND=1
RIDFLOAT16ID pull down when ID_OTG is floating
RIDCRIDFLOAT17OTG device as B-device, can connect, RID_C=1 and RID_FLOAT=1
RIDBRIDFLOAT18OTG device as B-device, cannot connect, RID_B=1 and RID_FLOAT=1
RID131OTG device as A-device

GDFIFOCFG

Address offset: 0x05C

Global DFIFO Configuration Register

Register to configure the DFIFOs for the controller.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x0BE00C0000001011111000000000110000000000
IDR/WFieldValue IDValueDescription
ARWGDFIFOCFG

GDFIFOCfg

This field is for dynamic programming of the DFIFO Size. This value takes effect only when the application programs a non zero value to this register. The value programmed must conform to the guidelines described in 'FIFO RAM Allocation'. The core does not have any corrective logic if the FIFO sizes are programmed incorrectly.

BRWEPINFOBASEADDR

This field provides the start address of the EP info controller.

The EP info controller manages the stored values in the last few locations of the SPRAM as listed below. - Host Buffer DMA mode: One location per channel is used in SPRAM to store the HCDMAn value. - Host Scatter/Gather DMA mode: Four locations per channel are used in SPRAM to store the Base Descriptor address, Current Descriptor address, Current Buffer Pointer, and the Status Quadlet. - Device Buffer DMA mode: One location per endpoint direction is used in SPRAM to store the DIEPDMA and DOEPDMA value. - Device Scatter/Gather DMA mode: Four locations per endpoint direction are used in SPRAM to store the Base Descriptor address, Current Descriptor address, Current Buffer Pointer and the Status Quadlet.

GINTMSK2

Address offset: 0x068

Interrupt Mask Register 2

This register works with the Interrupt Register (GINTSTS2) to interrupt the application. When an interrupt bit is masked, the interrupt associated with that bit is not generated. However, the GINTSTS2 register bit corresponding to that interrupt is still set. Note: The fields of this register change depending on host or device mode.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWGINTMSK2

GINTSTS2

Address offset: 0x06C

Interrupt Register 2

This register interrupts the application for system-level events in the current mode (Device mode or Host mode). Some of the bits in this register are valid only in Host mode, while others are valid in Device mode only. This register also indicates the current mode. To clear the interrupt status bits of type R_SS_WC, the application must write 1'b1 to the bit. The application must clear the GINTSTS2 register at initialization before unmasking the interrupt bit to avoid any interrupts generated prior to initialization.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWGINTSTS2

HPTXFSIZ

Address offset: 0x100

Host Periodic Transmit FIFO Size Register

This register holds the size and the memory start address of the Periodic TxFIFO. Note: Read the reset value of this register only after the following conditions: - If IDDIG_FILTER is disabled, read only after PHY clock is stable. - If IDDIG_FILTER is enabled, read only after the filter timer expires.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBAAAAAAAAAAAAA
Reset 0x0C00180000001100000000000001100000000000
IDR/WFieldValue IDValueDescription
ARWPTXFSTADDR

Host Periodic TxFIFO Start Address (PTxFStAddr)

The power-on reset value of this register is the sum of the Largest Rx Data FIFO Depth and Largest Non-periodic Tx Data FIFO Depth.These parameters are: In shared FIFO operation: - OTG_RX_DFIFO_DEPTH + OTG_TX_NPERIO_DFIFO_DEPTH In dedicated FIFO mode: - OTG_RX_DFIFO_DEPTH + OTG_TX_HNPERIO_DFIFO_DEPTH If Enable Dynamic FIFO Sizing? was deselected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 0), these flops are optimized, and reads return the power-on value. If Enable Dynamic FIFO Sizing? was selected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 1), you can write a new value in this field. Programmed values must not exceed the power-on value set in coreConsultant.

BRWPTXFSIZE

Host Periodic TxFIFO Depth (PTxFSize)

This value is in terms of 32-bit words. - Minimum value is 16 - Maximum value is 32,768 The power-on reset value of this register is specified as the Largest Host Mode Periodic Tx Data FIFO Depth. - If Enable Dynamic FIFO Sizing? was deselected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 0), these flops are optimized, and reads return the power-on value. - If Enable Dynamic FIFO Sizing? was selected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 1), you can write a new value in this field. Programmed values must not exceed the power-on value set in coreConsultant.

DIEPTXF[n]

Address offset: 0x104 + (n × 0x4)

Device IN Endpoint Transmit FIFO 1 Size Register

This register is valid only in dedicated FIFO mode (OTG_EN_DED_TX_FIFO=1). It holds the size and memory start address of IN endpoint TxFIFOs implemented in Device mode. Each FIFO holds the data for one IN endpoint. This register is repeated for instantiated IN endpoint FIFOs 1 to 15. For IN endpoint FIFO 0, use GNPTXFSIZ register for programming the size and memory start address.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBAAAAAAAAAAAAA
Reset 0x0C00180000001100000000000001100000000000
IDR/WFieldValue IDValueDescription
ARWINEPNTXFSTADDR

IN Endpoint FIFOn Transmit RAM Start Address (INEPnTxFStAddr)

This field contains the memory start address for the IN endpoint Transmit FIFO that this register corresponds to. The power-on reset value of this register is calculated according to the following formula: OTG_RX_DFIFO_DEPTH + SUM of OTG_TX_DINEP_DFIFO_DEPTH_'n', where n = 0 to (FIFO number-1). For example, Start address of INEP FIFO 1 (DIEPTXF1) is OTG_RX_DFIFO_DEPTH + OTG_TX_DINEP_DFIFO_DEPTH_0, start address of INEP FIFO 2 (DIEPTXF2) is OTG_RX_DFIFO_DEPTH + OTG_TX_DINEP_DFIFO_DEPTH_0 + OTG_TX_DINEP_DFIFO_DEPTH_1, and so on. If at POR the calculated value (C) exceeds 65535, then the Reset value becomes Reset Value(A) = (C-65536). - If Enable Dynamic FIFO Sizing is deselected in coreConsultant (OTG_DFIFO_DYNAMIC = 0), this field is read-only and read value is the power-on reset value. - If Enable Dynamic FIFO Sizing is selected in coreConsultant (OTG_DFIFO_DYNAMIC = 1), and you have calculated or programmed a new value for RxFIFO depth or TX FIFO depths, you can program their values according to the above formula. Programmed values must not exceed the power-on value set in coreConsultant.

BRWINEPNTXFDEP

IN Endpoint TxFIFO Depth (INEPnTxFDep)

This value is in terms of 32-bit words. - Minimum value is 16 - Maximum value is 32,768 The power-on reset value of this register is specified as the Largest IN Endpoint FIFO number Depth (parameter OTG_TX_DINEP_DFIFO_DEPTH_i) set during coreConsultant configuration, where i is the FIFO number this register corresponds to. - If "Enable Dynamic FIFO Sizing?" was deselected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 0), these flops are optimized, and reads return the power-on value. - If "Enable Dynamic FIFO Sizing?" was selected in coreConsultant (parameter OTG_DFIFO_DYNAMIC = 1), you can write a new value in this field. Programmed values must not exceed the power-on value.

HCFG

Address offset: 0x400

Host Configuration Register

This register is used to configure the controller in Host mode.

Bit number313029282726252423222120191817161514131211109876543210
IDEDDDDDDDDCBAA
Reset 0x0000020000000000000000000000001000000000
IDR/WFieldValue IDValueDescription
ARWFSLSPCLKSEL

FS/LS PHY Clock Select (FSLSPclkSel)

When the core is in FS Host mode When the core is in LS Host mode Notes: - When Core in FS mode, the internal and external clocks have the same frequency. - When Core in LS mode, -- If FSLSPclkSel = 2'b00: Internal and external clocks have the same frequency -- If FSLSPclkSel = 2'b10: Internal clock is the divided by eight version of external 48 MHz clock

CLK30600PHY clock is running at 30/60 MHz
CLK481PHY clock is running at 48 MHz
CLK62PHY clock is running at 6 MHz
BRWFSLSSUPP

FS- and LS-Only Support (FSLSSupp)

The application uses this bit to control the core's enumeration speed. Using this bit, the application can make the core enumerate as a FS host, even If the connected device supports HS traffic. Do not make changes to this field after initial programming.

HSFSLS0HS/FS/LS, based on the maximum speed supported by the connected device
FSLS1FS/LS-only, even if the connected device can support HS
CRWENA32KHZS

Enable 32 KHz Suspend mode (Ena32KHzS)

This bit can be set only in FS PHY interface is selected. Else, this bit needs to be set to zero. When FS PHY interface is chosen and this bit is set, the core expects that the PHY clock during Suspend is switched from 48 MHz to 32 KHz.

DISABLED032 KHz Suspend mode disabled
ENABLED132 KHz Suspend mode enabled
DRWRESVALID

Resume Validation Period (ResValid)

This field is effective only when HCFG.Ena32KHzS is set. It controls the resume period when the core resumes from suspend. The core counts for 'ResValid' number of clock cycles to detect a valid resume when this is set.

ERWMODECHTIMEN

Mode Change Ready Timer Enable (ModeChTimEn)

This bit is used to enable/disable the Host core to wait 200 PHY clock cycles at the end of Resume to change the opmode signal to the PHY to 00 after Suspend or LPM.

ENABLED0The Host core waits for either 200 PHY clock cycles or a linestate of SE0 at the end of resume to change the opmode from 0x2 to 0x0
DISABLED1The Host core waits only for a linestate of SE0 at the end of resume to change the opmode from 0x2 to 0x0

HFIR

Address offset: 0x404

Host Frame Interval Register

This register is used to control the interval between two consecutive SOFs.

Bit number313029282726252423222120191817161514131211109876543210
IDBAAAAAAAAAAAAAAAA
Reset 0x0000EA6000000000000000001110101001100000
IDR/WFieldValue IDValueDescription
ARWFRINT

Frame Interval (FrInt)

The value that the application programs to this field specifies the interval between two consecutive SOFs (FS) or micro- SOFs (HS) or Keep-Alive tokens (HS). This field contains the number of PHY clocks that constitute the required frame interval. The Default value set in this field is for FS operation when the PHY clock frequency is 60 MHz. The application can write a value to this register only after the Port Enable bit of the Host Port Control and Status register (HPRT.PrtEnaPort) has been Set. If no value is programmed, the core calculates the value based on the PHY clock specified in the FS/LS PHY Clock Select field of the Host Configuration register (HCFG.FSLSPclkSel). Do not change the value of this field after the initial configuration. - 125 us * (PHY clock frequency for HS) - 1 ms * (PHY clock frequency for FS/LS)

BRWHFIRRLDCTRL

Reload Control (HFIRRldCtrl)

This bit allows dynamic reloading of the HFIR register during run time. This bit needs to be programmed during initial configuration and its value must not be changed during runtime.

DISABLED0The HFIR cannot be reloaded dynamically
ENABLED1The HFIR can be dynamically reloaded during runtime

HFNUM

Address offset: 0x408

Host Frame Number/Frame Time Remaining Register

This register indicates the current frame number. It also indicates the time remaining (in terms of the number of PHY clocks) in the current (micro)frame. Note: Read the reset value of this register only after the following conditions: - If IDDIG_FILTER is disabled, read only when the PHY clock is stable. - If IDDIG_FILTER is enabled, read only after the filter timer expires.

Bit number313029282726252423222120191817161514131211109876543210
IDBBBBBBBBBBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x00003FFF00000000000000000011111111111111
IDR/WFieldValue IDValueDescription
ARFRNUM

Frame Number (FrNum)

This field increments when a new SOF is transmitted on the USB, and is reset to 0 when it reaches 16'h3FFF.

INACTIVE0No SOF is transmitted
ACTIVE1SOF is transmitted
BRFRREM

Frame Time Remaining (FrRem)

Indicates the amount of time remaining in the current microframe (HS) or Frame (FS/LS), in terms of PHY clocks. This field decrements on each PHY clock. When it reaches zero, this field is reloaded with the value in the Frame Interval register and a new SOF is transmitted on the USB.

HPTXSTS

Address offset: 0x410

Host Periodic Transmit FIFO/Queue Status Register

This register contains information about the Periodic Transmit Queue in the Host controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCCCCCCCCBBBBBBBAAAAAAAAAAAAAAAA
Reset 0x00080C0000000000000010000000110000000000
IDR/WFieldValue IDValueDescription
ARPTXFSPCAVAIL

Periodic Transmit Data FIFO Space Available (PTxFSpcAvail)

Indicates the number of free locations available to be written to in the Periodic TxFIFO. Values are in terms of 32-bit words - Others : Reserved

BRPTXQSPCAVAIL

Periodic Transmit Request Queue Space Available (PTxQSpcAvail)

Indicates the number of free locations available to be written in the Periodic Transmit Request Queue. This queue holds both IN and OUT requests. - n: n locations available (0 <= n <= 16)

FULL0Periodic Transmit Request Queue is full
FREE111 location available
FREE222 locations available
FREE333 locations available
FREE444 locations available
FREE555 locations available
FREE666 locations available
FREE777 locations available
FREE888 locations available
FREE999 locations available
FREE101010 locations available
FREE111111 locations available
FREE121212 locations available
FREE131313 locations available
FREE141414 locations available
FREE151515 locations available
CRPTXQTOP

Top of the Periodic Transmit Request Queue (PTxQTop)

This indicates the Entry in the Periodic Tx Request Queue that is currently being processed by the MAC. This register is used for debugging.

HAINT

Address offset: 0x414

Host All Channels Interrupt Register

When a significant event occurs on a channel, the Host All Channels Interrupt register interrupts the application using the Host Channels Interrupt bit of the Core Interrupt register (GINTSTS.HChInt). This is shown in the "Interrupt Hierarchy" figure in the databook. There is one interrupt bit per channel, up to a maximum of 16 bits. Bits in this register are set and cleared when the application sets and clears bits in the corresponding Host Channel-n Interrupt register.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARHAINTChannel Interrupt for channel no.
INACTIVE0Not active
ACTIVE1Host Channel Interrupt

HAINTMSK

Address offset: 0x418

Host All Channels Interrupt Mask Register

The Host All Channel Interrupt Mask register works with the Host All Channel Interrupt register to interrupt the application when an event occurs on a channel. There is one interrupt mask bit per channel, up to a maximum of 16 bits.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWHAINTMSK

Channel Interrupt Mask (HAINTMsk)

One bit per channel: Bit 0 for channel 0, bit 15 for channel 15

MASK0Mask Channel interrupt
UNMASK1UnMask Channel interrupt

HPRT

Address offset: 0x440

Host Port Control and Status Register

This register is available only in Host mode. Currently, the OTG Host supports only one port. A single register holds USB port-related information such as USB reset, enable, suspend, resume, connect status, and test mode for each port. It is shown in the "Interrupt Hierarchy" figure in the databook. The R_SS_WC bits in this register can trigger an interrupt to the application through the Host Port Interrupt bit of the Core Interrupt register (GINTSTS.PrtInt). On a Port Interrupt, the application must read this register and clear the bit that caused the interrupt. For the R_SS_WC bits, the application must write a 1 to the bit to clear the interrupt.

Bit number313029282726252423222120191817161514131211109876543210
IDMMLLLLKJJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARPRTCONNSTS

Port Connect Status (PrtConnSts)

- 0: No device is attached to the port. - 1: A device is attached to the port.

NOTATTACHED0No device is attached to the port
ATTACHED1A device is attached to the port
BRWPRTCONNDET

Port Connect Detected (PrtConnDet)

The core sets this bit when a device connection is detected to trigger an interrupt to the application using the Host Port Interrupt bit of the Core Interrupt register (GINTSTS.PrtInt).This bit can be set only by the core and the application must write 1 to clear it.The application must write a 1 to this bit to clear the interrupt.

INACTIVE0No device connection detected
ACTIVE1Device connection detected
CRWPRTENA

Port Enable (PrtEna)

A port is enabled only by the core after a reset sequence, and is disabled by an overcurrent condition, a disconnect condition, or by the application clearing this bit. The application cannot Set this bit by a register write. It can only clear it to disable the port by writing 1. This bit does not trigger any interrupt to the application.

DISABLED0Port disabled
ENABLED1Port enabled
DRWPRTENCHNG

Port Enable/Disable Change (PrtEnChng)

The core sets this bit when the status of the Port Enable bit [2] of this register changes.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0Port Enable bit 2 has not changed
ACTIVE1Port Enable bit 2 changed
ERPRTOVRCURRACT

Port Overcurrent Active (PrtOvrCurrAct)

Indicates the overcurrent condition of the port.

INACTIVE0No overcurrent condition
ACTIVE1Overcurrent condition
FRWPRTOVRCURRCHNG

Port Overcurrent Change (PrtOvrCurrChng)

The core sets this bit when the status of the Port Overcurrent Active bit (bit 4) in this register changes.This bit can be set only by the core and the application must write 1 to clear it

INACTIVE0Status of port overcurrent status is not changed
ACTIVE1Status of port overcurrent changed
GRWPRTRES

Port Resume (PrtRes)

The application sets this bit to drive resume signaling on the port. The core continues to drive the resume signal until the application clears this bit. If the core detects a USB remote wakeup sequence, as indicated by the Port Resume/Remote Wakeup Detected Interrupt bit of the Core Interrupt register (GINTSTS.WkUpInt), the core starts driving resume signaling without application intervention and clears this bit when it detects a disconnect condition. The read value of this bit indicates whether the core is currently driving resume signaling. When LPM is enabled, In L1 state the behavior of this bit is as follows: The application sets this bit to drive resume signaling on the port. The core continues to drive the resume signal until a pre-determined time specified in GLPMCFG.HIRD_Thres[3:0] field. If the core detects a USB remote wakeup sequence, as indicated by the Port L1Resume/Remote L1Wakeup Detected Interrupt bit of the Core Interrupt register (GINTSTS.L1WkUpInt), the core starts driving resume signaling without application intervention and clears this bit at the end of resume.This bit can be set by both core or application and also cleared by core or application. This bit is cleared by the core even if there is no device connected to the Host.

NORESUME0No resume driven
RESUME1Resume driven
HRWPRTSUSP

Port Suspend (PrtSusp)

The application sets this bit to put this port in Suspend mode. The core only stops sending SOFs when this is Set. To stop the PHY clock, the application must Set the Port Clock Stop bit, which asserts the suspend input pin of the PHY. The read value of this bit reflects the current suspend status of the port. This bit is cleared by the core after a remote wakeup signal is detected or the application sets the Port Reset bit or Port Resume bit in this register or the Resume/Remote Wakeup Detected Interrupt bit or Disconnect Detected Interrupt bit in the Core Interrupt register (GINTSTS.WkUpInt or GINTSTS.DisconnInt, respectively).This bit is cleared by the core even if there is no device connected to the Host.

INACTIVE0Port not in Suspend mode
ACTIVE1Port in Suspend mode
IRWPRTRST

Port Reset (PrtRst)

When the application sets this bit, a reset sequence is started on this port. The application must time the reset period and clear this bit after the reset sequence is complete. The application must leave this bit set for at least a minimum duration mentioned below to start a reset on the port. The application can leave it set for another 10 ms in addition to the required minimum duration, before clearing the bit, even though there is no maximum limit Set by the USB standard.This bit is cleared by the core even if there is no device connected to the Host. - High speed: 50 ms - Full speed/Low speed: 10 ms

DISABLED0Port not in reset
ENABLED1Port in reset
JRPRTLNSTS

Port Line Status (PrtLnSts)

Indicates the current logic level USB data lines

PLUSD1Logic level of D+
MINUSD2Logic level of D-
KRWPRTPWR

Port Power (PrtPwr)

The application uses this field to control power to this port (write 1'b1 to set to 1'b1 and write 1'b0 to set to 1'b0), and the core can clear this bit on an over current condition. Note: This bit is interface independent. The application needs to program this bit for all interfaces as described in the host programming flow in the Programming Guide.

OFF0Power off
ON1Power on
LRWPRTTSTCTL

Port Test Control (PrtTstCtl)

The application writes a nonzero value to this field to put the port into a Test mode, and the corresponding pattern is signaled on the port. To move the DWC_otg controller to test mode, you must set this field. Complete the following steps to move the DWC_otg core to test mode: - 1. Power on the core. - 2. Load the DWC_otg driver. - 3. Connect an HS device and enumerate to HS mode. - 4. Access the HPRT register to send test packets. - 5. Remove the device and connect to fixture (OPT) port. The DWC_otg host core continues sending out test packets. - 6. Test the eye diagram.

DISABLED0Test mode disabled
TESTJ1Test_J mode
TESTK2Test_K mode
TESTSN3Test_SE0_NAK mode
TESTPM4Test_Packet mode
TESTFENB5Test_force_Enable
MRPRTSPD

Port Speed (PrtSpd)

Indicates the speed of the device attached to this port.

HIGHSPD0High speed
FULLSPD1Full speed
LOWSPD2Low speed
PRTSPDRSVD33

HC[n].CHAR

Address offset: 0x500 + (n × 0x18)

Host Channel Characteristics Register 0

This register contains the characteristics of the Host Channel.

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGGGGGGGFFEEDCBBBBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

Indicates the maximum packet size of the associated endpoint.

BRWEPNUM

Endpoint Number (EPNum)

Indicates the endpoint number on the device serving as the data source or sink.

ENDPT00End point 0
ENDPT11End point 1
ENDPT22End point 2
ENDPT33End point 3
ENDPT44End point 4
ENDPT55End point 5
ENDPT66End point 6
ENDPT77End point 7
ENDPT88End point 8
ENDPT99End point 9
ENDPT1010End point 10
ENDPT1111End point 11
ENDPT1212End point 12
ENDPT1313End point 13
ENDPT1414End point 14
ENDPT1515End point 15
CRWEPDIR

Endpoint Direction (EPDir)

Indicates whether the transaction is IN or OUT.

OUT0OUT Direction
IN1IN Direction
DRWLSPDDEV

Low-Speed Device (LSpdDev)

This field is Set by the application to indicate that this channel is communicating to a low-speed device. The application must program this bit when a low speed device is connected to the host through an FS HUB. The DWC_otg Host core uses this field to drive the XCVR_SELECT signal to 2'b11 while communicating to the LS Device through the FS hub. Note: In a peer to peer setup, the DWC_otg Host core ignores this bit even if it is set by the application software.

DISABLED0Not Communicating with low speed device
ENABLED1Communicating with low speed device
ERWEPTYPE

Endpoint Type (EPType)

Indicates the transfer type selected.

CTRL0Control
ISOC1Isochronous
BULK2Bulk
INTERR3Interrupt
FRWEC

Multi Count (MC) / Error Count (EC)

When the Split Enable bit of the Host Channel-n Split Control register (HCSPLTn.SpltEna) is reset (1'b0), this field indicates to the host the number of transactions that must be executed per microframe for this periodic endpoint. For non periodic transfers, this field is used only in DMA mode, and specifies the number packets to be fetched for this channel before the internal DMA engine changes arbitration. When HCSPLTn.SpltEna is Set (1'b1), this field indicates the number of immediate retries to be performed for a periodic split transactions on transaction errors. This field must be Set to at least 2'b01.

ECRSVD00Reserved. This field yields undefined result
TRANSONE11 transaction
TRANSTWO22 transactions to be issued for this endpoint per microframe
TRANSTHREE33 transactions to be issued for this endpoint per microframe
GRWDEVADDR

Device Address (DevAddr)

This field selects the specific device serving as the data source or sink.

HRWODDFRM

Odd Frame (OddFrm)

This field is set (reset) by the application to indicate that the OTG host must perform a transfer in an odd (micro)Frame. This field is applicable for only periodic (isochronous and interrupt) transactions.

EFRAME0Even Frame Transfer
OFRAME1Odd Frame Transfer
IRWCHDIS

Channel Disable (ChDis)

The application sets this bit to stop transmitting/receiving data on a channel, even before the transfer for that channel is complete. The application must wait for the Channel Disabled interrupt before treating the channel as disabled.

INACTIVE0Transmit/Recieve normal
ACTIVE1Stop transmitting/receiving data on channel
JRWCHENA

Channel Enable (ChEna)

When Scatter/Gather mode is enabled When Scatter/Gather mode is disabled This field is set by the application and cleared by the OTG host.

DISABLED0If Scatter/Gather mode is enabled, indicates that the descriptor structure is not yet ready. If Scatter/Gather mode is disabled, indicates that the channel is disabled.
ENABLED1If Scatter/Gather mode is enabled, indicates that the descriptor structure and data buffer with data is set up and this channel can access the descriptor. If Scatter/Gather mode is disabled, indicates that the channel is enabled.

HC[n].SPLT

Address offset: 0x504 + (n × 0x18)

Host Channel Split Control Register 0

This register contains the Split characteristics of the Host Channel.

Bit number313029282726252423222120191817161514131211109876543210
IDEDCCBBBBBBBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWPRTADDR

Port Address (PrtAddr)

This field is the port number of the recipient transaction translator.

BRWHUBADDR

Hub Address (HubAddr)

This field holds the device address of the transaction translator's hub.

CRWXACTPOS

Transaction Position (XactPos)

This field is used to determine whether to send all, first, middle, or last payloads with each OUT transaction.

MIDDLE0Mid. This is the middle payload of this transaction (which is larger than 188 bytes)
END1End. This is the last payload of this transaction (which is larger than 188 bytes)
BEGIN2Begin. This is the first data payload of this transaction (which is larger than 188 bytes)
ALL3All. This is the entire data payload of this transaction (which is less than or equal to 188 bytes)
DRWCOMPSPLT

Do Complete Split (CompSplt)

The application sets this field to request the OTG host to perform a complete split transaction.

NOSPLIT0No complete split transaction
SPLIT1Complete Split transaction
ERWSPLTENA

Split Enable (SpltEna)

The application sets this field to indicate that this channel is enabled to perform split transactions.

DISABLED0Split not enabled
ENABLED1Split enabled

HC[n].INT

Address offset: 0x508 + (n × 0x18)

Host Channel Interrupt Register 0

This register indicates the status of a channel with respect to USB- and AHB-related events. It is shown in the "Interrupt Hierarchy" figure in the databook. The application must read this register when the Host Channels Interrupt bit of the Core Interrupt register (GINTSTS.HChInt) is set. Before the application can read this register, it must first read the Host All Channels Interrupt (HAINT) register to get the exact channel number for the Host Channel-n Interrupt register. The application must clear the appropriate bit in this register to clear the corresponding bits in the HAINT and GINTSTS registers.

Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed (XferCompl)

Transfer completed normally without any errors.This bit can be set only by the core and the application must write 1 to clear it. - For Scatter/Gather DMA mode, it indicates that current descriptor processing got completed with IOC bit set in its descriptor. - In non Scatter/Gather DMA mode, it indicates that Transfer completed normally without any errors.

INACTIVE0Transfer in progress or No Active Transfer
ACTIVE1Transfer completed normally without any errors
BRWCHHLTD

Channel Halted (ChHltd)

In non Scatter/Gather DMA mode, it indicates the transfer completed abnormally either because of any USB transaction error or in response to disable request by the application or because of a completed transfer. In Scatter/gather DMA mode, this indicates that transfer completed due to any of the following - EOL being set in descriptor - AHB error - Excessive transaction errors - Babble - Stall

INACTIVE0Channel not halted
ACTIVE1Channel Halted
CRWAHBERR

AHB Error (AHBErr)

This is generated only in Internal DMA mode when there is an AHB error during AHB read/write. The application can read the corresponding channel's DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB error
ACTIVE1AHB error during AHB read/write
DRWSTALL

STALL Response Received Interrupt (STALL)

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Stall Response Received Interrupt
ACTIVE1Stall Response Received Interrupt
ERWNAK

NAK Response Received Interrupt (NAK)

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No NAK Response Received Interrupt
ACTIVE1NAK Response Received Interrupt
FRWACK

ACK Response Received/Transmitted Interrupt (ACK)

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No ACK Response Received or Transmitted Interrupt
ACTIVE1ACK Response Received or Transmitted Interrup
GRWNYET

NYET Response Received Interrupt (NYET)

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No NYET Response Received Interrupt
ACTIVE1NYET Response Received Interrupt
HRWXACTERR

Transaction Error (XactErr)

Indicates one of the following errors occurred on the USB. - CRC check failure - Timeout - Bit stuff error - False EOP In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Transaction Error
ACTIVE1Transaction Error
IRWBBLERR

Babble Error (BblErr)

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Babble Error
ACTIVE1Babble Error
JRWFRMOVRUN

Frame Overrun (FrmOvrun).

In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core. This bit can be set only by the core and the application must write 1 to clear it.

INACTIVE0No Frame Overrun
ACTIVE1Frame Overrun
KRWDATATGLERRData Toggle Error (DataTglErr).This bit can be set only by the core and the application must write 1 to clear it.In Scatter/Gather DMA mode, the interrupt due to this bit is masked in the core.
INACTIVE0No Data Toggle Error
ACTIVE1Data Toggle Error

HC[n].INTMSK

Address offset: 0x50C + (n × 0x18)

Host Channel Interrupt Mask Register 0

This register reflects the mask for each channel status described in the previous section.

Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPLMSKTransfer Completed Mask (XferComplMsk)
MASK0Transfer Completed Mask
NOMASK1No Transfer Completed Mask
BRWCHHLTDMSKChannel Halted Mask (ChHltdMsk)
MASK0Channel Halted Mask
NOMASK1No Channel Halted Mask
CRWAHBERRMSKAHB Error Mask (AHBErrMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0AHB Error Mask
NOMASK1No AHB Error Mask
DRWSTALLMSKSTALL Response Received Interrupt Mask (StallMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask STALL Response Received Interrupt
NOMASK1No STALL Response Received Interrupt Mask
ERWNAKMSKNAK Response Received Interrupt Mask (NakMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask NAK Response Received Interrupt
NOMASK1No NAK Response Received Interrupt Mask
FRWACKMSKACK Response Received/Transmitted Interrupt Mask (AckMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask ACK Response Received/Transmitted Interrupt
NOMASK1No ACK Response Received/Transmitted Interrupt Mask
GRWNYETMSKNYET Response Received Interrupt Mask (NyetMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask NYET Response Received Interrupt
NOMASK1No NYET Response Received Interrupt Mask
HRWXACTERRMSKTransaction Error Mask (XactErrMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask Transaction Error
NOMASK1No Transaction Error Mask
IRWBBLERRMSKBabble Error Mask (BblErrMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask Babble Error
NOMASK1No Babble Error Mask
JRWFRMOVRUNMSKFrame Overrun Mask (FrmOvrunMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask Overrun Mask
NOMASK1No Frame Overrun Mask
KRWDATATGLERRMSKData Toggle Error Mask (DataTglErrMsk) In scatter/gather DMA mode for host, interrupts are not generated due to the corresponding bits set in HCINTn.
MASK0Mask Data Toggle Error
NOMASK1No Data Toggle Error Mask

HC[n].TSIZ

Address offset: 0x510 + (n × 0x18)

Host Channel Transfer Size Register 0

This register reflects the transfer size for the Host Channel.

Bit number313029282726252423222120191817161514131211109876543210
IDDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Non-Scatter/Gather DMA Mode:

Transfer Size (XferSize) For an OUT, this field is the number of data bytes the host sends during the transfer. For an IN, this field is the buffer size that the application has Reserved for the transfer. The application is expected to program this field as an integer multiple of the maximum packet size for IN transactions (periodic and non-periodic). The width of this counter is specified as Width of Transfer Size Counters during coreConsultant configuration (parameter OTG_TRANS_COUNT_WIDTH). Scatter/Gather DMA Mode: [18:16]: Reserved [15:8]: NTD (Number of Transfer Descriptors) (Non Isochronous) This value is in terms of number of descriptors. Maximum number of descriptor that can be present in the list is 64. The values can be from 0 to 63. - 0: 1 descriptor - 63: 64 descriptors This field indicates the total number of descriptors present in that list. The core wraps around after servicing NTD number of descriptors for that list. (Isochronous) This field indicates the number of descriptors present in that list microframe. The possible values for FS are - 1: 2 descriptors - 3: 4 descriptors - 7: 8 descriptors - 15: 16 descriptors - 31: 32 descriptors - 63: 64 descriptors The possible values for HS are - 7: 8 descriptors - 15: 16 descriptors - 31: 32 descriptors - 63: 64 descriptors - 127: 128 descriptors - 255: 256 descriptors [7:0]: SCHED_INFO (Schedule information) Every bit in this 8 bit register indicates scheduling for that microframe. Bit 0 indicates scheduling for 1st microframe and bit 7 indicates scheduling for 8th microframe in that frame. A value of 8'b11111111 indicates that the corresponding interrupt channel is scheduled to issue a token every microframe in that frame. A value of 8'b10101010 indicates that the corresponding interrupt channel is scheduled to issue a token every alternate microframe starting with second microframe. Note that this field is applicable only for periodic (Isochronous and Interrupt) channels.

BRWPKTCNT

Non-Scatter/Gather DMA Mode:

Packet Count (PktCnt) This field is programmed by the application with the expected number of packets to be transmitted (OUT) or received (IN). The host decrements this count on every successful transmission or reception of an OUT/IN packet. Once this count reaches zero, the application is interrupted to indicate normal completion. The width of this counter is specified as Width of Packet Counters during coreConsultant configuration (parameter OTG_PACKET_COUNT_WIDTH). Scatter/Gather DMA Mode: [28:19]: Reserved

CRWPID

PID (Pid)

The application programs this field with the type of PID to use for the initial transaction. The host maintains this field for the rest of the transfer.

DATA00DATA0
DATA21DATA2
DATA12DATA1
MDATA3MDATA (non-control)/SETUP (control)
DRWDOPNG

Do Ping (DoPng)

This bit is used only for OUT transfers. Setting this field to 1 directs the host to do PING protocol. Note: Do not set this bit for IN transfers. If this bit is set for IN transfers it disables the channel.

NOPING0No ping protocol
PING1Ping protocol

HC[n].DMA

Address offset: 0x514 + (n × 0x18)

Host Channel DMA Address Register 0

This register is used by the OTG host in the internal DMA mode to maintain the current buffer pointer for IN/OUT transactions. The starting DMA address must be DWORD-aligned.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

In Buffer DMA Mode:

[31:0]: DMA Address (DMAAddr) This field holds the start address in the external memory from which the data for the endpoint must be fetched or to which it must be stored. This register is incremented on every AHB transaction. Reset: X if not programmed as the register is in SPRAM. In Scatter-Gather DMA (DescDMA) Mode for Non-Isochronous: [31:9]: DMA Address (DMAAddr) The start address must be 512-bytes aligned. This field holds the start address of the 512 bytes page. The first descriptor in the list must be located in this address. The first descriptor may be or may not be ready. The core starts processing the list from the CTD value. [8:3]: Current Transfer Desc(CTD) This value is in terms of number of descriptors. The values can be from 0 to 63. This field indicates the current descriptor processed in the list. This field is updated both by application and the core. For example, if the application enables the channel after programming CTD=5, then the core starts processing the sixth descriptor. The address is obtained by adding a value of (8bytes*5=) 40(decimal) to DMAAddr. [2:0]: Reserved In Scatter-Gather DMA (DescDMA) Mode for Isochronous: [31:N]: DMA Address (DMAAddr) The start address must be 512-bytes aligned. This field holds the address of the 2*(nTD+1) bytes of locations in which the isochronous descriptors are present where N is based on nTD as follows: - [31:N]: Base Address - [N-1:3]: Offset - [2:0]: 000 For HS ISOC, if nTD is, - 7, N=6 - 15, N=7 - 31, N=8 - 63, N=9 - 127, N=10 - 255, N=11 For FS ISOC, if nTD is, - 1, N=4 - 3, N=5 - 7, N=6 - 15, N=7 - 31, N=8 - 63, N=9 [N-1:3]: Current Transfer Desc(CTD) CTD for isochronous is based on the current frame/(micro)frame value. Need to be set to zero by application. Reset: (N+1:3)'h0 [2:0]: Reserved

DCFG

Address offset: 0x800

Device Configuration Register

This register configures the core in Device mode after power-on or after certain control commands or enumeration. Do not make changes to this register after initial programming.

Bit number313029282726252423222120191817161514131211109876543210
IDJJJJJJIIHGFEEDDDDDDDCBAA
Reset 0x0802000000001000000000100000000000000000
IDR/WFieldValue IDValueDescription
ARWDEVSPD

Device Speed (DevSpd)

Indicates the speed at which the application requires the core to enumerate, or the maximum speed the application can support. However, the actual bus speed is determined only after the connect sequence is completed, and is based on the speed of the USB host to which the core is connected.

USBHS200High speed USB 2.0 PHY clock is 30 MHz or 60 MHz
USBFS201Full speed USB 2.0 PHY clock is 30 MHz or 60 MHz
USBLS1162Low speed USB 1.1 transceiver clock is 6 MHz
USBFS11483Full speed USB 1.1 transceiver clock is 48 MHz
BRWNZSTSOUTHSHK

Non-Zero-Length Status OUT Handshake (NZStsOUTHShk)

The application can use this field to select the handshake the core sends on receiving a nonzero-length data packet during the OUT transaction of a control transfer's Status stage.

SENDOUT0Send the received OUT packet to the application (zero-length or non-zero length) and send a handshake based on NAK and STALL bits for the endpoint in the Devce Endpoint Control Register
SENDSTALL1Send a STALL handshake on a nonzero-length status OUT transaction and do not send the received OUT packet to the application
CRWENA32KHZSUSP

Enable 32 KHz Suspend mode (Ena32KHzSusp)

This bit can be set only if FS PHY interface is selected. Otherwise, this bit needs to be set to zero. If FS PHY interface is chosen and this bit is set, the PHY clock during Suspend must be switched from 48 MHz to 32 KHz.

DISABLED0USB 1.1 Full-Speed Serial Transceiver not selected
ENABLED1USB 1.1 Full-Speed Serial Transceiver Interface selected
DRWDEVADDR

Device Address (DevAddr)

The application must program this field after every SetAddress control command.

ERWPERFRINT

Periodic Frame Interval (PerFrInt)

Indicates the time within a (micro)Frame at which the application must be notified using the End Of Periodic Frame Interrupt. This can be used to determine If all the isochronous traffic for that (micro)Frame is complete.

EOPF80080% of the (micro)Frame interval
EOPF85185% of the (micro)Frame interval
EOPF90290% of the (micro)Frame interval
EOPF95395% of the (micro)Frame interval
FRWXCVRDLY

XCVRDLY

Enables or disables delay between xcvr_sel and txvalid during device chirp

DISABLE0No delay between xcvr_sel and txvalid during Device chirp
ENABLE1Enable delay between xcvr_sel and txvalid during Device chirp
GRWERRATICINTMSKErratic Error Interrupt Mask
NOMASK0Early suspend interrupt is generated on erratic error
MASK1Mask early suspend interrupt on erratic error
HRWIPGISOCSUPT

Worst-Case Inter-Packet Gap ISOC OUT Support (ipgisocSupt)

This bit indicates that the controller supports the worst-case scenario of Rx followed by Rx Inter-Packet Gap (IPG) (32 bit times) as per the UTMI Specification for any token following an ISOC OUT token. Without this support, when any token follows an ISOC OUT token with the worst-case IPG, the controller does not detect the followed token. The worst-case IPG of the controller without this support depends on the AHB and PHY clock frequency.

DISABLED0Worst-Case Inter-Packet Gap ISOC OUT Support is disabled
ENABLED1Worst-Case Inter-Packet Gap ISOC OUT Support is enabled
IRWPERSCHINTVL

Periodic Scheduling Interval (PerSchIntvl)

PerSchIntvl must be programmed for Scatter/Gather DMA mode. This field specifies the amount of time the Internal DMA engine must allocate for fetching periodic IN endpoint data. Based on the number of periodic endpoints, this value must be specified as 25,50 or 75% of (micro)Frame. - When any periodic endpoints are active, the internal DMA engine allocates the specified amount of time in fetching periodic IN endpoint data . - When no periodic endpoints are active, Then the internal DMA engine services non-periodic endpoints, ignoring this field. - After the specified time within a (micro)Frame, the DMA switches to fetching for non-periodic endpoints.

MF25025% of (micro)Frame
MF50150% of (micro)Frame
MF75275% of (micro)Frame
PERSCHINTVLRSVD33
JRWRESVALID

Resume Validation Period (ResValid)

This field is effective only when DCFG.Ena32KHzSusp is set. It controls the resume period when the core resumes from suspend. The core counts for ResValid number of clock cycles to detect a valid resume when this bit is set

DCTL

Address offset: 0x804

Device Control Register

This register is used to control the characteristics of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDONMLKJIHGFEEEDCBA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARWRMTWKUPSIG

Remote Wakeup Signaling (RmtWkUpSig)

When the application sets this bit, the core initiates remote signaling to wake up the USB host. The application must Set this bit to instruct the core to exit the Suspend state. As specified in the USB 2.0 specification, the application must clear this bit 1-15 ms after setting it. If LPM is enabled and the core is in the L1 (Sleep) state, when the application sets this bit, the core initiates L1 remote signaling to wake up the USB host. The application must set this bit to instruct the core to exit the Sleep state. As specified in the LPM specification, the hardware automatically clears this bit 50 microseconds (TL1DevDrvResume) after being set by the application. The application must not set this bit when GLPMCFG bRemoteWake from the previous LPM transaction is zero.

DISABLEDRMWKUP0Core does not send Remote Wakeup Signaling
ENABLERMWKUP1Core sends Remote Wakeup Signaling
BRWSFTDISCON

Soft Disconnect (SftDiscon)

The application uses this bit to signal the controller to do a soft disconnect. As long as this bit is set, the host does not see that the device is connected, and the device does not receive signals on the USB. The core stays in the disconnected state until the application clears this bit. UTMI+ to 2'b00, which generates a device connect event to the USB host. When the device is reconnected, the USB host restarts device enumeration. The following is the minimum duration under various conditions for which this bit must be set for the USB host to detect a device disconnect. To accommodate clock jitter, it is recommended that the application adds some extra delay to the specified minimum duration. For high speed, if the device state is, - Suspended, the minimum duration is 1ms + 2.5us - Idle, the minimum duration is 3ms + 2.5us - Not Idle or Suspended (performing transactions), the minimum duration 125 us For full speed/low speed, if the device state is, - Suspended, the minimum duration is 1ms + 2.5us - Idle, the minimum duration is 2.5us - Not Idle or Suspended (performing transactions), the minimum duration 125 us Note: - This bit can be also used for ULPI/FS Serial interfaces. - This bit is not impacted by a soft reset.

NODISCONNECT0The core drives the phy_opmode_o signal on the UTMI+ to 2'b00, which generates a device connect event to the USB host
DISCONNECT1The core drives the phy_opmode_o signal on the UTMI+ to 2'b01, which generates a device disconnect event to the USB host
CRGNPINNAKSTS

Global Non-periodic IN NAK Status (GNPINNakSts)

- 1'b0: A handshake is sent out based on the data availability in the transmit FIFO.

INACTIVE0A handshake is sent out based on the data availability in the transmit FIFO
ACTIVE1A NAK handshake is sent out on all non-periodic IN endpoints, irrespective of the data availability in the transmit FIFO.
DRGOUTNAKSTS

Global OUT NAK Status (GOUTNakSts)

- 1'b0: A handshake is sent based on the FIFO Status and the NAK and STALL bit settings.

INACTIVE0A handshake is sent based on the FIFO Status and the NAK and STALL bit settings.
ACTIVE1No data is written to the RxFIFO, irrespective of space availability. Sends a NAK handshake on all packets, except on SETUP transactions. All isochronous OUT packets are dropped.
ERWTSTCTL

Test Control (TstCtl)

- 3'b000: Test mode disabled

DISABLED0Test mode disabled
TESTJ1Test_J mode
TESTK2Test_K mode
TESTSN3Test_SE0_NAK mode
TESTPM4Test_Packet mode
TESTFE5Test_force_Enable
FWSGNPINNAK

Set Global Non-periodic IN NAK (SGNPInNak)

A write to this field sets the Global Non-periodic IN NAK.The application uses this bit to send a NAK handshake on all non-periodic IN endpoints. The core can also Set this bit when a timeout condition is detected on a non-periodic endpoint in shared FIFO operation. The application must Set this bit only after making sure that the Global IN NAK Effective bit in the Core Interrupt Register (GINTSTS.GINNakEff) is cleared

DISABLE0Disable Global Non-periodic IN NAK
ENABLE1Set Global Non-periodic IN NAK
GWCGNPINNAK

Clear Global Non-periodic IN NAK (CGNPInNak)

A write to this field clears the Global Non-periodic IN NAK.

DISABLE0Disable Global Non-periodic IN NAK
ENABLE1Clear Global Non-periodic IN NAK
HWSGOUTNAK

Set Global OUT NAK (SGOUTNak)

A write to this field sets the Global OUT NAK. The application uses this bit to send a NAK handshake on all OUT endpoints. The application must set the this bit only after making sure that the Global OUT NAK Effective bit in the Core Interrupt Register (GINTSTS.GOUTNakEff) is cleared.

DISABLED0Disable Global OUT NAK
ENABLED1Set Global OUT NAK
IWCGOUTNAK

Clear Global OUT NAK (CGOUTNak)

A write to this field clears the Global OUT NAK.

DISABLED0Disable Clear Global OUT NAK
ENABLED1Clear Global OUT NAK
JRWPWRONPRGDONE

Power-On Programming Done (PWROnPrgDone)

The application uses this bit to indicate that register programming is completed after a wake-up from Power Down mode.

NOTDONE0Power-On Programming not done
DONE1Power-On Programming Done
KRWIGNRFRMNUM

Ignore Frame Number Feature for Isochronous Endpoints (IgnrFrmNum)

This field is also used to control the Periodic Transfer Interrupt (PTI) feature. Note: Do not program IgnrFrmNum bit to 1'b1 when the core is operating in threshold mode. Completer Mode (GAHBCFG.DMAEn=0): This bit is not valid in Completer mode and must not be programmed to 1. Scatter/Gather DMA Mode (GAHBCFG.DMAEn=1,DCFG.DescDMA=1): Note: When Scatter/Gather DMA mode is enabled this feature is not applicable to High Speed, High bandwidth transfers. When this bit is enabled, there must be only one packet per descriptor. - 0: The core transmits the packets only in the frame number in which they are intended to be transmitted. - 1: The core ignores the frame number, sending packets immediately as the packets are ready. In Scatter/Gather DMA mode, if this bit is enabled, the packets are not flushed when a ISOC IN token is received for an elapsed frame. Non-Scatter/Gather DMA Mode, that is, Buffer DMA Mode (GAHBCFG.DMAEn=1,DCFG.DescDMA=0): When Scatter/Gather DMA mode is disabled, this field is used by the application to enable Periodic Transfer Interrupt (PTI) Mode. The application can program Periodic Endpoint transfers for multiple (micro)Frames. - 0: Periodic Transfer Interrupt feature is disabled, application needs to program transfers for periodic endpoints every (micro)Frame - 1: Periodic Transfer Interrupt feature is enabled, application can program transfers for multiple (micro)Frames for periodic endpoints. In the PTI mode, the application receives Transfer Complete Interrupt after transfers for multiple (micro)Frames are completed.

DISABLED0Scatter/Gather DMA Mode: The core transmits the packets only in the frame number in which they are intended to be transmitted.Non-Scatter/Gather DMA Mode: Periodic Transfer Interrupt feature is disabled.
ENABLED1Scatter/Gather DMA Mode: The core ignores the frame number, sending packets immediately as the packets are ready.Non-Scatter/Gather DMA Mode: Periodic Transfer Interrupt feature is enabled.
LRWNAKONBBLE

NAK on Babble Error (NakOnBble)

Set NAK automatically on babble (NakOnBble). The core sets NAK automatically for the endpoint on which babble is received.

DISABLED0Disable NAK on Babble Error
ENABLED1NAK on Babble Error
MRWDEEPSLEEPBESLREJECT

DeepSleepBESLReject

- 1: Deep Sleep BESL Reject feature is enabled - 0: Deep Sleep BESL Reject feature is disabled Core rejects LPM request with HIRD value greater than HIRD threshold programmed. NYET response is sent for LPM tokens with HIRD value greater than HIRD threshold. By default, the Deep Sleep BESL Reject feature is disabled.

DISABLED0Deep Sleep BESL Reject feature is disabled
ENABLED1Deep Sleep BESL Reject feature is enabled
NRWSERVINT

Service Interval based scheduling for Isochronous IN Endpoints

This field is used to enable service interval based scheduling feature for ISOC IN EPs. Note: This bit is applicable only in device mode and when Scatter/Gather DMA mode is used. This feature must not be enabled along with DCTL.IgnrFrmNum. Scatter/Gather DMA Mode (GAHBCFG.DMAEn=1,DCFG.DescDMA=1): When this bit is enabled, the frame number field in the ISOC IN descriptor structure is interpreted as the last frame of the service interval. In Scatter/Gather DMA mode, if this bit is enabled, the pending packets are flushed by the controller at the last frame of the service interval.

DISABLED0The controller behavior depends on DCTL.IgnrFrmNum field.
ENABLED1Scatter/Gather DMA Mode: The controller can transmit the packets in any frame of the service interval.
ORWUTMITERMSELCORRDIS

Disable the correction of TermSel on UTMI Interface.

When the application sets Soft disconnect (DCTL.SftDiscon=1'b1), the behavior of TermSel has been corrected to drive the valid combination of XcvrSel (FS_XCVR) and TermSel (FS_TERM). The application can set this register bit to 1'b1 to fall back to the original behavior of the Device controller driving XcvrSel (FS_XCVR) and TermSel (HS_TERM) when Soft disconnect is set (DCTL.SftDiscon=1'b1). Note: The application must program this register during Device Initialization before USB Reset and this value cannot be changed afterwards.

DISABLED0Valid Combination of XcvrSel and TermSel is driven by the Device Controller.
ENABLED1Invalid Combination of XcvrSel and TermSel is driven by the Device Controller.

DSTS

Address offset: 0x808

Device Status Register

This register indicates the status of the core with respect to USB-related events. It must be read on interrupts from Device All Interrupts (DAINT) register.

Bit number313029282726252423222120191817161514131211109876543210
IDEEDDDDDDDDDDDDDDCBBA
Reset 0x0000000200000000000000000000000000000010
IDR/WFieldValue IDValueDescription
ARSUSPSTS

Suspend Status (SuspSts)

In Device mode, this bit is set as long as a Suspend condition is detected on the USB. The core enters the Suspend state when there is no activity on the phy_line_state_i signal for an extended period of time. The core comes out of the suspend under the following conditions : - If there is any activity on the phy_line_state_i signal, or - If the application writes to the Remote Wakeup Signaling bit in the Device Control register (DCTL.RmtWkUpSig). When the core comes out of the suspend, this bit is set to 1'b0.

INACTIVE0No suspend state
ACTIVE1Suspend state
BRENUMSPD

Enumerated Speed (EnumSpd)

Indicates the speed at which the controller has come up after speed detection through a connect or reset sequence. Low speed is not supported for devices using a UTMI+ PHY.

HS30600High speed (PHY clock is running at 30 or 60 MHz)
FS30601Full speed (PHY clock is running at 30 or 60 MHz)
LS62Low speed (PHY clock is running at 6 MHz)
FS483Full speed (PHY clock is running at 48 MHz)
CRERRTICERR

Erratic Error (ErrticErr)

The core sets this bit to report any erratic errors (phy_rxvalid_i/phy_rxvldh_i or phy_rxactive_i is asserted for at least 2 ms, due to PHY error) seen on the UTMI+. Due to erratic errors, the core goes into Suspended state and an interrupt is generated to the application with Early Suspend bit of the Core Interrupt register (GINTSTS.ErlySusp). If the early suspend is asserted due to an erratic error, the application must perform a PHY reset followed by a soft reset to controller.

INACTIVE0No Erratic Error
ACTIVE1Erratic Error
DRSOFFN

Frame or Microframe Number of the Received SOF (SOFFN)

When the core is operating at high speed, this field contains a microframe number. When the core is operating at full or low speed, this field contains a Frame number. Note: This register may return a non-zero value if read immediately after power-on reset. In case the register bit reads non-zero immediately after power-on reset, it does not indicate that SOF has been received from the host. The read value of this interrupt is valid only after a valid connection between host and device is established.

ERDEVLNSTS

Device Line Status (DevLnSts)

Indicates the current logic level USB data lines - DevLnSts[1]: Logic level of D- - DevLnSts[0]: Logic level of D+

DIEPMSK

Address offset: 0x810

Device IN Endpoint Common Interrupt Mask Register

This register works with each of the Device IN Endpoint Interrupt (DIEPINTn) registers for all endpoints to generate an interrupt per IN endpoint. The IN endpoint interrupt for a specific status in the DIEPINTn register can be masked by writing to the corresponding bit in this register. Status bits are masked by default.

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPLMSKTransfer Completed Interrupt Mask (XferComplMsk)
MASK0Mask Transfer Completed Interrupt
NOMASK1No Transfer Completed Interrupt Mask
BRWEPDISBLDMSKEndpoint Disabled Interrupt Mask (EPDisbldMsk)
MASK0Mask Endpoint Disabled Interrupt
NOMASK1No Endpoint Disabled Interrupt Mask
CRWAHBERRMSKAHB Error Mask (AHBErrMsk)
MASK0Mask AHB Error Interrupt
NOMASK1No AHB Error Interrupt Mask
DRWTIMEOUTMSKTimeout Condition Mask (TimeOUTMsk) (Non-isochronous endpoints)
MASK0Mask Timeout Condition Interrupt
NOMASK1No Timeout Condition Interrupt Mask
ERWINTKNTXFEMPMSKIN Token Received When TxFIFO Empty Mask (INTknTXFEmpMsk)
MASK0Mask IN Token Received When TxFIFO Empty Interrupt
NOMASK1No IN Token Received When TxFIFO Empty Interrupt
FRWINTKNEPMISMSKIN Token received with EP Mismatch Mask (INTknEPMisMsk)
MASK0Mask IN Token received with EP Mismatch Interrupt
NOMASK1No Mask IN Token received with EP Mismatch Interrupt
GRWINEPNAKEFFMSKIN Endpoint NAK Effective Mask (INEPNakEffMsk)
MASK0Mask IN Endpoint NAK Effective Interrupt
NOMASK1No IN Endpoint NAK Effective Interrupt Mask
HRWTXFIFOUNDRNMSKFifo Underrun Mask (TxfifoUndrnMsk)
MASK0Mask Fifo Underrun Interrupt
NOMASK1No Fifo Underrun Interrupt Mask
IRWNAKMSKNAK interrupt Mask (NAKMsk)
MASK0Mask NAK Interrupt
NOMASK1No Mask NAK Interrupt

DOEPMSK

Address offset: 0x814

Device OUT Endpoint Common Interrupt Mask Register

This register works with each of the Device OUT Endpoint Interrupt (DOEPINTn) registers for all endpoints to generate an interrupt per OUT endpoint. The OUT endpoint interrupt for a specific status in the DOEPINTn register can be masked by writing into the corresponding bit in this register. Status bits are masked by default.

Bit number313029282726252423222120191817161514131211109876543210
IDKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPLMSKTransfer Completed Interrupt Mask (XferComplMsk)
MASK0Mask Transfer Completed Interrupt
NOMASK1No Transfer Completed Interrupt Mask
BRWEPDISBLDMSKEndpoint Disabled Interrupt Mask (EPDisbldMsk)
MASK0Mask Endpoint Disabled Interrupt
NOMASK1No Endpoint Disabled Interrupt Mask
CRWAHBERRMSKAHB Error (AHBErrMsk)
MASK0Mask AHB Error Interrupt
NOMASK1No AHB Error Interrupt Mask
DRWSETUPMSK

SETUP Phase Done Mask (SetUPMsk)

Applies to control endpoints only.

MASK0Mask SETUP Phase Done Interrupt
NOMASK1No SETUP Phase Done Interrupt Mask
ERWOUTTKNEPDISMSK

OUT Token Received when Endpoint Disabled Mask (OUTTknEPdisMsk)

Applies to control OUT endpoints only.

MASK0Mask OUT Token Received when Endpoint Disabled Interrupt
NOMASK1No OUT Token Received when Endpoint Disabled Interrupt Mask
FRWSTSPHSERCVDMSK

Status Phase Received Mask (StsPhseRcvdMsk)

Applies to control OUT endpoints only.

MASK0Status Phase Received Mask
NOMASK1No Status Phase Received Mask
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received Mask (Back2BackSETup)

Applies to control OUT endpoints only.

MASK0Mask Back-to-Back SETUP Packets Received Interrupt
NOMASK1No Back-to-Back SETUP Packets Received Interrupt Mask
HRWOUTPKTERRMSKOUT Packet Error Mask (OutPktErrMsk)
MASK0Mask OUT Packet Error Interrupt
NOMASK1No OUT Packet Error Interrupt Mask
IRWBBLEERRMSKBabble Error interrupt Mask (BbleErrMsk)
MASK0Mask Babble Error Interrupt
NOMASK1No Babble Error Interrupt Mask
JRWNAKMSKNAK interrupt Mask (NAKMsk)
MASK0Mask NAK Interrupt
NOMASK1No NAK Interrupt Mask
KRWNYETMSKNYET interrupt Mask (NYETMsk)
MASK0Mask NYET Interrupt
NOMASK1No NYET Interrupt Mask

DAINT

Address offset: 0x818

Device All Endpoints Interrupt Register

When a significant event occurs on an endpoint, a Device All Endpoints Interrupt register interrupts the application using the Device OUT Endpoints Interrupt bit or Device IN Endpoints Interrupt bit of the Core Interrupt register (GINTSTS.OEPInt or GINTSTS.IEPInt, respectively). This is shown in Figure 5-2. There is one interrupt bit per endpoint, up to a maximum of 16 bits for OUT endpoints and 16 bits for IN endpoints. For a bidirectional endpoint, the corresponding IN and OUT interrupt bits are used. Bits in this register are set and cleared when the application sets and clears bits in the corresponding Device Endpoint-n Interrupt register (DIEPINTn/DOEPINTn).

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARINEPINT0IN Endpoint 0 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for IN EP0
BRINEPINT1IN Endpoint 1 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
CRINEPINT2IN Endpoint 2 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
DRINEPINT3IN Endpoint 3 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
ERINEPINT4IN Endpoint 4 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
FRINEPINT5IN Endpoint 5 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
GRINEPINT6IN Endpoint 6 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
HRINEPINT7IN Endpoint 7 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
IRINEPINT8IN Endpoint 8 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
JRINEPINT9IN Endpoint 9 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
KRINEPINT10IN Endpoint 10 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
LRINEPINT11IN Endpoint 11 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
MRINEPINT12IN Endpoint 12 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
NRINEPINT13IN Endpoint 13 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
ORINEPINT14IN Endpoint 14 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
PRINEPINT15IN Endpoint 15 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the IN EP
QROUTEPINT0OUT Endpoint 0 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for OUT EP0
RROUTEPINT1OUT Endpoint 1 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
SROUTEPINT2OUT Endpoint 2 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
TROUTEPINT3OUT Endpoint 3 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
UROUTEPINT4OUT Endpoint 4 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
VROUTEPINT5OUT Endpoint 5 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
WROUTEPINT6OUT Endpoint 6 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
XROUTEPINT7OUT Endpoint 7 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
YROUTEPINT8OUT Endpoint 8 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
ZROUTEPINT9OUT Endpoint 9 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
aROUTEPINT10OUT Endpoint 10 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
bROUTEPINT11OUT Endpoint 11 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
cROUTEPINT12OUT Endpoint 12 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
dROUTEPINT13OUT Endpoint 13 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
eROUTEPINT14OUT Endpoint 14 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP
fROUTEPINT15OUT Endpoint 15 Interrupt Bit
INACTIVE0No Interrupt
ACTIVE1Interrupt is active for the OUT EP

DAINTMSK

Address offset: 0x81C

Device All Endpoints Interrupt Mask Register

The Device Endpoint Interrupt Mask register works with the Device Endpoint Interrupt register to interrupt the application when an event occurs on a device endpoint. However, the Device All Endpoints Interrupt (DAINT) register bit corresponding to that interrupt is still set.

Bit number313029282726252423222120191817161514131211109876543210
IDfedcbaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINEPMSK0IN Endpoint 0 Interrupt mask Bit
MASK0Mask IN Endpoint 0 Interrupt
NOMASK1No Interrupt mask
BRWINEPMSK1IN Endpoint 1 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
CRWINEPMSK2IN Endpoint 2 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
DRWINEPMSK3IN Endpoint 3 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
ERWINEPMSK4IN Endpoint 4 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
FRWINEPMSK5IN Endpoint 5 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
GRWINEPMSK6IN Endpoint 6 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
HRWINEPMSK7IN Endpoint 7 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
IRWINEPMSK8IN Endpoint 8 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
JRWINEPMSK9IN Endpoint 9 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
KRWINEPMSK10IN Endpoint 10 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
LRWINEPMSK11IN Endpoint 11 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
MRWINEPMSK12IN Endpoint 12 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
NRWINEPMSK13IN Endpoint 13 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
ORWINEPMSK14IN Endpoint 14 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
PRWINEPMSK15IN Endpoint 15 Interrupt mask Bit
MASK0Mask IN Endpoint Interrupt
NOMASK1No Interrupt mask
QRWOUTEPMSK0OUT Endpoint 0 Interrupt mask Bit
MASK0Mask OUT Endpoint 0 Interrupt
NOMASK1No Interrupt mask
RRWOUTEPMSK1OUT Endpoint 1 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
SRWOUTEPMSK2OUT Endpoint 2 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
TRWOUTEPMSK3OUT Endpoint 3 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
URWOUTEPMSK4OUT Endpoint 4 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
VRWOUTEPMSK5OUT Endpoint 5 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
WRWOUTEPMSK6OUT Endpoint 6 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
XRWOUTEPMSK7OUT Endpoint 7 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
YRWOUTEPMSK8OUT Endpoint 8 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
ZRWOUTEPMSK9OUT Endpoint 9 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
aRWOUTEPMSK10OUT Endpoint 10 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
bRWOUTEPMSK11OUT Endpoint 11 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
cRWOUTEPMSK12OUT Endpoint 12 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
dRWOUTEPMSK13OUT Endpoint 13 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
eRWOUTEPMSK14OUT Endpoint 14 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask
fRWOUTEPMSK15OUT Endpoint 15 Interrupt mask Bit
MASK0Mask OUT Endpoint Interrupt
NOMASK1No Interrupt mask

DVBUSDIS

Address offset: 0x828

Device VBUS Discharge Time Register

This register specifies the VBUS discharge time after VBUS pulsing during SRP.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x000017D700000000000000000001011111010111
IDR/WFieldValue IDValueDescription
ARWDVBUSDIS

Device VBUS Discharge Time (DVBUSDis)

Specifies the VBUS discharge time after VBUS pulsing during SRP. This value equals (VBUS discharge time in PHY clocks) / 1, 024. The value you use depends whether the PHY is operating at 30MHz (16-bit data width) or 60 MHz (8-bit data width). Depending on your VBUS load, this value can need adjustment.

DVBUSPULSE

Address offset: 0x82C

Device VBUS Pulsing Time Register

This register contains the VBUS pulsing time during SRP.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAA
Reset 0x000005B800000000000000000000010110111000
IDR/WFieldValue IDValueDescription
ARWDVBUSPULSE

Device VBUS Pulsing Time (DVBUSPulse)

Specifies the VBUS pulsing time during SRP. This value equals (VBUS pulsing time in PHY clocks) / 1, 024 The value you use depends whether the PHY is operating at 30MHz (16-bit data width) or 60 MHz (8-bit data width).

DTHRCTL

Address offset: 0x830

Device Threshold Control Register

This register contains the Receive and Transmit Threshold characteristics of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDGFFFFFFFFFEDDCCCCCCCCCBA
Reset 0x0810002000001000000100000000000000100000
IDR/WFieldValue IDValueDescription
ARWNONISOTHREN

Non-ISO IN Endpoints Threshold Enable. (NonISOThrEn)

When this bit is Set, the core enables thresholding for Non Isochronous IN endpoints.

DISABLED0No thresholding
ENABLED1Enable thresholding for non-isochronous IN endpoints
BRWISOTHRENISO IN Endpoints Threshold Enable. (ISOThrEn) When this bit is Set, the core enables thresholding for isochronous IN endpoints.
DISABLED0No thresholding
ENABLED1Enables thresholding for isochronous IN endpoints
CRWTXTHRLEN

Transmit Threshold Length (TxThrLen)

This field specifies Transmit thresholding size in DWORDS. This also forms the MAC threshold and specifies the amount of data in bytes to be in the corresponding endpoint transmit FIFO, before the core can start transmit on the USB. The threshold length has to be at least eight DWORDS when the value of AHBThrRatio is 2'h00. In case the AHBThrRatio is non zero the application needs to ensure that the AHB Threshold value does not go below the recommended eight DWORD. This field controls both isochronous and non-isochronous IN endpoint thresholds. The recommended value for ThrLen is to be the same as the programmed AHB Burst Length (GAHBCFG.HBstLen). Note: - When OTG_ARCHITECTURE=0, the reset value of this register field is 0. - When OTG_ARCHITECTURE=2, the reset value of this register field is 8.

DRWAHBTHRRATIO

AHB Threshold Ratio (AHBThrRatio)

These bits define the ratio between the AHB threshold and the MAC threshold for the transmit path only. The AHB threshold always remains less than or equal to the USB threshold, because this does not increase overhead. Both the AHB and the MAC threshold must be DWORD-aligned. The application needs to program TxThrLen and the AHBThrRatio to make the AHB Threshold value DWORD aligned. If the AHB threshold value is not DWORD aligned, the core might not behave correctly. When programming the TxThrLen and AHBThrRatio, the application must ensure that the minimum AHB threshold value does not go below 8 DWORDS to meet the USB turnaround time requirements.

THRESZERO0AHB threshold = MAC threshold
THRESONE1AHB threshold = MAC threshold /2
THRESTWO2AHB threshold = MAC threshold /4
THRESTHREE3AHB threshold = MAC threshold /8
ERWRXTHREN

Receive Threshold Enable (RxThrEn)

When this bit is set, the core enables thresholding in the receive direction. Note: We recommends that you do not enable RxThrEn, because it may cause issues in the RxFIFO especially during error conditions such as RxError and Babble.

DISABLED0Disable thresholding
ENABLED1Enable thresholding in the receive direction
FRWRXTHRLEN

Receive Threshold Length (RxThrLen)

This field specifies Receive thresholding size in DWORDS. This field also specifies the amount of data received on the USB before the core can start transmitting on the AHB. The threshold length has to be at least eight DWORDS. The recommended value for ThrLen is to be the same as the programmed AHB Burst Length (GAHBCFG.HBstLen).

GRWARBPRKEN

Arbiter Parking Enable (ArbPrkEn)

This bit controls internal DMA arbiter parking for IN endpoints. If thresholding is enabled and this bit is set to one, then the arbiter parks on the IN endpoint for which there is a token received on the USB. This is done to avoid getting into underrun conditions. By default, arbiter parking is enabled.

DISABLED0Disable DMA arbiter parking
ENABLED1Enable DMA arbiter parking for IN endpoints

DIEPEMPMSK

Address offset: 0x834

Device IN Endpoint FIFO Empty Interrupt Mask Register

This register is valid only in Dedicated FIFO operation (OTG_EN_DED_TX_FIFO = 1). This register is used to control the IN endpoint FIFO empty interrupt generation (DIEPINTn.TxfEmp).

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWINEPTXFEMPMSK

IN EP Tx FIFO Empty Interrupt Mask Bits (InEpTxfEmpMsk)

These bits acts as mask bits for DIEPINTn.TxFEmp interrupt, one bit per IN Endpoint: Bit 0 for IN EP 0, bit 15 for IN EP 15

EP0MASK1Mask IN EP0 Tx FIFO Empty Interrupt
EP1MASK2Mask IN EP1 Tx FIFO Empty Interrupt
EP2MASK4Mask IN EP2 Tx FIFO Empty Interrupt
EP3MASK8Mask IN EP3 Tx FIFO Empty Interrupt
EP4MASK16Mask IN EP4 Tx FIFO Empty Interrupt
EP5MASK32Mask IN EP5 Tx FIFO Empty Interrupt
EP6MASK64Mask IN EP6 Tx FIFO Empty Interrupt
EP7MASK128Mask IN EP7 Tx FIFO Empty Interrupt
EP8MASK256Mask IN EP8 Tx FIFO Empty Interrupt
EP9MASK512Mask IN EP9 Tx FIFO Empty Interrupt
EP10MASK1024Mask IN EP10 Tx FIFO Empty Interrupt
EP11MASK2048Mask IN EP11 Tx FIFO Empty Interrupt
EP12MASK4096Mask IN EP12 Tx FIFO Empty Interrupt
EP13MASK8192Mask IN EP13 Tx FIFO Empty Interrupt
EP14MASK16384Mask IN EP14 Tx FIFO Empty Interrupt
EP15MASK32768Mask IN EP15 Tx FIFO Empty Interrupt

DIEPCTL0

Address offset: 0x900

Device Control IN Endpoint 0 Control Register

This register is used to control the characteristics of the IN Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDJIHGFFFFEDDCBAA
Reset 0x0000800000000000000000001000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

Applies to IN and OUT endpoints. The application must program this field with the maximum packet size for the current logical endpoint.

BYTES64064 bytes
BYTES32132 bytes
BYTES16216 bytes
BYTES838 bytes
BRUSBACTEP

USB Active Endpoint (USBActEP)

This bit is always SET to 1, indicating that control endpoint 0 is always active in all configurations and interfaces.

ACTIVE01Control endpoint is always active
CRNAKSTS

NAK Status (NAKSts)

Indicates the following: When this bit is set, either by the application or core, the core stops transmitting data, even If there is data available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0The core is transmitting non-NAK handshakes based on the FIFO status
ACTIVE1The core is transmitting NAK handshakes on this endpoint
DREPTYPE

Endpoint Type (EPType)

Hardcoded to 00 for control.

ACTIVE0Endpoint Control 0
ERWSTALL

STALL Handshake (Stall)

The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Nonperiodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority.

INACTIVE0No Stall
ACTIVE1Stall Handshake
FRWTXFNUM

TxFIFO Number (TxFNum)

- For Shared FIFO operation, this value is always set to 0, indicating that control IN endpoint 0 data is always written in the Non-Periodic Transmit FIFO. - For Dedicated FIFO operation, this value is set to the FIFO number that is assigned to IN Endpoint.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
NOCLEAR0No action
CLEAR1Clear NAK
HWSNAKSet NAK (SNAK) A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.
NOSET0No action
SET1Set NAK
IRWEPDIS

Endpoint Disable (EPDis)

The application sets this bit to stop transmitting data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled Interrupt. The application must Set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No action
ACTIVE1Disabled Endpoint
JRWEPENA

Endpoint Enable (EPEna)

When Scatter/Gather DMA mode is enabled for IN endpoints, this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. When Scatter/Gather DMA mode is disabled (such as in buffer pointer based DMA mode) this bit indicates that data is ready to be transmitted on the endpoint. The core clears this bit before setting the following interrupts on this endpoint: - Endpoint Disabled - Transfer Completed

INACTIVE0No action
ACTIVE1Enable Endpoint

DIEPINT0

Address offset: 0x908

Device IN Endpoint 0 Interrupt Register

This register indicates the status of an endpoint with respect to USB- and AHB-related events. It is shown in the "Interrupt Hierarchy" figure in the databook. The application must read this register when the OUT Endpoints Interrupt bit or IN Endpoints Interrupt bit of the Core Interrupt register (GINTSTS.OEPInt or GINTSTS.IEPInt, respectively) is set. Before the application can read this register, it must first read the Device All Endpoints Interrupt (DAINT) register to get the exact endpoint number for the Device Endpoint-n Interrupt register. The application must clear the appropriate bit in this register to clear the corresponding bits in the DAINT and GINTSTS registers

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Completed Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received when TxFIFO Empty interrupt
ACTIVE1IN Token Received when TxFIFO Empty Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No IN Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN Endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints only. The core generates this interrupt when it detects a transmit FIFO underrun condition in threshold mode for this endpoint.

INACTIVE0No Fifo Underrun interrupt
ACTIVE1Fifo Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. <brIn case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ0

Address offset: 0x910

Device IN Endpoint 0 Transfer Size Register

The application must modify this register before enabling endpoint 0. Once endpoint 0 is enabled using Endpoint Enable bit of the Device Control Endpoint 0 Control registers (DIEPCTL0.EPEna/DOEPCTL0.EPEna), the core modifies this register. The application can only read this register once the core has cleared the Endpoint Enable bit. Nonzero endpoints use the registers for endpoints 115. When Scatter/Gather DMA mode is enabled, this register must not be programmed by the application. If the application reads this register when Scatter/Gather DMA mode is enabled, the core returns all zeros.

Bit number313029282726252423222120191817161514131211109876543210
IDBBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

This field contains the transfer size in bytes for the current endpoint. The transfer size (XferSize) = Sum of buffer sizes across all descriptors in the list for the endpoint. In Buffer DMA, the core only interrupts the application after it has exhausted the transfer size amount of data. The transfer size can be set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. - IN Endpoints: The core decrements this field every time a packet from the external memory is written to the TxFIFO. - OUT Endpoints: The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. - IN Endpoints : This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO. - OUT Endpoints: This field is decremented every time a packet (maximum size or short packet) is written to the RxFIFO.

DIEPDMA0

Address offset: 0x914

Device IN Endpoint 0 DMA Address Register

This register contains the DMA Address for the IN Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

DMAAddr

This field holds the start address of the external memory for storing or fetching endpoint data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS0

Address offset: 0x918

Device IN Endpoint Transmit FIFO Status Register 0

This register contains information about the IN Endpoint Transmit FIFO of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field is, - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion

DIEPCTL1

Address offset: 0x920

Device Control IN Endpoint Control Register 1

This register is used to control the characteristics of Endpoint 1. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT1

Address offset: 0x928

Device IN Endpoint Interrupt Register 1

This register contains the interrupts for the IN Endpoint 1 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ1

Address offset: 0x930

Device IN Endpoint Transfer Size Register 1

This register reflects the Transfer Size of the IN Endpoint 1 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA1

Address offset: 0x934

Device IN Endpoint DMA Address Register 1

This register contains the DMA Address for the IN Endpoint 1 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS1

Address offset: 0x938

Device IN Endpoint Transmit FIFO Status Register 1

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 1 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL2

Address offset: 0x940

Device Control IN Endpoint Control Register 2

This register is used to control the characteristics of Endpoint 2. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT2

Address offset: 0x948

Device IN Endpoint Interrupt Register 2

This register contains the interrupts for the IN Endpoint 2 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ2

Address offset: 0x950

Device IN Endpoint Transfer Size Register 2

This register reflects the Transfer Size of the IN Endpoint 2 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA2

Address offset: 0x954

Device IN Endpoint DMA Address Register 2

This register contains the DMA Address for the IN Endpoint 2 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS2

Address offset: 0x958

Device IN Endpoint Transmit FIFO Status Register 2

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 2 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL3

Address offset: 0x960

Device Control IN Endpoint Control Register 3

This register is used to control the characteristics of Endpoint 3. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT3

Address offset: 0x968

Device IN Endpoint Interrupt Register 3

This register contains the interrupts for the IN Endpoint 3 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ3

Address offset: 0x970

Device IN Endpoint Transfer Size Register 3

This register reflects the Transfer Size of the IN Endpoint 3 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA3

Address offset: 0x974

Device IN Endpoint DMA Address Register 3

This register contains the DMA Address for the IN Endpoint 3 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS3

Address offset: 0x978

Device IN Endpoint Transmit FIFO Status Register 3

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 3 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL4

Address offset: 0x980

Device Control IN Endpoint Control Register 4

This register is used to control the characteristics of Endpoint 4. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT4

Address offset: 0x988

Device IN Endpoint Interrupt Register 4

This register contains the interrupts for the IN Endpoint 4 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ4

Address offset: 0x990

Device IN Endpoint Transfer Size Register 4

This register reflects the Transfer Size of the IN Endpoint 4 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA4

Address offset: 0x994

Device IN Endpoint DMA Address Register 4

This register contains the DMA Address for the IN Endpoint 4 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS4

Address offset: 0x998

Device IN Endpoint Transmit FIFO Status Register 4

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 4 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL5

Address offset: 0x9A0

Device Control IN Endpoint Control Register 5

This register is used to control the characteristics of Endpoint 5. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT5

Address offset: 0x9A8

Device IN Endpoint Interrupt Register 5

This register contains the interrupts for the IN Endpoint 5 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ5

Address offset: 0x9B0

Device IN Endpoint Transfer Size Register 5

This register reflects the Transfer Size of the IN Endpoint 5 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA5

Address offset: 0x9B4

Device IN Endpoint DMA Address Register 5

This register contains the DMA Address for the IN Endpoint 5 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS5

Address offset: 0x9B8

Device IN Endpoint Transmit FIFO Status Register 5

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 5 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL6

Address offset: 0x9C0

Device Control IN Endpoint Control Register 6

This register is used to control the characteristics of Endpoint 6. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT6

Address offset: 0x9C8

Device IN Endpoint Interrupt Register 6

This register contains the interrupts for the IN Endpoint 6 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ6

Address offset: 0x9D0

Device IN Endpoint Transfer Size Register 6

This register reflects the Transfer Size of the IN Endpoint 6 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA6

Address offset: 0x9D4

Device IN Endpoint DMA Address Register 6

This register contains the DMA Address for the IN Endpoint 6 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS6

Address offset: 0x9D8

Device IN Endpoint Transmit FIFO Status Register 6

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 6 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL7

Address offset: 0x9E0

Device Control IN Endpoint Control Register 7

This register is used to control the characteristics of Endpoint 7. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT7

Address offset: 0x9E8

Device IN Endpoint Interrupt Register 7

This register contains the interrupts for the IN Endpoint 7 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ7

Address offset: 0x9F0

Device IN Endpoint Transfer Size Register 7

This register reflects the Transfer Size of the IN Endpoint 7 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA7

Address offset: 0x9F4

Device IN Endpoint DMA Address Register 7

This register contains the DMA Address for the IN Endpoint 7 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS7

Address offset: 0x9F8

Device IN Endpoint Transmit FIFO Status Register 7

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 7 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL8

Address offset: 0xA00

Device Control IN Endpoint Control Register 8

This register is used to control the characteristics of Endpoint 8. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT8

Address offset: 0xA08

Device IN Endpoint Interrupt Register 8

This register contains the interrupts for the IN Endpoint 8 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ8

Address offset: 0xA10

Device IN Endpoint Transfer Size Register 8

This register reflects the Transfer Size of the IN Endpoint 8 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA8

Address offset: 0xA14

Device IN Endpoint DMA Address Register 8

This register contains the DMA Address for the IN Endpoint 8 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS8

Address offset: 0xA18

Device IN Endpoint Transmit FIFO Status Register 8

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 8 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL9

Address offset: 0xA20

Device Control IN Endpoint Control Register 9

This register is used to control the characteristics of Endpoint 9. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT9

Address offset: 0xA28

Device IN Endpoint Interrupt Register 9

This register contains the interrupts for the IN Endpoint 9 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ9

Address offset: 0xA30

Device IN Endpoint Transfer Size Register 9

This register reflects the Transfer Size of the IN Endpoint 9 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA9

Address offset: 0xA34

Device IN Endpoint DMA Address Register 9

This register contains the DMA Address for the IN Endpoint 9 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS9

Address offset: 0xA38

Device IN Endpoint Transmit FIFO Status Register 9

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 9 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL10

Address offset: 0xA40

Device Control IN Endpoint Control Register 10

This register is used to control the characteristics of Endpoint 10. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT10

Address offset: 0xA48

Device IN Endpoint Interrupt Register 10

This register contains the interrupts for the IN Endpoint 10 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ10

Address offset: 0xA50

Device IN Endpoint Transfer Size Register 10

This register reflects the Transfer Size of the IN Endpoint 10 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA10

Address offset: 0xA54

Device IN Endpoint DMA Address Register 10

This register contains the DMA Address for the IN Endpoint 10 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS10

Address offset: 0xA58

Device IN Endpoint Transmit FIFO Status Register 10

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 10 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL11

Address offset: 0xA60

Device Control IN Endpoint Control Register 11

This register is used to control the characteristics of Endpoint 11. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT11

Address offset: 0xA68

Device IN Endpoint Interrupt Register 11

This register contains the interrupts for the IN Endpoint 11 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ11

Address offset: 0xA70

Device IN Endpoint Transfer Size Register 11

This register reflects the Transfer Size of the IN Endpoint 11 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA11

Address offset: 0xA74

Device IN Endpoint DMA Address Register 11

This register contains the DMA Address for the IN Endpoint 11 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS11

Address offset: 0xA78

Device IN Endpoint Transmit FIFO Status Register 11

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 11 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL12

Address offset: 0xA80

Device Control IN Endpoint Control Register 12

This register is used to control the characteristics of Endpoint 12. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT12

Address offset: 0xA88

Device IN Endpoint Interrupt Register 12

This register contains the interrupts for the IN Endpoint 12 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ12

Address offset: 0xA90

Device IN Endpoint Transfer Size Register 12

This register reflects the Transfer Size of the IN Endpoint 12 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA12

Address offset: 0xA94

Device IN Endpoint DMA Address Register 12

This register contains the DMA Address for the IN Endpoint 12 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS12

Address offset: 0xA98

Device IN Endpoint Transmit FIFO Status Register 12

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 12 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL13

Address offset: 0xAA0

Device Control IN Endpoint Control Register 13

This register is used to control the characteristics of Endpoint 13. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT13

Address offset: 0xAA8

Device IN Endpoint Interrupt Register 13

This register contains the interrupts for the IN Endpoint 13 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ13

Address offset: 0xAB0

Device IN Endpoint Transfer Size Register 13

This register reflects the Transfer Size of the IN Endpoint 13 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA13

Address offset: 0xAB4

Device IN Endpoint DMA Address Register 13

This register contains the DMA Address for the IN Endpoint 13 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS13

Address offset: 0xAB8

Device IN Endpoint Transmit FIFO Status Register 13

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 13 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL14

Address offset: 0xAC0

Device Control IN Endpoint Control Register 14

This register is used to control the characteristics of Endpoint 14. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT14

Address offset: 0xAC8

Device IN Endpoint Interrupt Register 14

This register contains the interrupts for the IN Endpoint 14 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ14

Address offset: 0xAD0

Device IN Endpoint Transfer Size Register 14

This register reflects the Transfer Size of the IN Endpoint 14 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA14

Address offset: 0xAD4

Device IN Endpoint DMA Address Register 14

This register contains the DMA Address for the IN Endpoint 14 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS14

Address offset: 0xAD8

Device IN Endpoint Transmit FIFO Status Register 14

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 14 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DIEPCTL15

Address offset: 0xAE0

Device Control IN Endpoint Control Register 15

This register is used to control the characteristics of Endpoint 15. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDMLKJIHGGGGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPIDEndpoint Data PID (DPID) Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: Applies to isochronous IN and OUT endpoints only. Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.
DATA0EVENFRM0DATA0 or Even Frame
DATA1ODDFRM1DATA1 or Odd Frame
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUP3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GRWTXFNUM

TxFIFO Number (TxFNum)

Shared FIFO Operation non-periodic endpoints must set this bit to zero. Periodic endpoints must map this to the corresponding Periodic TxFIFO number. - Others: Specified Periodic TxFIFO.number Note: An interrupt IN endpoint can be configured as a non-periodic endpoint for applications such as mass storage. The core treats an IN endpoint as a non-periodic endpoint if the TxFNum field is set to 0. Otherwise, a separate periodic FIFO must be allocated for an interrupt IN endpoint, and the number of this FIFO must be programmed into the TxFNum field. Configuring an interrupt IN endpoint as a non-periodic endpoint saves the extra periodic FIFO area. Dedicated FIFO Operation: These bits specify the FIFO number associated with this endpoint. Each active IN endpoint must be programmed to a separate FIFO number. This field is valid only for IN endpoints.

TXFIFO00Tx FIFO 0
TXFIFO11Tx FIFO 1
TXFIFO22Tx FIFO 2
TXFIFO33Tx FIFO 3
TXFIFO44Tx FIFO 4
TXFIFO55Tx FIFO 5
TXFIFO66Tx FIFO 6
TXFIFO77Tx FIFO 7
TXFIFO88Tx FIFO 8
TXFIFO99Tx FIFO 9
TXFIFO1010Tx FIFO 10
TXFIFO1111Tx FIFO 11
TXFIFO1212Tx FIFO 12
TXFIFO1313Tx FIFO 13
TXFIFO1414Tx FIFO 14
TXFIFO1515Tx FIFO 15
HWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

INACTIVE0No Clear NAK
ACTIVE1Clear NAK
IWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also Set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
JWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even (micro)Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to Even (micro)Frame
KWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd (micro)Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to Odd (micro)Frame
LRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
MRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled, -- For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. -- For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: -- For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. -- For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: For control endpoints in DMA mode, this bit must be set to be able to transfer SETUP data packets in memory.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DIEPINT15

Address offset: 0xAE8

Device IN Endpoint Interrupt Register 15

This register contains the interrupts for the IN Endpoint 15 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000008000000000000000000000000010000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWTIMEOUT

Timeout Condition (TimeOUT)

- In shared TX FIFO mode, applies to non-isochronous IN endpoints only. - In dedicated FIFO mode, applies only to Control IN endpoints. - In Scatter/Gather DMA mode, the TimeOUT interrupt is not asserted. Indicates that the core has detected a timeout condition on the USB for the last IN token on this endpoint.

INACTIVE0No Timeout interrupt
ACTIVE1Timeout interrupt
ERWINTKNTXFEMP

IN Token Received When TxFIFO is Empty (INTknTXFEmp)

Applies to non-periodic IN endpoints only. Indicates that an IN token was received when the associated TxFIFO (periodic/non-periodic) was empty. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received interrupt
ACTIVE1IN Token Received Interrupt
FRWINTKNEPMIS

IN Token Received with EP Mismatch (INTknEPMis)

Applies to non-periodic IN endpoints only. Indicates that the data in the top of the non-periodic TxFIFO belongs to an endpoint other than the one for which the IN token was received. This interrupt is asserted on the endpoint for which the IN token was received.

INACTIVE0No IN Token Received with EP Mismatch interrupt
ACTIVE1IN Token Received with EP Mismatch interrupt
GRWINEPNAKEFF

IN Endpoint NAK Effective (INEPNakEff)

Applies to periodic IN endpoints only. This bit can be cleared when the application clears the IN endpoint NAK by writing to DIEPCTLn.CNAK. This interrupt indicates that the core has sampled the NAK bit Set (either by the application or by the core). The interrupt indicates that the IN endpoint NAK bit Set by the application has taken effect in the core. This interrupt does not guarantee that a NAK handshake is sent on the USB. A STALL bit takes priority over a NAK bit.

INACTIVE0No Endpoint NAK Effective interrupt
ACTIVE1IN Endpoint NAK Effective interrupt
HRTXFEMP

Transmit FIFO Empty (TxFEmp)

This bit is valid only for IN endpoints This interrupt is asserted when the TxFIFO for this endpoint is either half or completely empty. The half or completely empty status is determined by the TxFIFO Empty Level bit in the Core AHB Configuration register (GAHBCFG.NPTxFEmpLvl)).

INACTIVE0No Transmit FIFO Empty interrupt
ACTIVE1Transmit FIFO Empty interrupt
IRWTXFIFOUNDRN

Fifo Underrun (TxfifoUndrn)

Applies to IN endpoints Only This bit is valid only If thresholding is enabled. The core generates this interrupt when it detects a transmit FIFO underrun condition for this endpoint.

INACTIVE0No Tx FIFO Underrun interrupt
ACTIVE1TxFIFO Underrun interrupt
JRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
KRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
LRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No interrupt
ACTIVE1BbleErr interrupt
MRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
NRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt

DIEPTSIZ15

Address offset: 0xAF0

Device IN Endpoint Transfer Size Register 15

This register reflects the Transfer Size of the IN Endpoint 15 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet from the external memory is written to the TxFIFO.

BRWPKTCNT

Packet Count (PktCnt)

Indicates the total number of USB packets that constitute the Transfer Size amount of data for endpoint 0. This field is decremented every time a packet (maximum size or short packet) is read from the TxFIFO.

CRWMC

MC

Applies to IN endpoints only. For periodic IN endpoints, this field indicates the number of packets that must be transmitted per microframe on the USB. The core uses this field to calculate the data PID for isochronous IN endpoints. For non-periodic IN endpoints, this field is valid only in Internal DMA mode. It specifies the number of packets the core must fetchfor an IN endpoint before it switches to the endpoint pointed to by the Next Endpoint field of the Device Endpoint-n Control register (DIEPCTLn.NextEp)

PACKETONE11 packet
PACKETTWO22 packets
PACKETTHREE33 packets

DIEPDMA15

Address offset: 0xAF4

Device IN Endpoint DMA Address Register 15

This register contains the DMA Address for the IN Endpoint 15 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DTXFSTS15

Address offset: 0xAF8

Device IN Endpoint Transmit FIFO Status Register 15

This register reflects the status of the IN Endpoint Transmit FIFO Status Register 15 of the Device controller. Note: This register exists for an endpoint i if the OTG_EP_DIR_i parameter is 0 or 1 for that endpoint.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAA
Reset 0x00000C0000000000000000000000110000000000
IDR/WFieldValue IDValueDescription
ARINEPTXFSPCAVAIL

IN Endpoint TxFIFO Space Avail (INEPTxFSpcAvail)

Indicates the amount of free space available in the Endpoint TxFIFO. Values are in terms of 32-bit words. In DRD configurations (OTG_MODE = 0, 1, or 2) with dynamic FIFO sizing feature enabled (OTG_DFIFO_DYNAMIC = 1), the value of this field (before DIEPCTLi.TxFNum is programmed) is - the maximum value of (OTG_TX_HNPERIO_DFIFO_DEPTH, OTG_TX_DINEP_DFIFO_DEPTH_0) during reset, and - OTG_TX_DINEP_DFIFO_DEPTH_0, immediately after reset deassertion After DIEPCTLi.TxFNum is programmed, the value of this field will return OTG_TX_DINEP_DFIFO_DEPTH_i

DOEPCTL0

Address offset: 0xB00

Device Control OUT Endpoint 0 Control Register

This register is used to control the characteristics of the OUT Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDIHGFEDDCBAA
Reset 0x0000800000000000000000001000000000000000
IDR/WFieldValue IDValueDescription
ARMPS

Maximum Packet Size (MPS)

The maximum packet size for control OUT endpoint 0 is the same as what is programmed in control IN Endpoint 0.

BYTE64064 bytes
BYTE32132 bytes
BYTE16216 bytes
BYTE838 bytes
BRUSBACTEP

USB Active Endpoint (USBActEP)

This bit is always set to 1, indicating that a control endpoint 0 is always active in all configurations and interfaces.

ACTIVE1USB Active Endpoint 0
CRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit, the core stops receiving data, even If there is space in the RxFIFO to accommodate the incoming packet. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0The core is transmitting non-NAK handshakes based on the FIFO status
ACTIVE1The core is transmitting NAK handshakes on this endpoint
DREPTYPE

Endpoint Type (EPType)

Hardcoded to 2'b00 for control.

ACTIVE0Endpoint Control 0
ERWSTALL

STALL Handshake (Stall)

The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit or Global OUT NAK is Set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0No Stall
ACTIVE1Stall Handshake
FWCNAK

Clear NAK (CNAK)

A write to this bit clears the NAK bit for the endpoint.

NOCLEAR0No action
CLEAR1Clear NAK
GWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set bit on a Transfer Completed interrupt, or after a SETUP is received on the endpoint.

NOSET0No action
SET1Set NAK
HREPDIS

Endpoint Disable (EPDis)

The application cannot disable control OUT endpoint 0.

INACTIVE0No Endpoint disable
IRWEPENA

Endpoint Enable (EPEna)

- When Scatter/Gather DMA mode is enabled, for OUT endpoints this bit indicates that the descriptor structure and data buffer to receive data is setup. - When Scatter/Gather DMA mode is disabled (such as for buffer-pointer based DMA mode)this bit indicates that the application has allocated the memory to start receiving data from the USB. - The core clears this bit before setting any of the following interrupts on this endpoint: -- SETUP Phase Done -- Endpoint Disabled -- Transfer Completed Note: In DMA mode, this bit must be set for the core to transfer SETUP data packets into memory and it is not cleared on Transfer Completed interrupt of SETUP packet.

INACTIVE0No action
ACTIVE1Enable Endpoint

DOEPINT0

Address offset: 0xB08

Device OUT Endpoint 0 Interrupt Register

This register contains the interrupts for the OUT Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled - For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. - For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. Note: In DMA mode, this bit must be set for the core to transfer SETUP data packets into memory. When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the core to process, such as Host busy or DMA done.

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ0

Address offset: 0xB10

Device OUT Endpoint 0 Transfer Size Register

This register contains the Transfer Size for the OUT Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for endpoint 0. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRWSUPCNT

SETUP Packet Count (SUPCnt)

This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

ONEPACKET11 packet
TWOPACKET22 packets
THREEPACKET33 packets

DOEPDMA0

Address offset: 0xB14

Device OUT Endpoint 0 DMA Address Register

This register contains the DMA Address for the OUT Endpoint 0 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL1

Address offset: 0xB20

Device Control OUT Endpoint Control Register 1

This register is used to control the characteristics of OUT Endpoint 1 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT1

Address offset: 0xB28

Device OUT Endpoint Interrupt Register 1

This register contains the interrupts for the OUT Endpoint 1 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ1

Address offset: 0xB30

Device OUT Endpoint Transfer Size Register 1

This register contains the Transfer Size for the OUT Endpoint 1 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA1

Address offset: 0xB34

Device OUT Endpoint DMA Address Register 1

This register contains the DMA Address for the OUT Endpoint 1 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL2

Address offset: 0xB40

Device Control OUT Endpoint Control Register 2

This register is used to control the characteristics of OUT Endpoint 2 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT2

Address offset: 0xB48

Device OUT Endpoint Interrupt Register 2

This register contains the interrupts for the OUT Endpoint 2 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ2

Address offset: 0xB50

Device OUT Endpoint Transfer Size Register 2

This register contains the Transfer Size for the OUT Endpoint 2 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA2

Address offset: 0xB54

Device OUT Endpoint DMA Address Register 2

This register contains the DMA Address for the OUT Endpoint 2 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL3

Address offset: 0xB60

Device Control OUT Endpoint Control Register 3

This register is used to control the characteristics of OUT Endpoint 3 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT3

Address offset: 0xB68

Device OUT Endpoint Interrupt Register 3

This register contains the interrupts for the OUT Endpoint 3 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ3

Address offset: 0xB70

Device OUT Endpoint Transfer Size Register 3

This register contains the Transfer Size for the OUT Endpoint 3 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA3

Address offset: 0xB74

Device OUT Endpoint DMA Address Register 3

This register contains the DMA Address for the OUT Endpoint 3 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL4

Address offset: 0xB80

Device Control OUT Endpoint Control Register 4

This register is used to control the characteristics of OUT Endpoint 4 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT4

Address offset: 0xB88

Device OUT Endpoint Interrupt Register 4

This register contains the interrupts for the OUT Endpoint 4 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ4

Address offset: 0xB90

Device OUT Endpoint Transfer Size Register 4

This register contains the Transfer Size for the OUT Endpoint 4 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA4

Address offset: 0xB94

Device OUT Endpoint DMA Address Register 4

This register contains the DMA Address for the OUT Endpoint 4 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL5

Address offset: 0xBA0

Device Control OUT Endpoint Control Register 5

This register is used to control the characteristics of OUT Endpoint 5 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT5

Address offset: 0xBA8

Device OUT Endpoint Interrupt Register 5

This register contains the interrupts for the OUT Endpoint 5 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ5

Address offset: 0xBB0

Device OUT Endpoint Transfer Size Register 5

This register contains the Transfer Size for the OUT Endpoint 5 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA5

Address offset: 0xBB4

Device OUT Endpoint DMA Address Register 5

This register contains the DMA Address for the OUT Endpoint 5 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL6

Address offset: 0xBC0

Device Control OUT Endpoint Control Register 6

This register is used to control the characteristics of OUT Endpoint 6 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT6

Address offset: 0xBC8

Device OUT Endpoint Interrupt Register 6

This register contains the interrupts for the OUT Endpoint 6 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ6

Address offset: 0xBD0

Device OUT Endpoint Transfer Size Register 6

This register contains the Transfer Size for the OUT Endpoint 6 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA6

Address offset: 0xBD4

Device OUT Endpoint DMA Address Register 6

This register contains the DMA Address for the OUT Endpoint 6 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL7

Address offset: 0xBE0

Device Control OUT Endpoint Control Register 7

This register is used to control the characteristics of OUT Endpoint 7 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT7

Address offset: 0xBE8

Device OUT Endpoint Interrupt Register 7

This register contains the interrupts for the OUT Endpoint 7 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ7

Address offset: 0xBF0

Device OUT Endpoint Transfer Size Register 7

This register contains the Transfer Size for the OUT Endpoint 7 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA7

Address offset: 0xBF4

Device OUT Endpoint DMA Address Register 7

This register contains the DMA Address for the OUT Endpoint 7 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL8

Address offset: 0xC00

Device Control OUT Endpoint Control Register 8

This register is used to control the characteristics of OUT Endpoint 8 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT8

Address offset: 0xC08

Device OUT Endpoint Interrupt Register 8

This register contains the interrupts for the OUT Endpoint 8 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ8

Address offset: 0xC10

Device OUT Endpoint Transfer Size Register 8

This register contains the Transfer Size for the OUT Endpoint 8 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA8

Address offset: 0xC14

Device OUT Endpoint DMA Address Register 8

This register contains the DMA Address for the OUT Endpoint 8 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL9

Address offset: 0xC20

Device Control OUT Endpoint Control Register 9

This register is used to control the characteristics of OUT Endpoint 9 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT9

Address offset: 0xC28

Device OUT Endpoint Interrupt Register 9

This register contains the interrupts for the OUT Endpoint 9 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ9

Address offset: 0xC30

Device OUT Endpoint Transfer Size Register 9

This register contains the Transfer Size for the OUT Endpoint 9 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA9

Address offset: 0xC34

Device OUT Endpoint DMA Address Register 9

This register contains the DMA Address for the OUT Endpoint 9 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL10

Address offset: 0xC40

Device Control OUT Endpoint Control Register 10

This register is used to control the characteristics of OUT Endpoint 10 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT10

Address offset: 0xC48

Device OUT Endpoint Interrupt Register 10

This register contains the interrupts for the OUT Endpoint 10 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ10

Address offset: 0xC50

Device OUT Endpoint Transfer Size Register 10

This register contains the Transfer Size for the OUT Endpoint 10 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA10

Address offset: 0xC54

Device OUT Endpoint DMA Address Register 10

This register contains the DMA Address for the OUT Endpoint 10 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL11

Address offset: 0xC60

Device Control OUT Endpoint Control Register 11

This register is used to control the characteristics of OUT Endpoint 11 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT11

Address offset: 0xC68

Device OUT Endpoint Interrupt Register 11

This register contains the interrupts for the OUT Endpoint 11 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ11

Address offset: 0xC70

Device OUT Endpoint Transfer Size Register 11

This register contains the Transfer Size for the OUT Endpoint 11 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA11

Address offset: 0xC74

Device OUT Endpoint DMA Address Register 11

This register contains the DMA Address for the OUT Endpoint 11 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL12

Address offset: 0xC80

Device Control OUT Endpoint Control Register 12

This register is used to control the characteristics of OUT Endpoint 12 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT12

Address offset: 0xC88

Device OUT Endpoint Interrupt Register 12

This register contains the interrupts for the OUT Endpoint 12 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ12

Address offset: 0xC90

Device OUT Endpoint Transfer Size Register 12

This register contains the Transfer Size for the OUT Endpoint 12 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA12

Address offset: 0xC94

Device OUT Endpoint DMA Address Register 12

This register contains the DMA Address for the OUT Endpoint 12 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL13

Address offset: 0xCA0

Device Control OUT Endpoint Control Register 13

This register is used to control the characteristics of OUT Endpoint 13 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT13

Address offset: 0xCA8

Device OUT Endpoint Interrupt Register 13

This register contains the interrupts for the OUT Endpoint 13 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ13

Address offset: 0xCB0

Device OUT Endpoint Transfer Size Register 13

This register contains the Transfer Size for the OUT Endpoint 13 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA13

Address offset: 0xCB4

Device OUT Endpoint DMA Address Register 13

This register contains the DMA Address for the OUT Endpoint 13 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL14

Address offset: 0xCC0

Device Control OUT Endpoint Control Register 14

This register is used to control the characteristics of OUT Endpoint 14 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT14

Address offset: 0xCC8

Device OUT Endpoint Interrupt Register 14

This register contains the interrupts for the OUT Endpoint 14 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ14

Address offset: 0xCD0

Device OUT Endpoint Transfer Size Register 14

This register contains the Transfer Size for the OUT Endpoint 14 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA14

Address offset: 0xCD4

Device OUT Endpoint DMA Address Register 14

This register contains the DMA Address for the OUT Endpoint 14 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

DOEPCTL15

Address offset: 0xCE0

Device Control OUT Endpoint Control Register 15

This register is used to control the characteristics of OUT Endpoint 15 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDLKJIHGFEEDCBAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWMPS

Maximum Packet Size (MPS)

The application must program this field with the maximum packet size for the current logical endpoint. This value is in bytes.

BRWUSBACTEP

USB Active Endpoint (USBActEP)

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.

DISABLED0Not Active
ENABLED1USB Active Endpoint
CRDPID

Endpoint Data PID (DPID)

Applies to interrupt/bulk IN and OUT 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 applications use the SetD1PID and SetD0PID fields of this register to program either DATA0 or DATA1 PID. This field is applicable for both Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. Even/Odd (Micro)Frame (EO_FrNum) In non-Scatter/Gather DMA mode: - Applies to isochronous IN and OUT endpoints only. - Indicates the (micro)frame number in which the core transmits/receives isochronous data for this endpoint. The application must program the even/odd (micro)frame number in which it intends to transmit/receive isochronous data for this endpoint using the SetEvnFr and SetOddFr fields in this register. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is provided in the transmit descriptor structure. The frame in which data is received is updated in receive descriptor structure.

INACTIVE0Endpoint Data PID not active
ACTIVE1Endpoint Data PID active
DRNAKSTS

NAK Status (NAKSts)

Indicates the following: When either the application or the core sets this bit: - The core stops receiving any data on an OUT endpoint, even if there is space in the RxFIFO to accommodate the incoming packet. - For non-isochronous IN endpoints: The core stops transmitting any data on an IN endpoint, even if there data is available in the TxFIFO. - For isochronous IN endpoints: The core sends out a zero-length data packet, even if there data is available in the TxFIFO. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

NONNAK0The core is transmitting non-NAK handshakes based on the FIFO status
NAK1The core is transmitting NAK handshakes on this endpoint
ERWEPTYPE

Endpoint Type (EPType)

This is the transfer type supported by this logical endpoint.

CONTROL0Control
ISOCHRONOUS1Isochronous
BULK2Bulk
INTERRUPT3Interrupt
FRWSTALL

STALL Handshake (Stall)

Applies to non-control, non-isochronous IN and OUT endpoints only. The application sets this bit to stall all tokens from the USB host to this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Only the application can clear this bit, never the core. Applies to control endpoints only. The application can only set this bit, and the core clears it, when a SETUP token is received for this endpoint. If a NAK bit, Global Non-periodic IN NAK, or Global OUT NAK is set along with this bit, the STALL bit takes priority. Irrespective of this bit's setting, the core always responds to SETUP data packets with an ACK handshake.

INACTIVE0STALL All non-active tokens
ACTIVE1STALL All Active Tokens
GWCNAKClear NAK (CNAK) A write to this bit clears the NAK bit for the endpoint.
INACTIVE0No Clear NAK
ACTIVE1Clear NAK
HWSNAK

Set NAK (SNAK)

A write to this bit sets the NAK bit for the endpoint. Using this bit, the application can control the transmission of NAK handshakes on an endpoint. The core can also set this bit for an endpoint after a SETUP packet is received on that endpoint.

INACTIVE0No Set NAK
ACTIVE1Set NAK
IWSETD0PID

Set DATA0 PID (SetD0PID)

- Applies to interrupt/bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA0. - This field is applicable both for Scatter/Gather DMA mode and non-Scatter/Gather DMA mode. In non-Scatter/Gather DMA mode: Set Even (micro)frame (SetEvenFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the Even/Odd (micro)frame (EO_FrNum) field to even (micro)frame. - When Scatter/Gather DMA mode is enabled, this field is reserved. The frame number in which to send data is in the transmit descriptor structure. The frame in which to receive data is updated in receive descriptor structure.

DISABLED0Disables Set DATA0 PID or Do not force Even Frame
ENABLED1Set Endpoint Data PID to DATA0 or Sets EO_FrNum field to odd (micro)Frame
JWSETD1PID

Set DATA1 PID (SetD1PID)

- Applies to interrupt and bulk IN and OUT endpoints only. - Writing to this field sets the Endpoint Data PID (DPID) field in this register to DATA1. - This field is applicable both for scatter-gather DMA mode and non scatter-gather DMA mode. Set Odd (micro)frame (SetOddFr) - Applies to isochronous IN and OUT endpoints only. - Writing to this field sets the even and odd (micro)frame (EO_FrNum) field to odd (micro)frame.

DISABLED0Disables Set DATA1 PID or Do not force Odd Frame
ENABLED1Set Endpoint Data PID to DATA1 or Sets EO_FrNum field to odd (micro)Frame
KRWEPDIS

Endpoint Disable (EPDis)

Applies to IN and OUT endpoints. The application sets this bit to stop transmitting/receiving data on an endpoint, even before the transfer for that endpoint is complete. The application must wait for the Endpoint Disabled interrupt before treating the endpoint as disabled. The core clears this bit before setting the Endpoint Disabled interrupt. The application must set this bit only if Endpoint Enable is already set for this endpoint.

INACTIVE0No Action
ACTIVE1Disable Endpoint
LRWEPENA

Endpoint Enable (EPEna)

Applies to IN and OUT endpoints. When Scatter/Gather DMA mode is enabled, - For IN endpoints this bit indicates that the descriptor structure and data buffer with data ready to transmit is setup. - For OUT endpoint it indicates that the descriptor structure and data buffer to receive data is setup. When Scatter/Gather DMA mode is enabled such as for buffer-pointer based DMA mode: - For IN endpoints, this bit indicates that data is ready to be transmitted on the endpoint. - For OUT endpoints, this bit indicates that the application has allocated the memory to start receiving data from the USB. The core clears this bit before setting any of the following interrupts on this endpoint: - SETUP Phase Done - Endpoint Disabled - Transfer Completed Note: For control endpoints in DMA mode, this bit must be set for the controller to transfer SETUP data packets to the memory. This bit is not cleared on Transfer Completed interrupt of the SETUP packet.

INACTIVE0No Action
ACTIVE1Enable Endpoint

DOEPINT15

Address offset: 0xCE8

Device OUT Endpoint Interrupt Register 15

This register contains the interrupts for the OUT Endpoint 15 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDNMLKJIHGFEDCBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERCOMPL

Transfer Completed Interrupt (XferCompl)

Applies to IN and OUT endpoints. - When Scatter/Gather DMA mode is enabled -- For IN endpoint this field indicates that the requested data from the descriptor is moved from external system memory to internal FIFO. -- For OUT endpoint this field indicates that the requested data from the internal FIFO is moved to external system memory. This interrupt is generated only when the corresponding endpoint descriptor is closed, and the IOC bit for the corresponding descriptor is Set. - When Scatter/Gather DMA mode is disabled, this field indicates that the programmed transfer is complete on the AHB as well as on the USB, for this endpoint.

INACTIVE0No Transfer Complete Interrupt
ACTIVE1Transfer Complete Interrupt
BRWEPDISBLD

Endpoint Disabled Interrupt (EPDisbld)

Applies to IN and OUT endpoints. This bit indicates that the endpoint is disabled per the application's request.

INACTIVE0No Endpoint Disabled Interrupt
ACTIVE1Endpoint Disabled Interrupt
CRWAHBERR

AHB Error (AHBErr)

Applies to IN and OUT endpoints. This is generated only in Internal DMA mode when there is an AHB error during an AHB read/write. The application can read the corresponding endpoint DMA address register to get the error address. For details, see "AHB Error Handling" section in the Programming Guide.

INACTIVE0No AHB Error Interrupt
ACTIVE1AHB Error interrupt
DRWSETUP

SETUP Phase Done (SetUp)

Applies to control OUT endpoints only. Indicates that the SETUP phase for the control endpoint is complete and no more back-to-back SETUP packets were received for the current control transfer. On this interrupt, the application can decode the received SETUP data packet.

INACTIVE0No SETUP Phase Done
ACTIVE1SETUP Phase Done
ERWOUTTKNEPDIS

OUT Token Received When Endpoint Disabled (OUTTknEPdis)

Applies only to control OUT endpoints. Indicates that an OUT token was received when the endpoint was not yet enabled. This interrupt is asserted on the endpoint for which the OUT token was received.

INACTIVE0No OUT Token Received When Endpoint Disabled
ACTIVE1OUT Token Received When Endpoint Disabled
FRWSTSPHSERCVD

Status Phase Received for Control Write (StsPhseRcvd)

This interrupt is valid only for Control OUT endpoints. This interrupt is generated only after the core has transferred all the data that the host has sent during the data phase of a control write transfer, to the system memory buffer. The interrupt indicates to the application that the host has switched from data phase to the status phase of a Control Write transfer. The application can use this interrupt to ACK or STALL the Status phase, after it has decoded the data phase.

INACTIVE0No Status Phase Received for Control Write
ACTIVE1Status Phase Received for Control Write
GRWBACK2BACKSETUP

Back-to-Back SETUP Packets Received (Back2BackSETup)

Applies to Control OUT endpoints only. This bit indicates that the core has received more than three back-to-back SETUP packets for this particular endpoint. For information about handling this interrupt, refer to Programming guide section "Handling More Than Three Back-to-Back SETUP Packets". This bit is not valid in Completer mode.

INACTIVE0No Back-to-Back SETUP Packets Received
ACTIVE1Back-to-Back SETUP Packets Received
HRWOUTPKTERR

OUT Packet Error (OutPktErr)

Applies to OUT endpoints Only This interrupt is valid only when thresholding is enabled. This interrupt is asserted when the core detects an overflow or a CRC error for non-Isochronous OUT packet.

INACTIVE0No OUT Packet Error
ACTIVE1OUT Packet Error
IRWBNAINTR

BNA (Buffer Not Available) Interrupt (BNAIntr)

This bit is valid only when Scatter/Gather DMA mode is enabled. The core generates this interrupt when the descriptor accessed is not ready for the Core to process, such as Host busy or DMA done

INACTIVE0No BNA interrupt
ACTIVE1BNA interrupt
JRWPKTDRPSTS

Packet Drop Status (PktDrpSts)

This bit indicates to the application that an ISOC OUT packet has been dropped. This bit does not have an associated mask bit and does not generate an interrupt. Dependency: This bit is valid in non Scatter/Gather DMA mode when periodic transfer interrupt feature is selected.

INACTIVE0No interrupt
ACTIVE1Packet Drop Status interrupt
KRWBBLEERR

NAK Interrupt (BbleErr)

The core generates this interrupt when babble is received for the endpoint.

INACTIVE0No BbleErr interrupt
ACTIVE1BbleErr interrupt
LRWNAKINTRPT

NAK Interrupt (NAKInterrupt)

The core generates this interrupt when a NAK is transmitted or received by the device. In case of isochronous IN endpoints the interrupt gets generated when a zero length packet is transmitted due to un-availability of data in the TXFifo.

INACTIVE0No NAK interrupt
ACTIVE1NAK Interrupt
MRWNYETINTRPT

NYET Interrupt (NYETIntrpt)

The core generates this interrupt when a NYET response is transmitted for a non isochronous OUT endpoint.

INACTIVE0No NYET interrupt
ACTIVE1NYET Interrupt
NRWSTUPPKTRCVD

Setup Packet Received

Applicable for Control OUT Endpoints in only in the Buffer DMA Mode Set by the controller, this bit indicates that this buffer holds 8 bytes of setup data. There is only one Setup packet per buffer. On receiving a Setup packet, the controller closes the buffer and disables the corresponding endpoint. The application has to re-enable the endpoint to receive any OUT data for the Control Transfer and reprogram the buffer start address. Note: Because of the above behavior, the controller can receive any number of back to back setup packets and one buffer for every setup packet is used.

NOTRCVD0No Setup packet received
RCVD1Setup packet received

DOEPTSIZ15

Address offset: 0xCF0

Device OUT Endpoint Transfer Size Register 15

This register contains the Transfer Size for the OUT Endpoint 15 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDCCBBBBBBBBBBAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWXFERSIZE

Transfer Size (XferSize)

Indicates the transfer size in bytes for the endpoint. The core interrupts the application only after it has exhausted the transfer size amount of data. The transfer size can be Set to the maximum packet size of the endpoint, to be interrupted at the end of each packet. The core decrements this field every time a packet is read from the RxFIFO and written to the external memory.

BRWPKTCNT

Packet Count (PktCnt)

This field is decremented to zero after a packet is written into the RxFIFO.

CRRXDPID

RxDPID

Applies to isochronous OUT endpoints only. This is the data PID received in the last packet for this endpoint. SETUP Packet Count (SUPCnt) Applies to control OUT Endpoints only. This field specifies the number of back-to-back SETUP data packets the endpoint can receive.

DATA00DATA0
DATA2PACKET11DATA2 or 1 packet
DATA1PACKET22DATA1 or 2 packets
MDATAPACKET33MDATA or 3 packets

DOEPDMA15

Address offset: 0xCF4

Device OUT Endpoint DMA Address Register 15

This register contains the DMA Address for the OUT Endpoint 15 of the Device controller.

Bit number313029282726252423222120191817161514131211109876543210
IDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWDMAADDR

Holds the start address of the external memory for storing or fetching endpoint

data. Note: For control endpoints, this field stores control OUT data packets as well as SETUP transaction data packets. When more than three SETUP packets are received back-to-back, the SETUP data packet in the memory is overwritten. This register is incremented on every AHB transaction. The application can give only a DWORD-aligned address. - When Scatter/Gather DMA mode is not enabled, the application programs the start address value in this field. - When Scatter/Gather DMA mode is enabled, this field indicates the base pointer for the descriptor list.

PCGCCTL

Address offset: 0xE00

Power and Clock Gating Control Register

This register is used to control the Power and Clock Gating characteristics of the controller.

Bit number313029282726252423222120191817161514131211109876543210
IDIIIIIIIIIIIIIIIIIIHGFEDCBA
Reset 0x880A000010001000000010100000000000000000
IDR/WFieldValue IDValueDescription
ARWSTOPPCLK

Stop Pclk (StopPclk)

- The application sets this bit to stop the PHY clock (phy_clk) when the USB is suspended, the session is not valid, or the device is disconnected. - The application clears this bit when the USB is resumed or a new session starts.

DISABLED0Disable Stop Pclk
ENABLED1Enable Stop Pclk
BRWGATEHCLK

Gate Hclk (GateHclk)

- The application sets this bit to gate hclk to modules other than the AHB Completer and Requester and wakeup logic when the USB is suspended or the session is not valid. - The application clears this bit when the USB is resumed or a new session starts.

DISABLED0Clears this bit when the USB is resumed or a new session starts
ENABLED1Sets this bit to gate hclk to modules when the USB is suspended or the session is not valid
CRWRSTPDWNMODULE

Reset Power-Down Modules (RstPdwnModule)

This bit is valid only in Partial Power-Down mode. - The application sets this bit when the power is turned off. - The application clears this bit after the power is turned on and the PHY clock is up. Note: The R/W of all core registers are possible only when this bit is set to 1b0.

ON0Power is turned on
OFF1Power is turned off
DRWENBLL1GATING

Enable Sleep Clock Gating

If this bit is set, core internal clock gating is enabled sleep state if utmi_l1_suspend_n cannot be asserted by the core. The PHY clock is not gated in sleep state if Enbl_L1Gating is not set.

DISABLED0The PHY clock is not gated in Sleep state
ENABLED1The Core internal clock gating is enabled in Sleep state
ERPHYSLEEP

PHY In Sleep

Indicates that the PHY is in Sleep State.

INACTIVE0Phy not in Sleep state
ACTIVE1Phy in Sleep state
FRL1SUSPENDED

L1 Deep Sleep

Indicates that the PHY is in deep sleep when in L1 state.

INACTIVE0Non Deep Sleep
ACTIVE1Deep Sleep
GRWRESTOREMODE

Restore Mode (RestoreMode)

The application must program this bit to specify the restore mode during RESTORE POINT before programming PCGCCTL.EssRegRest bit is set. - Host Mode: - Device Mode:

DISABLED0In Host mode,this bit indicates Host-initiated Resume and Reset. In Device mode, this bit indicates Device-initiated Remote Wakeup
ENABLED1In Host mode,this bit indicates Device-initiated Remote Wakeup. In Device mode, this bit indicates Host-initiated Resume and Reset
HWESSREGRESTORED

Essential Register Values Restored (EssRegRestored)

A write of one into this field indicates that register values of essential registers have been restored. For definition of essential registers, refer programming flow section for Hibernation.

NOTRESTORED0Register values of essential registers are not restored
RESTORED1Register values of essential registers have been restored
IRWRESTOREVALUE

Restore Value (RestoreValue)

When Hibernation mode is enabled, the RestoreValue needs to be read at SAVE_POINT to store in non-volatile memory and at RESTORE_POINT restored before PCGCCTL.EssRegRestored field is set. - [31] if_dev_mode -- 1: Device mode, core restored as device -- 0: Host mode, core restored as host - [30:29] p2hd_prt_spd (PRT speed) -- 00: HS -- 01: FS -- 10: LS -- 11: Reserved - [28:27] p2hd_dev_enum_spd (Device enumerated speed) -- 00: HS -- 01: FS (30/60 MHz clk) -- 10: LS -- 11: FS (48 MHz clk) - [26:20] mac_dev_addr (MAC device address) Device address - [19] mac_termselect (Termination selection) -- 0: HS_TERM (Program for High Speed) -- 1: FS_TERM (Program for Full Speed) - [18:17] mac_xcvrselect (Transceiver select) -- 00: HS_XCVR (High Speed) -- 01: FS_XCVR (Full Speed) -- 10: LS_XCVR (Low Speed) -- 11: LFS_XCVR (Reserved) - [16] sh2pl_prt_ctl[0] -- 1: prt_power enabled -- 0: prt_power disabled - [15:14] prt_clk_sel (Refer prt_clk_sel table) Defines port clock select for different speeds.

GSTARFXDIS

Address offset: 0xF00

Global STAR Fix Disable Register

This register is used to disable STAR fixes added in the controller. The application can set the register fields to operate with the functionality before the fix was done.

Bit number313029282726252423222120191817161514131211109876543210
IDaZYXWVUTSRQPONMLKJIHGFEDCBA
Reset 0x0000220000000000000000000010001000000000
IDR/WFieldValue IDValueDescription
ARWHOSTIGNORESRMTWKUPDIS

Disable the STAR fix added for Device controller to go back to low power mode when Host ignores Remote wakeup

The application programs Host_Ignores_RmtWkup_dis=1 to disable the device controller from going back to low power mode (SUSPENDED state) when the host ignores the remote wakeup signalling from the device and does not respond back with resume. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Device controller goes back into SUSPENDED state when host ignores Remote Wakeup
DISABLEFIX1Device controller waits indefinitely without entering SUSPENDED state when host ignores the Remote Wakeup
BRWRESUMEFRMCHKBUSDIS

Disable the STAR fix added for Device controller to detect lineK and move to RESUMING state after the 50us pull-up delay ends

The application programs Resume_frm_CHK_BUS_dis=1 to disable the device controller from detecting line K and transitioning to RESUMING state in the scenario where Host resume starts immediately after the 50us pull-up delay timer expires. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Device controller detects line K and resumes
DISABLEFIX1Device controller does not detect line K and resume
CRWIGNORECTLOUTDATA0DIS

Disable the STAR fix added for Device controller to reject DATA0 for the first Control OUT Data Phase and Control Status OUT Phase

The application programs Ignore_CtlOUT_DATA0_dis=1 to disable the device controller from reporting transaction error when DATA0 PID is received from host for the first Control OUT Data Phase and Control Status OUT phase. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Transaction Error reported when host sends DATA0 PID
DISABLEFIX1Transaction Error not reported when host sends DATA0 PID
DRWSSPLITSTALLNYETERRDIS

Disable the STAR fix added for Host controller to flag error for SSPLIT STALL/NYET

The application programs SSPLIT_STALLNYET_Err_dis=1 to disable the host controller from reporting transaction error for STALL/NYET received from device for SSPLIT transfer. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Transaction Error reported when device sends STALL/NYET for SSPLIT
DISABLEFIX1Transaction Error not reported when device sends STALL/NYET for SSPLIT
ERWACCEPTISOCSPLITDATA1DIS

Disable the STAR fix added for Host controller to accept DATA1 PID from device for ISOC Split transfers

The application programs Accept_Isoc_split_DATA1_dis=1 to disable the host controller from accepting DATA1 PID from device for ISOC Split transfers. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Transaction Error not reported when device sends DATA1 PID for ISOC Split
DISABLEFIX1Transaction Error reported when device sends DATA1 PID for ISOC Split
FRWHANDLEFAULTYCABLEDIS

Disable the STAR fix added for Host controller to handle Faulty cable scenarios

The application programs HandleFaultyCable_dis=1 to disable the host controller from reporting Port Babble error when the linestate is stuck at 1 (in FS mode) or 2 (in LS mode) due to a Faulty cable. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Fix for handling faulty cable enabled
DISABLEFIX1Fix for handling faulty cable disabled
GRWLSIPGINCRDIS

Disable the STAR fix added for Host controller LS mode IPG increment from 2 LS bit times to 3 LS bit times

The application programs LS_IPG_incr_dis=1 to disable the IPG increment from 2 to 3 LS bit times when host controller is operating in LS mode. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host LS mode IPG is 3 LS bit times
DISABLEFIX1Host LS mode IPG is 2 LS bit times
HRWFSDISCIDLEDIS

Disable the STAR fix added for Device controller to transition to IDLE state during FS device disconnect

The application programs FSDisc_Idle_dis=1 to disable the Transmit/Receive state machine from moving to IDLE state when FS device disconnect happens. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Device controller transitions to IDLE state during FS device disconnect
DISABLEFIX1Device controller does not transition to IDLE state during FS device disconnect
IRWCONCURRENTRMTWKUPUSBRESUMEDIS

Disable the STAR fix added for Device controller to not start Remote Wakeup signalling when USB resume has already started

The application programs Concurrent_Rmtwkup_USBResume_dis=1 to allow the controller to do remote wakeup signalling when USB resume has already started from the Host. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Device controller does not start remote wakeup signalling when host resume has already started
DISABLEFIX1Device controller is allowed to start remote wakeup signalling when host resume has already started
JRWLSIPGCHKAFTERNAKSTALLFORINDIS

Disable the STAR fix added for Host controller to wait for IPG duration to send next token after receiving NAK/STALL for previous IN token with FS/LS device

The application programs LS_IPG_chk_after_NAK_STALL_for_IN_dis=1 to allow the controller to send the next token without waiting for the interpacket gap duration after receiving a NAK/STALL from device for the previous IN token. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller checks IPG after NAK/STALL for IN token
DISABLEFIX1Host controller does not check IPG after NAK/STALL for IN token
KRWPHYIOPXCVRSELTXVLDCORRDIS

Disable the STAR fix added for Host controller to increase the gap between utmi_xcvrselect switching and utmi_txvalid assertion in LS/FS mode

The application programs PHY_IOp_xcvrsel_txvld_corr_dis=1 to allow the controller to assert utmi_txvalid 1 cycle after the utmi_xcvrselect switching. This can cause interop issues with SNPS PHY which requires at least 2 cycles of gap between the utmi_xcvrselect switch and the utmi_txvalid assertion. Hence it is recommended to program PHY_IOp_xcvrsel_txvld_corr_dis=0. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller asserts utmi_txvalid at least 2 utmi_clk cycles after utmi_xcvrselect switching
DISABLEFIX1Host controller can assert utmi_txvalid after 1 utmi_clk cycle of utmi_xcvrselect switching
LRWULPIXCVRSELSWITCHCORRDIS

Disable the STAR fix added for Host controller to increase the preamble transceiver select switch delay to accommodate time taken for ULPI function control write

The application programs ULPI_xcvrsel_switch_corr_dis=1 to allow the controller to do back to back transceiver select switching within the duration required for a single ULPI function control write (around 5-6 ulpi_clk cycles). This can cause a corrupted packet to go on the bus since the ULPI wrapper may not be able to do the second ULPI functional update (register write) correctly. Hence it is recommended to program ULPI_xcvrsel_switch_corr_dis=0. With ULPI_xcvrsel_switch_corr_dis=0, the delay between transceiver select switch and txvalid assertion has also been increased for FS/LS mode to resolve PHY interop issues. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller waits for previous functional register update to complete before switching the transceiver select again or asserting txvalid
DISABLEFIX1Host controller does not wait for the previous functional register update to complete before switching the transceiver select again or asserting txvalid
MRWXACTERRDATA0CTRLSTSINDIS

Disable the STAR fix added for Host controller to report transaction error when DATA0 PID is received for CTRL STATUS IN transfer in DMA mode

The application programs XactErr_DATA0_CTRL_STS_IN_dis=1 to allow the controller to respond with ACK for the incorrect DATA0 PID and then retry the control STATUS IN transfer until DATA1 PID is received. With XactErr_DATA0_CTRL_STS_IN_dis=0, the controller generates Transaction Error interrupt when the incorrect PID is received. This STAR fix is applicable only for Buffer DMA and Descriptor DMA modes. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller reports transaction error when DATA0 PID is received for CTRL STATUS IN transfer in DMA mode
DISABLEFIX1Host controller retries the transfer when DATA0 PID is received for CTRL STATUS IN transfer in DMA mode
NRWHOSTUTMITXVLDCORRDIS

Disable the correction to OpMode/XcvrSel/TermSel on UTMI Interface in Host mode.

When HPRT.PrtRst is set by the application, the Host controller can change the Opmode, XcvrSel and TermSel while TxValid is still high (1'b1) during SOF transmission in 8-bit UTMI mode. This behavior of the controller has been corrected to handle port reset during SOF transmission. With the fix, the controller waits for Txvalid to go low (1'b0) and then changes the OpMode, XcvrSel and TermSel. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Opmode, XcvrSel, TermSel are changed by the Host Controller after TxValid goes LOW (1'b0)
DISABLEFIX1Opmode, XcvrSel, TermSel are changed by the Host Controller without waiting for TxValid to go LOW (1'b0) during SOF transmission
ORWOPMODEXCVRSELCHIRPENCORRDIS

Disable the STAR fix added for correcting Opmode and XcvrSel on UTMI Interface when reset is detected in suspend state.

In configurations with Battery charger support enabled (and GOTGCTL.ChirpEn programmed to 1), the RTL has been updated to wait for 1ms and then change the opmode and xcvrselect when reset is detected in the suspend state. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller and change Opmode and XcvrSel without waiting for 1ms after reset detection. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Valid Combination of Opmode and XcvrSel is driven when reset is detected in suspend state
DISABLEFIX1Invalid Combination of Opmode and XcvrSel is driven when reset is detected in suspend state
PRWTXVALIDDEASSERTIONCORRDIS

Disable the STAR fix added for correcting Txvalid deassertion on UTMI Interface when soft disconnect is done.

The RTL has been updated to wait for utmi_txready and then de-assert the utmi_txvalid being driven by MAC DSSR when soft disconnect is done. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller and change Txvalid without waiting for Txready. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Txvalid is deasserted during soft disconnect after receiving Txready from the PHY
DISABLEFIX1Txvalid is deasserted during soft disconnect without waiting for Txready from the PHY
QRWHOSTNOXFERAFTERPRTDISFIXDIS

Disable the STAR fix added for correcting Host behavior when port is disabled.

The RTL has been updated to not assert utmi_txvalid when the port is disabled. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Txvalid is not asserted when port is disabled
DISABLEFIX1Txvalid can be asserted when port is disabled
RRWLINESTATESE0FILTERFOREOPDIS

Disable the STAR fix added for filtering SE0 from the linestate during EOP detection..

The RTL has been updated to filter glitches occurred in the linestate. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Filter for linestate is enabled
DISABLEFIX1Filter for linestate is not enabled
SRWDMPULLDOWNUPDATEINOTGFORHIBANDPP

Disable the STAR fix added for utmiotg_dmpulldown update in Hibernation and Partial power down modes.

The RTL has been updated for OTG mode to remove the glitch in utmiotg_dmpulldown signal while controller is exiting from Hibernation or Partial power down. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0utmiotg_dmpulldown logic for hiberabtion and partial power down is enabled
DISABLEFIX1utmiotg_dmpulldown logic for hiberabtion and partial power down is not enabled
TRWCHIRPDETECTIONUPDTHSTDIS

Disable the Chirp detection logic change in host mode.

The RTL has been updated in Host mode to avoid the unexpected chirp detection when there is no chirp K from device. After the RTL fix chirp detection logic depends on the delayed WAIT_CHIRP state. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Chirp detection logic in MAC PRT module depends on the delayed WAIT_CHIRP state and only valid chirp K from device is detected
DISABLEFIX1Chirp detection logic depends on the WAIT_CHIRP state and controller might detect false chirp K from device
URWPROGRAMMABLESE0DURATIONTODETECTEOP

Disable the STAR fix added for programmable se0 duration to detect EOP in Host mode .

The RTL Enhancement has been done to reduce the EOP SE0 detection time for USB2 SOF,transmitted by the core to work with longer cables and/or devices with longer delays. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Programmable se0 duration to detect EOP in Host mode is enabled
DISABLEFIX1Programmable se0 duration to detect EOP in Host mode is disabled
VRWENABLELEVELSYNCHRONISERFORH2PDTXF0LENPKT

Disable the STAR fix added for h2pd_txf_0len_pkt signal which is passing through a level synchronizer.

Dummy synchronizer of h2pd_txf_0len_pkt signal has been replaced with Level synchronizer. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0level synchroniser for h2pd_txf_0len_pkt is enabled and disabled dummy synchronizer
DISABLEFIX1level synchroniser for h2pd_txf_0len_pkt is disabled and connected through dummy synchronizer
WRWEUSB2TERMINATERESUMEONDISCDIS

Disable fix for Terminating Resume if UTMI HostDisconnect is detected.

The RTL has been updated in Host mode to terminate Resume if UTMI HostDisconnect is asserted, this is to avoid the controller and PHY from being out of sync if HostDisconnect coincides with the beginning of Resume transmission. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller terminates Resume if HostDisconnect is asserted
DISABLEFIX1Host controller does not terminate Resume if HostDisconnect is asserted
XRWEUSB2FSLSDISCDETECTIONDIS

Disable fix for FS/LS disconnect detection using UTMI HostDisconnect in MAC PRT.

The RTL has been updated in Host mode to detect disconnect using the utmi_hostdisconnect signal instead of monitoring 2.5us of SE0 on DP/DM. The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller detects FS/LS disconnect using utmi_hostdisconnect signal
DISABLEFIX1Host controller detects disconnect by monitoring 2.5us of SE0 on DP/DM
YRWHOSTFLUSHEXCESSTKNFIXDIS

Disable fix for recovering the Host controller when sufficient time is not available in the current uF for an overscheduled ISOC OUT or INTR IN transfer.

The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0Host controller functionality is as expected if there is an overscheduled ISOC OUT or INTR IN transfer
DISABLEFIX1Host controller functionality cannot be determined if there is an overscheduled ISOC OUT or INTR IN transfer
ZRWTITRANSDONETGLDURINGISOCEOPFDISABLE

Disable the fix added to not toggle ti_trans_done in SEND_EOP state when the ISOC in tokens responds with zero length packets after end of periodic frame till next start of frame. The fix is added when operating in descriptor dma device mode.

The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0ti_transdone is not toggled after eopf during ISOC IN transfer till next SOF
DISABLEFIX1ti_transdone is toggled after eopf during ISOC IN transfer till next SOF
aRWCLEARSOFREFCLKTIMERDURINGDISC

Disable the STAR fix added to clear the SOF refclk timer during disconnect detection. The STAR fix is added when using both UTMI and eUSB2 PHY.

The application can set this register bit to 1'b1 to fall back to the original behavior of the controller. This bit must be programmed during the initial configuration of the controller and must not be modified later.

ENABLEFIX0SOF refclk timer is cleared immediately after device disconnect is detected.
DISABLEFIX1SOF refclk timer is not cleared immediately after device disconnect is detected.

DWCOTGDFIFO[n].DATA[o]

Address offset: 0x1000 + (n × 0x1000) + (o × 0x4)

Data FIFO Access Register Map 0

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription

DWCOTGDFIFODIRECTACCESS.DATA[n]

Address offset: 0x11000 + (n × 0x4)

Data FIFO Direct Access Register Map

Bit number313029282726252423222120191817161514131211109876543210
ID
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription