DocID025202 Rev 7
RM0365
Universal serial bus full-speed device interface (USB)
1036
LPM control and status register (USB_LPMCSR)
Address offset: 0x54
Reset value: 0x0000
Note:
If LPM is not supported, this bit is not implemented and considered as reserved. Please
refer to
Section 32.3: USB implementation
Endpoint-specific registers
The number of these registers varies according to the number of endpoints that the USB
peripheral is designed to handle. The USB peripheral supports up to 8 bidirectional
endpoints. Each USB device must support a control endpoint whose address (EA bits) must
be set to 0. The USB peripheral behaves in an undefined way if multiple endpoints are
enabled having the same endpoint number value. For each endpoint, an USB_EPnR
register is available to store the endpoint specific information.
Bits 15:3
BTABLE[15:3]:
Buffer table
These bits contain the start address of the buffer allocation table inside the dedicated packet
memory. This table describes each endpoint buffer location and size and it must be aligned
to an 8 byte boundary (the 3 least significant bits are always ‘0). At the beginning of every
transaction addressed to this device, the USB peripheral reads the element of this table
related to the addressed endpoint, to get its buffer start location and the buffer size (Refer to
Structure and usage of packet buffers on page 1008
).
Bits 2:0 Reserved, forced by hardware to 0.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Res.
Res.
Res.
Res.
Res.
Res.
Res.
Res.
BESL[3:0]
REM
WAKE
Res.
LPM
ACK
LPM
EN
r
r
rw
rw
Bits 15:8 Reserved.
Bits 7:4
BESL[3:0]:
BESL value
These bits contain the BESL value received with last ACKed LPM Token
Bit 3
REMWAKE:
bRemoteWake value
This bit contains the bRemoteWake value received with last ACKed LPM Token
Bit 2 Reserved
Bit 1
LPMACK:
LPM Token acknowledge enable
0: the valid LPM Token will be NYET.
1: the valid LPM Token will be ACK.
The NYET/ACK will be returned only on a successful LPM transaction:
No errors in both the EXT token and the LPM token (else ERROR)
A valid bLinkState = 0001B (L1) is received (else STALL)
Bit 0
LPMEN:
LPM support enable
This bit is set by the software to enable the LPM support within the USB device. If this bit is
at ‘0 no LPM transactions are handled.