English
Language : 

C8051F340-GQR Datasheet, PDF (166/276 Pages) Silicon Laboratories – Full Speed USB Flash MCU Family
C8051F340/1/2/3/4/5/6/7/8/9/A/B/C/D
16.4. USB Clock Configuration
USB0 is capable of communication as a Full or Low Speed USB function. Communication speed is
selected via the SPEED bit in SFR USB0XCN. When operating as a Low Speed function, the USB0 clock
must be 6 MHz. When operating as a Full Speed function, the USB0 clock must be 48 MHz. Clock options
are described in Section “14. Oscillators” on page 131. The USB0 clock is selected via SFR CLKSEL
(see SFR Definition 14.6).
Clock Recovery circuitry uses the incoming USB data stream to adjust the internal oscillator; this allows
the internal oscillator (and 4x Clock Multiplier) to meet the requirements for USB clock tolerance. Clock
Recovery should be used in the following configurations:
Communication Speed
Full Speed
Low Speed
USB Clock
4x Clock Multiplier
Internal Oscillator / 2
4x Clock Multiplier Input
Internal Oscillator
N/A
When operating USB0 as a Low Speed function with Clock Recovery, software must write ‘1’ to the
CRLOW bit to enable Low Speed Clock Recovery. Clock Recovery is typically not necessary in Low Speed
mode.
Single Step Mode can be used to help the Clock Recovery circuitry to lock when high noise levels are pres-
ent on the USB network. This mode is not required (or recommended) in typical USB environments.
USB Register Definition 16.5. CLKREC: Clock Recovery Control
R/W
R/W
R/W
R/W
CRE CRSSEN CRLOW
Bit7
Bit6
Bit5
Bit4
R/W
R/W
R/W
Reserved
Bit3
Bit2
Bit1
R/W
Reset Value
00001001
Bit0 USB Address:
0x0F
Bit7:
Bit6:
Bit5:
Bits4–0:
CRE: Clock Recovery Enable.
This bit enables/disables the USB clock recovery feature.
0: Clock recovery disabled.
1: Clock recovery enabled.
CRSSEN: Clock Recovery Single Step.
This bit forces the oscillator calibration into ‘single-step’ mode during clock recovery.
0: Normal calibration mode.
1: Single step mode.
CRLOW: Low Speed Clock Recovery Mode.
This bit must be set to ‘1’ if clock recovery is used when operating as a Low Speed USB
device.
0: Full Speed Mode.
1: Low Speed Mode.
Reserved. Read = Variable. Must Write = 01001b.
Note: The USB transceiver must be enabled before enabling Clock Recovery.
166
Rev. 1.3