MCBSTM32EXL Keil, MCBSTM32EXL Datasheet - Page 525

no-image

MCBSTM32EXL

Manufacturer Part Number
MCBSTM32EXL
Description
BOARD EVALUATION FOR STM32F103ZE
Manufacturer
Keil
Datasheets

Specifications of MCBSTM32EXL

Lead Free Status / RoHS Status
Lead free / RoHS Compliant
RM0008
The actual procedure used to suspend the USB peripheral is device dependent since
according to the device composition, different actions may be required to reduce the total
consumption.
A brief description of a typical suspend procedure is provided below, focused on the USB-
related aspects of the application software routine responding to the SUSP notification of
the USB peripheral:
1.
2.
3.
4.
When an USB event occurs while the device is in SUSPEND mode, the RESUME procedure
must be invoked to restore nominal clocks and regain normal USB behavior. Particular care
must be taken to insure that this process does not take more than 10mS when the wakening
event is an USB reset sequence (See “Universal Serial Bus Specification” for more details).
The start of a resume or reset sequence, while the USB peripheral is suspended, clears the
LP_MODE bit in USB_CNTR register asynchronously. Even if this event can trigger an
WKUP interrupt if enabled, the use of an interrupt response routine must be carefully
evaluated because of the long latency due to system clock restart; to have the shorter
latency before re-activating the nominal clock it is suggested to put the resume procedure
just after the end of the suspend one, so its code is immediately executed as soon as the
system clock restarts. To prevent ESD discharges or any other kind of noise from waking-up
the system (the exit from suspend mode is an asynchronous event), a suitable analog filter
on data line status is activated during suspend; the filter width is about 70ns.
The following is a list of actions a resume procedure should address:
1.
2.
3.
Table 155. Resume event detection
[RXDP,RXDM] status
Set the FSUSP bit in the USB_CNTR register to 1. This action activates the suspend
mode within the USB peripheral. As soon as the suspend mode is activated, the check
on SOF reception is disabled to avoid any further SUSP interrupts being issued while
the USB is suspended.
Remove or reduce any static power consumption in blocks different from the USB
peripheral.
Set LP_MODE bit in USB_CNTR register to 1 to remove static power consumption in
the analog USB transceivers but keeping them able to detect resume activity.
Optionally turn off external oscillator and device PLL to stop any activity inside the
device.
Optionally turn on external oscillator and/or device PLL.
Clear FSUSP bit of USB_CNTR register.
If the resume triggering event has to be identified, bits RXDP and RXDM in the
USB_FNR register can be used according to
software action in all the cases. If required, the end of resume or reset sequence can
be detected monitoring the status of the above mentioned bits by checking when they
reach the “10” configuration, which represent the Idle bus state; moreover at the end of
a reset sequence the RESET bit in USB_ISTR register is set to 1, issuing an interrupt if
enabled, which should be handled as usual.
“00”
“10”
“01”
“11”
Root reset
None (noise on bus)
Root resume
Not allowed (noise on bus) Go back in Suspend mode
Doc ID 13902 Rev 9
Wakeup event
Universal serial bus full-speed device interface (USB)
Table
None
Go back in Suspend mode
None
Required resume software action
155, which also lists the intended
525/995

Related parts for MCBSTM32EXL