USBREG — USB regulator control

A 5 V USB supply must power the VBUS pin when using the USB peripheral.

The device has a dedicated internal voltage regulator for converting the VBUS supply to 3.3 V for the USB signaling interface (D+ and D- lines, and pull-up on D+). The rest of the USB peripheral (USBHS) is supplied through the main supply like other on-chip features. As a consequence, both VBUS and VDD are required for USB peripheral operation. For details on the device voltage regulators, see REGULATORS — Regulator control.

Registers

Instances

InstanceDomainBase addressTrustZoneSplit accessDescription
MapAttDMA
VREGUSB : S
VREGUSB : NS
GLOBAL0x50121000
0x40121000
USSNANoUSB regulator

Configuration

InstanceDomainConfiguration
VREGUSB : S
VREGUSB : NS
GLOBAL

Register overview

RegisterOffsetTZDescription
TASKS_START0x000Enable and start VREGUSB so that it can detect VBUS
TASKS_STOP0x004Stop and disable VREGUSB
EVENTS_VBUSDETECTED0x104VBUS detected
EVENTS_VBUSREMOVED0x110VBUS removed
INTEN0x300Enable or disable interrupt
INTENSET0x304Enable interrupt
INTENCLR0x308Disable interrupt
INTPEND0x30CPending interrupts

TASKS_START

Address offset: 0x000

Enable and start VREGUSB so that it can detect VBUS

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STARTEnable and start VREGUSB so that it can detect VBUS
Trigger1Trigger task

TASKS_STOP

Address offset: 0x004

Stop and disable VREGUSB

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
AWTASKS_STOPStop and disable VREGUSB
Trigger1Trigger task

EVENTS_VBUSDETECTED

Address offset: 0x104

VBUS detected

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_VBUSDETECTEDVBUS detected
NotGenerated0Event not generated
Generated1Event generated

EVENTS_VBUSREMOVED

Address offset: 0x110

VBUS removed

Bit number313029282726252423222120191817161514131211109876543210
IDA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWEVENTS_VBUSREMOVEDVBUS removed
NotGenerated0Event not generated
Generated1Event generated

INTEN

Address offset: 0x300

Enable or disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARWVBUSDETECTEDEnable or disable interrupt for event VBUSDETECTED
Disabled0Disable
Enabled1Enable
BRWVBUSREMOVEDEnable or disable interrupt for event VBUSREMOVED
Disabled0Disable
Enabled1Enable

INTENSET

Address offset: 0x304

Enable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1S
VBUSDETECTEDWrite '1' to enable interrupt for event VBUSDETECTED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRW
W1S
VBUSREMOVEDWrite '1' to enable interrupt for event VBUSREMOVED
Set1Enable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTENCLR

Address offset: 0x308

Disable interrupt

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARW
W1C
VBUSDETECTEDWrite '1' to disable interrupt for event VBUSDETECTED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled
BRW
W1C
VBUSREMOVEDWrite '1' to disable interrupt for event VBUSREMOVED
Clear1Disable
Disabled0Read: Disabled
Enabled1Read: Enabled

INTPEND

Address offset: 0x30C

Pending interrupts

Bit number313029282726252423222120191817161514131211109876543210
IDBA
Reset 0x0000000000000000000000000000000000000000
IDR/WFieldValue IDValueDescription
ARVBUSDETECTEDRead pending status of interrupt for event VBUSDETECTED
NotPending0Read: Not pending
Pending1Read: Pending
BRVBUSREMOVEDRead pending status of interrupt for event VBUSREMOVED
NotPending0Read: Not pending
Pending1Read: Pending