Universal Serial Bus Interface
MCF5253 Reference Manual, Rev. 1
Freescale Semiconductor
24-117
allow port testing with the Run/Stop bit set. However, all host controllers must support port testing
with Run/Stop cleared and HCHalted set.
•
Set the Port Test Control field in the port under test PORTSC register to the value corresponding
to the desired test mode. If the selected test is Test_Force_Enable, then the Run/Stop bit in the
USBCMD register must then be transitioned back to one, in order to enable transmission of SOFs
out of the port under test.
•
When the test is complete, the system software must ensure the host controller is halted (HCHalted
bit is a one) then it terminates and exits test mode by setting HCReset.
24.9.14 Interrupts
The EHCI host controller hardware provides interrupt capability based on a number of sources. There are
several general groups of interrupt sources:
•
Interrupts as a result of executing transactions from the schedule (success and error conditions),
•
Host controller events (Port change events, etc.), and
•
Host controller error events
All transaction-based sources are maskable through the host controller's Interrupt Enable register
(USBINTR). Additionally, individual transfer descriptors can be marked to generate an interrupt on
completion. This section describes each interrupt source and the processing that occurs in response to the
interrupt.
During normal operation, interrupts may be immediate or deferred until the next interrupt threshold occurs.
The interrupt threshold is a tunable parameter via the Interrupt Threshold Control field in the USBCMD
register. The value of this register controls when the host controller generates an interrupt on behalf of
normal transaction execution. When a transaction completes during an interrupt interval period, the
interrupt signaling the completion of the transfer will not occur until the interrupt threshold occurs. For
example, the default value is eight micro-frames. This means that the host controller will not generate
interrupts any more frequently than once every eight micro-frames.
Section 24.9.14.2.4, “Host System Error”
details effects of a host system error.
If an interrupt has been scheduled to be generated for the current interrupt threshold interval, the interrupt
is not signaled until after the status for the last complete transaction in the interval has been written back
to system memory. This may sometimes result in the interrupt not being signaled until the next interrupt
threshold.
Initial interrupt processing is the same, regardless of the reason for the interrupt. When an interrupt is
signaled by the hardware, CPU control is transferred to host controller's USB interrupt handler. The precise
mechanism to accomplish the transfer is OS specific. For this discussion it is just assumed that control is
received. When the interrupt handler receives control, its first action is to reads the USBSTS. It then
acknowledges the interrupt by clearing all of the interrupt status bits by writing ones to these bit positions.
The handler then determines whether the interrupt is due to schedule processing or some other event. After
acknowledging the interrupt, the handler (via an OS-specific mechanism), schedules a deferred procedure
call (DPC) which will execute later. The DPC routine processes the results of the schedule execution. The
precise mechanisms used are beyond the scope of this document.
Summary of Contents for MCF5253
Page 1: ...Document Number MCF5253RM Rev 1 08 2008 MCF5253 Reference Manual...
Page 26: ...MCF5253 Reference Manual Rev 1 xxvi Freescale Semiconductor...
Page 32: ...MCF5253 Reference Manual Rev 1 xxxii Freescale Semiconductor...
Page 46: ...MCF5253 Introduction MCF5253 Reference Manual Rev 1 1 14 Freescale Semiconductor...
Page 62: ...Signal Description MCF5253 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Page 98: ...Instruction Cache MCF5253 Reference Manual Rev 1 5 10 Freescale Semiconductor...
Page 104: ...Static RAM SRAM MCF5253 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Page 128: ...Synchronous DRAM Controller Module MCF5253 Reference Manual Rev 1 7 24 Freescale Semiconductor...
Page 144: ...Bus Operation MCF5253 Reference Manual Rev 1 8 16 Freescale Semiconductor...
Page 176: ...System Integration Module SIM MCF5253 Reference Manual Rev 1 9 32 Freescale Semiconductor...
Page 198: ...Analog to Digital Converter ADC MCF5253 Reference Manual Rev 1 12 6 Freescale Semiconductor...
Page 246: ...DMA Controller MCF5253 Reference Manual Rev 1 14 18 Freescale Semiconductor...
Page 282: ...UART Modules MCF5253 Reference Manual Rev 1 15 36 Freescale Semiconductor...
Page 344: ...Audio Interface Module AIM MCF5253 Reference Manual Rev 1 17 46 Freescale Semiconductor...
Page 362: ...I2 C Modules MCF5253 Reference Manual Rev 1 18 18 Freescale Semiconductor...
Page 370: ...Boot ROM MCF5253 Reference Manual Rev 1 19 8 Freescale Semiconductor...