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.

GND
/PORT-OUTENABLE
PORT-OUTPUT
PUSH-PULL
VDD
VDD
/WEAK-PULLUP
(WEAK)
PORT
PAD
ANALOG INPUT
Analog Select
PORT-INPUT
Rev. 1.4 127
C8051F320/1
Figure 14.2. Port I/O Cell Block Diagram
C8051F320/1
128 Rev. 1.4
14.1. Priority Crossbar Decoder
The Priority Crossbar Decoder (Figure 14.3) assigns a priority to each I/O function, starting at the top with
UART0. When a digital resource is selected, the least-
significant unassigned Port pin is assigned to that
resource (excluding UART0, which is always at pins 4 and 5). If a Port pin is assigned, the Crossbar skips
that pin when assigning the next selected resource. Additionally, the Crossbar will skip Port pins whose
associated bits in the PnSKIP registers are set. The PnSKIP registers allow software to skip Port pins that
are to be used for analog input, dedicated functions, or GPIO.
Important Note on Crossbar Configuration: I
f a Port pin is claimed by a peripheral without use of the
Crossbar, its corresponding PnSKIP bit should be set. This applies to P0.7 if VREF is used, P0.3 and/or
P0.2 if the external oscillator circuit is enabled, P0.6 if the ADC is configured to use the external conversion
start signal (CNVSTR), and any selected ADC or Comparator inputs. The Crossbar skips selected pins as
if they were already assigned, and moves to the next unassigned pin. Figure 14.3 shows the Crossbar
Decoder priority with no Port pins skipped (P
0SKIP, P1SKIP, P2SKIP = 0x00); Figure 14.4 shows the
Crossbar Decoder priority with the XTAL1 (P0.2
) and XTAL2 (P0.3) pins skipped (P0SKIP = 0x0C).
Figure 14.3. Crossbar Priority Decoder with No Pins Skipped
XTAL1
XTAL2
CNVSTR
VREF
012345670123456701234567
SCK
MISO
MOSI
NSS*
*NSS is only pinned out in 4-wire SPI mode
CP0
CP0A
CP1
00000000000000000000
Special Function Signals are not assigned by the Crossbar. When these signals are enabled, the Crossbar must
be manually configured to skip their corresponding port pins.
Port pin potentially available to peripheral
SF Signals
ECI
T0
T1
P0SKIP[0:7] P2SKIP[0:3]
Signals Unavailable
SF Signals
PIN I/O
TX0
RX0
SDA
SCL
P0 P2
CEX3
CEX4
P1SKIP[0:7]
P1
CP1A
CEX2
CEX0
CEX1
SYSCLK
Rev. 1.4 129
C8051F320/1
Figure 14.4. Crossbar Priority Decoder with Crystal Pins Skipped
Registers XBR0 and XBR1 are used to assign the digital I/O resources to the physical I/O Port pins. Note
that when the SMBus is selected, the Crossbar assigns both pins associated with the SMBus (SDA and
SCL); when the UART is selected, the Crossbar assigns both pins associated with the UART (TX and RX).
UART0 pin assignments are fixed for bootloading purposes: UART TX0 is always assigned to P0.4; UART
RX0 is always assigned to P0.5. Standard Port I/Os appear contiguously after the prioritized functions
have been assigned.
Important Note: Th
e SPI can be operated in either 3-wire or 4-wire modes, depending on the state of the
NSSMD1-NSSMD0 bits in register SPI0CN. According to the SPI mode, the NSS signal may or may not be
routed to a Port pin.
XTAL1
XTAL2
CNVSTR
VREF
012345670123456701234567
SCK
MISO
MOSI
NSS*
*NSS is only pinned out in 4-wire SPI mode
CP0
CP0A
CP1
00110000000000000000
Special Function Signals are not assigned by the Crossbar. When these signals are enabled, the Crossbar must
be manually configured to skip their corresponding port pins.
Port pin potentially available to peripheral
SF Signals
ECI
T0
T1
P0SKIP[0:7] P2SKIP[0:3]P1SKIP[0:7]
SF Signals
PIN I/O
TX0
RX0
SDA
SCL
P0 P1 P2
CP1A
CEX3
CEX4
Signals Unavailable
CEX2
CEX0
CEX1
SYSCLK
PREVIOUS3637383940414243444546474849NEXT