Freelance Electronics Components Distributor
Closed Dec 25th-26th
800-300-1968
We Stock Hard to Find Parts

C8051F321-GMR

Part # C8051F321-GMR
Description 16KB,10ADC,USB,28PIN MCU (LEAD FREE) MLP28 -40 TO 85 DEG.
Category IC
Availability In Stock
Qty 560
Qty Price
1 - 24 $10.41286
25 - 60 $8.28296
61 - 128 $7.80964
129 - 275 $7.25745
276 + $6.46859
Manufacturer Available Qty
SILICON LABS
Date Code: 0603
  • Shipping Freelance Stock: 560
    Ships Immediately



Technical Document


DISCLAIMER: The information provided herein is solely for informational purposes. Customers must be aware of the suitability of this product for their application, and consider that variable factors such as Manufacturer, Product Category, Date Codes, Pictures and Descriptions may differ from available inventory.

Note: This document assumes a comprehensive understanding of the USB Protocol. Terms and abbreviations used
in this document are defined in the USB Specification. We encourage you to review the latest version of the
USB Specification before proceeding.
*Note: The C8051F320/1 cannot be used as a USB Host device.
Rev. 1.4 139
C8051F320/1
15. Universal Serial Bus Controller (USB)
C8051F320/1 devices include a complete Full/Low Speed USB function for USB peripheral implementa-
tions*. The USB Function Controller (USB0) consists of a Seri
al Interface Engine (SIE), USB Transceiver
(including matching resistors and configurable pull-up resistors), 1k FIFO block, and clock recovery mech-
anism for crystal-less operation. No external componen
ts are required. The USB Function Controller and
Transceiver is Universal Serial Bus Specification 2.0 compliant.
Transceiver Serial Interface Engine (SIE)
USB FIFOs
(1k RAM)
D+
D-
VDD
Endpoint0
IN/OUT
Endpoint1
IN OUT
Endpoint2
IN OUT
Endpoint3
IN OUT
Data
Transfer
Control
CIP-51 Core
USB
Control,
Status, and
Interrupt
Registers
Figure 15.1. USB0 Block Diagram
C8051F320/1
140 Rev. 1.4
15.1. Endpoint Addressing
A total of eight endpoint pipes are available. The control endpoint (Endpoint0) always functions as a
bi-directional IN/OUT endpoint. The other endpoints are implemented as three pairs of IN/OUT endpoint
pipes:
15.2. USB Transceiver
The USB Transceiver is configured via the USB0XCN register shown in Figure 15.1. This configuration
includes Transceiver enable/disable, p
ull-up resistor enable/disable, and device speed selection (Full or
Low Speed). When bit SPEED = ‘1’, USB0 operates as a Full Speed USB function, and the on-chip pull-up
resistor (if enabled) appears on the D+ pin. When bit SPEED = ‘0’, USB0 operates as a Low Speed USB
function, and the on-chip pull-up resistor (if enabled) appears on the D- pin. Bits4-0 of register USB0XCN
can be used for Transceiver testing as described in Figure 15.1. The pull-up resistor is enabled only when
VBUS is present (see Section “8.2. VBUS Detection” on page 67 for details on VBUS detection).
Note: The USB clock should be active before the Transceiver is enabled.
Table 15.1. Endpoint Addressing Scheme
Endpoint Associated Pipes USB Protocol Address
Endpoint0
Endpoint0 IN 0x00
Endpoint0 OUT 0x00
Endpoint1
Endpoint1 IN 0x81
Endpoint1 OUT 0x01
Endpoint2
Endpoint2 IN 0x82
Endpoint2 OUT 0x02
Endpoint3
Endpoint3 IN 0x83
Endpoint3 OUT 0x03
Rev. 1.4 141
C8051F320/1
SFR Definition 15.1. USB0XCN: USB0 Transceiver Control
Bit7: PREN: Internal Pull-up Resistor Enable
The location of the pull-up resistor (D+ or D–) is determined by the SPEED bit.
0: Internal pull-up resistor disabled (device effectively detached from the USB network).
1: Internal pull-up resistor enabled when VBUS is present (device attached to the USB net-
work).
Bit6: PHYEN: Physical Layer Enable
This bit enables/disables the USB0 physical layer transceiver.
0: Transceiver disabled (suspend).
1: Transceiver enabled (normal).
Bit5: SPEED: USB0 Speed Select
This bit selects the USB0 speed.
0: USB0 operates as a Low Speed device. If enabled, the internal pull-up resistor appears
on the D– line.
1: USB0 operates as a Full Speed device. If enabled, the internal pull-up resistor appears on
the D+ line.
Bits4–3: PHYTST1–0: Physical Layer Test
These bits can be used to test the USB0 transceiver.
Bit2: DFREC: Differential Receiver
The state of this bit indicates the current differential value present on the D+ and D– lines
when PHYEN = ‘1’.
0: Differential ‘0’ signaling on the bus.
1: Differential ‘1’ signaling on the bus.
Bit1: Dp: D+ Signal Status
This bit indicates the current logic level of the D+ pin.
0: D+ signal currently at logic 0.
1: D+ signal currently at logic 1.
Bit0: Dn: D- Signal Status
This bit indicates the current logic level of the D– pin.
0: D– signal currently at logic 0.
1: D– signal currently at logic 1.
R/W R/W R/W R/W R/W R R R Reset Value
PREN PHYEN SPEED PHYTST1 PHYTST0 DFREC Dp Dn 00000000
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 SFR Address:
0xD7
PHYTST[1:0] Mode D+ D–
00b Mode 0: Normal (non-test mode) X X
01b Mode 1: Differential ‘1’ Forced 1 0
10b Mode 2: Differential ‘0’ Forced 0 1
11b Mode 3: Single-Ended ‘0’ Forced 0 0
PREVIOUS4041424344454647484950515253NEXT