![](http://datasheet.mmic.net.cn/30000/MCF5272CVF66_datasheet_2373703/MCF5272CVF66_277.png)
MOTOROLA
Chapter 12. Universal Serial Bus (USB)
12-17
Register Description and Programming Model
Table 12-12 lists eld descriptions for the USB endpoint 0 control register.
Table 12-12. EP0CTL Field Descriptions
Bits
Name
Description
31–19
—
Reserved, should be cleared.
18
DEBUG
Debug mode. Enters debug mode. Debug mode enables CRC error generation and
notication of a change of address.
0 Normal operation
1 Enable debug mode functions
17
WOR_LVL
Wake-on-ring level select. Selects the active level of INT1 for the wake-on-ring function.
0 Wake-on-ring function is invoked when INT1 pin is 0.
1 Wake-on-ring function is invoked when INT1 pin is 1.
16
WOR_EN
Wake-on-ring enable. Generates a RESUME when the active level is detected on INT1
pin.
0 Wake-on-ring function disabled
1 Wake-on-ring function enabled
Note: the wake-on-ring function generates a RESUME only if the USB module is enabled
for remote wakeup by the host, for example, WAKE_ST = 1, and is suspended.
15
CLK_SEL
Clock source selection. Overrides the clock source for the USB module. If the
USB_ExtCLK pin is selected after reset, setting this bit forces the USB module to use the
internal system clock.
0 Clock is retrieved from the clock selected at reset.
1 Clock is retrieved from the internal system clock.
Note: the selected clock must have a frequency of 48 MHz.
14
RESUME
Generates RESUME condition. Used to exit the SUSPEND state. The USB control logic
ensures the forced resume duration is greater than 10 ms. This command bit is write-only
and always returns 0 when read.
0 Default
1 Generate RESUME condition (force data lines to K state)
Note: this command generates a RESUME only if the USB is both suspended and
enabled for remote wakeup by the host, that is, USBEPSR0[WAKE_ST] = 1.
13
AFE_EN
External USB analog front-end enable. Used to select the internal or external USB
analog front end (AFE). The internal AFE is selected by default.
0 The USB internal AFE is powered up and the external transceiver interface is disabled.
The driven outputs can be observed on the parallel port A signals if they are congured
for USB.
1 The USB internal AFE is powered down and the external transceiver interface is
enabled. The internal transceiver outputs, (USBH and USBL), are high impedance.
12
BUS_PWR
Select bus-powered mode. Used to select between bus-powered and self-powered
mode. This bit only affects the response to a GET_STATUS device request. This bit
should be set according to the current conguration.
0 Self-powered mode
1 Bus-powered mode
11
USB_EN
Enables and disables the USB control logic. Has no effect on USB register values. When
cleared, the outputs are high impedance, preventing any response to the host. This bit
should be set after USB module registers are initialized and the descriptors are copied
into the conguration RAM.
0 Disable USB module
1 Enable USB module