Download Print this page

Freescale Semiconductor MPC8313E PowerQUICC II Pro Family Reference Manual page 998

Integrated
Hide thumbs Also See for MPC8313E PowerQUICC II Pro:

Advertisement

Universal Serial Bus Interface
Selective suspend is a feature supported by the PORTSC register. It is used to place specific ports into a
suspend mode. This feature is used as a functional component for implementing the appropriate power
management policy implemented in a particular operating system. When system software intends to
suspend the bus, it should suspend the enabled port, then shut off the controller by setting the
USBCMD[RS] to a zero.
When a wake event occurs the system will resume operation and system software must set the RS bit to a
one and resume the suspended port.
16.6.4.1
Port Suspend/Resume
System software places the USB into suspend mode by writing a one into the appropriate PORTSC
Suspend bit. Software must only set the Suspend bit when the port is in the enabled state (Port Enabled bit
is a one).
The host controller may evaluate the Suspend bit immediately or wait until a micro-frame or frame
boundary occurs. If evaluated immediately, the port is not suspended until the current transaction (if one
is executing) completes. Therefore, there may be several micro-frames of activity on the port until the host
controller evaluates the Suspend bit. The host controller must evaluate the Suspend bit at least every frame
boundary.
System software can initiate a resume on the suspended port by writing a one to PORTSC[FPR]. Software
should not attempt to resume a port unless the port reports that it is in the suspended state. If system
software sets PORTSC[FPR] when the port is not in the suspended state, the resulting behavior is
undefined. In order to assure proper USB device operation, software must wait for at least 10 milliseconds
after a port indicates that it is suspended (Suspend bit is a one) before initiating a port resume through
PORTSC[FPR]. When PORTSC[FPR] is set, the host controller sends resume signaling down the port.
System software times the duration of the resume (nominally 20 milliseconds) then clears PORTSC[FPR].
When the host controller receives the write to transition PORTSC[FPR] to zero, it completes the resume
sequence as defined in the USB specification, and clears both PORTSC[FPR] and PORTSC[SUSP].
Software-initiated port resumes do not affect the port change detect bit (USBSTS[PCI]) nor do they cause
an interrupt if USBINTR[PCE] (port change interrupt enable) is a one. When a wake event occurs on a
suspended port, the resume signaling is detected by the port and the resume is reflected downstream within
100 µsec. The port's PORTSC[FPR] bit is set and USBSTS[PCI] is set. If USBINTR[PCE] is a one, the
host controller issues a hardware interrupt.
System software observes the resume event on the port, delays a port resume time (nominally 20
milliseconds), then terminates the resume sequence by clearing PORTSC[FPR] in the port. The host
controller receives the write of zero to PORTSC[FPR], terminates the resume sequence and clears
PORTSC[FPR] and PORTSC[SUSP]. Software can determine that the port is enabled (not suspended) by
sampling the PORTSC register and observing that the SUSP and FPR bits are zero. Software must ensure
that the host controller is running (that is, USBSTS[HCH] is a zero), before terminating a resume by
clearing the port's PORTSC[FPR] bit. If HCH is a one when PORTSC[FPR] is cleared, then SOFs will not
occur down the enabled port and the device will return to suspend mode in a maximum of 10 milliseconds.
Table 16-64
summarizes the wake-up events. Whenever a resume event is detected, USBSTS[PCI] is set.
If USBINTR[PCE] (port change interrupt enable) is a one, the host controller also generates an interrupt
on the resume event. Software acknowledges the resume event interrupt by clearing the USBSTS[PCI].
MPC8313E PowerQUICC™ II Pro Integrated Processor Family Reference Manual, Rev. 2
16-70
Freescale Semiconductor

Advertisement

loading

This manual is also suitable for:

Mpc8313 powerquicc ii pro