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.

C8051F320/1
40 Rev. 1.4
5.1. Analog Multiplexer
AMUX0 selects the positive and negative inputs to the ADC. Any of the following may be selected as the
positive input: P1.0-P3.0, the on-chip temperature sensor, or the positive power supply (V
DD
). Any of the
following may be selected as the negative input: P1.0-P3.0, VREF, or GND. When GND is selected as
the negative input, ADC0 operates in Single-ended Mode; all other times, ADC0 operates in Differ-
ential Mode.
The ADC0 input channels are selected in the AMX0P and AMX0N registers as described in
Figure 5.2 and Figure 5.2.
The conversion code format differs between Single-en
ded and Differential modes. The registers ADC0H
and ADC0L contain the high and low bytes of the output conversion code from the ADC at the completion
of each conversion. Data can be right-justified or left-justified, depending on the setting of the AD0LJST bit
(ADC0CN.0). When in Single-ended Mode, conversion codes are represented as 10-bit unsigned integers.
Inputs are measured from ‘0’ to VREF x 1023/1024. Example codes are shown below for both right-justi-
fied and left-justified data. Unused bits in the ADC0H and ADC0L registers are set to ‘0’.
When in Differential Mode, conversion codes are represented as 10-bit signed 2’s complement numbers.
Inp
uts are measured from –VREF to VREF x 511/512. Example codes are shown below for both right-jus-
tified and left-justified data. For right-justified data, the
unused MSBs of ADC0H are a sign-extension of the
data word. For left-justified data, the unused LSBs in the ADC0L register are set to ‘0’.
Important Note About ADC0 Input Configuration: Por
t pins selected as ADC0 inputs should be config-
ured as analog inputs, and should be skipped by the Dig
ital Crossbar. To configure a Port pin for analog
input, set to ‘0’ the corresponding bit in register PnMDIN (for n = 0,1,2,3). To force the Crossbar to skip a
Port pin, set to ‘1’ the corresponding bit in register PnSKIP (for n = 0,1,2). See Section “14. Port Input/Out-
put” on page 126 for more Port I/O configuration details.
Input Voltage
(
Single-Ended)
Right-Justified ADC0H:ADC0L
(AD0LJST = 0)
Left-Justified ADC0H:ADC0L
(AD0LJST = 1)
VREF x 1023/1024 0x03FF 0xFFC0
VREF x 512/1024 0x0200 0x8000
VREF x 256/1024 0x0100 0x4000
0 0x0000 0x0000
Input Voltage
(Differential)
Right-Justified ADC0H:ADC0L
(AD0LJST = 0)
Left-Justified ADC0H:ADC0L
(AD0LJST = 1)
VREF x 511/512 0x01FF 0x7FC0
VREF x 256/512 0x0100 0x4000
0 0x0000 0x0000
–VREF x 256/512 0xFF00 0xC000
–VREF 0xFE00 0x8000
Rev. 1.4 41
C8051F320/1
5.2. Temperature Sensor
The temperature sensor transfer function is shown in Figure 5.2. The output voltage (V
TEMP
) is the positive
ADC input when the temperature sensor is selected by bits AMX0P4-0 in register AMX0P. Values for the
Offset
and Slope parameters can be found in Table 5.1.
Temperature
Voltage
V
TEMP
= (Gain x Temp
C
) + Offset
Offset (V at 0 Celsius)
Gain (V / deg C)
Temp
C
= (V
TEMP
- Offset) / Gain
Figure 5.2. Temperature Sensor Transfer Function
The uncalibrated temperature sensor output is extremely linear and suitable for relative temperature mea-
surements (see Table 5.1 for linearity specifications). For absolute temper
ature measurements, offset and/
or gain calibration is recommended. Typically a 1-point (off
set) calibration includes the following steps:
Step 1. Control/measure the ambient temperature (
this temperature must be known).
Step 2. Power the device, and delay for a few seconds to allow for self-heating.
Step 3. Perform an ADC conversion with the temperature sensor selected as the positive input
and GND selected as the negative input.
Step 4. Calculate the offset characteristics, and store this value in non-volatile memory for use
with subsequent temperature sensor measurements.
Figure 5.3 shows the typical temperature sensor error
assumin
g a 1-point calibration at 25 °C. Note that
parameters which affect ADC measurement, in particular the voltage reference value, will also
aff
ect temperature measurement.
-40.00 -20.00
0.0
0
20.0
0
40.0
0
60.0
0
80.0
0
Temperature (degrees C)
Error (degrees C)
-5.00
-4.00
-3.00
-2.00
-1.00
0.0
0
1.0
0
2.0
0
3.0
0
4.0
0
5.0
0
-5.00
-4.00
-3.00
-2.00
-1.00
0.0
0
1.0
0
2.0
0
3.0
0
4.0
0
5.0
0
C8051F320/1
42 Rev. 1.4
Figure 5.3. Temperature Sensor Error with 1-Point Calibration (VREF = 2.40 V)
PREVIOUS7891011121314151617181920NEXT