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

C8051F041-GQ

Part # C8051F041-GQ
Description MCU 8BIT CISC 64KB FLASH 3V 64TQFP - Trays
Category IC
Availability In Stock
Qty 2
Qty Price
1 + $20.05559
Manufacturer Available Qty
SILICON LABORATORIES
Date Code: 0903
  • Shipping Freelance Stock: 2
    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.

C8051F040/1/2/3/4/5/6/7
76 Rev. 1.5
6.3. ADC Modes of Operation
ADC0 has a maximum conversion speed of 100 ksps. The ADC0 conversion clock is derived from the sys-
tem clock divided by the value held in the ADC0SC bits of register ADC0CF.
6.3.1. Starting a Conversion
A conversion can be initiated in one of four ways, depending on the programmed states of the ADC0 Start
of Conversion Mode bits (AD0CM1, AD0CM0) in ADC0CN. Conversions may be initiated by the following:
Writing a ‘1’ to the AD0BUSY bit of ADC0CN;
A Timer 3 overflow (i.e., time
d continuous conversions);
A rising edge detected on the external ADC convert start signal, CNVSTR0;
A Timer 2 overflow (i.e., time
d continuous conversions).
The AD0BUSY bit is set to logic 1 during conversion and re
stored to logic 0 when conversion is complete.
The falling edge of AD0BUSY triggers an interrupt (when enabled) and sets the AD0INT interrupt flag
(ADC0CN.5). Converted data is available in the ADC0 data word MSB and LSB registers, ADC0H, ADC0L.
Converted data can be either left or right justified in the ADC0H:ADC0L register pair (see example in
Figure 6.7) depending on the programmed state of the AD0LJST bit in the ADC0CN register.
When initiating conversions by writing a ‘1’ to AD0BUSY, the AD0INT bit should be polled to determine
when a conversion has completed (ADC0 interrupts may also be used). The recommended polling proce-
dure is shown below.
Step 1. Write a ‘0’ to AD0INT;
Step 2. Write a ‘1’ to AD0BUSY;
Step 3. Poll AD0INT for ‘1’;
Step 4. Process ADC0 data.
6.3.2. Tracking Modes
According to Table 6.2, each ADC0 conversion must be preceded by a minimum tracking time for the con-
verted result to be accurate. The AD0TM bit in register ADC0CN controls the ADC0 track-and-hold mode.
In its default state, the ADC0 input is continuously tracked when a conversion is not in progress. When the
AD0TM bit is logic 1, ADC0 operates in low-power tracking mode. In this mode, each conversion is pre-
ceded by a tracking period of 3 SAR clocks after the start-of-conversion signal. When the CNVSTR0 signal
is used to initiate conversions in low-power tracking mode, ADC0 tracks only when CNVSTR0 is low; con-
version begins on the rising edge of CNVSTR0 (see Figure 6.4). Tracking can also be disabled when the
entire chip is in low power standby or sleep modes. Low-power tracking mode is also useful when AMUX
or PGA settings are frequently changed, to ensure that settling time requirements are met (see Section
“6.3.3. Settling Time Requirements” on page 78).
C8051F040/1/2/3/4/5/6/7
Rev. 1.5 77
Figure 6.4. 10-Bit ADC Track and Conversion Example Timing
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
CNVSTR
(AD0CM[1:0]=10)
ADC0TM=1
ADC0TM=0
Timer 2, Timer 3 Overflow;
Write '1' to AD0BUSY
(AD0CM[1:0]=00, 01, 11)
ADC0TM=1
ADC0TM=0
A. ADC Timing for External Trigger Source
B. ADC Timing for Internal Trigger Sources
SAR
Clocks
SAR
Clocks
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
123456789
1
0
1
1
1
2
1
3
1
4
1
5
1
6
SAR
Clocks
Track Convert Low Power Mode
Low Power
or Convert
Track Or Convert Convert Track
Track Convert Low Power Mode
Low Power
or Convert
Track or
Convert
Convert Track
C8051F040/1/2/3/4/5/6/7
78 Rev. 1.5
6.3.3. Settling Time Requirements
A minimum tracking time is required before an accurate conversion can be performed. This tracking time is
determined by the ADC0 MUX resistance, the ADC0 sampling capacitance, any external source resis-
tance, and the accuracy required for the conversion. Figure 6.5 shows the equivalent ADC0 input circuits
for both Differential and Single-ended modes. Notice that the equivalent time constant for both input cir-
cuits is the same. The required settling time for a given settling accuracy (SA) may be approximated by
Equation 6.2. When measuring the Temperature Sensor output, R
TOTAL
reduces to R
MUX
. Note that in low-
power tracking mode, three SAR clocks are used for tracking at the start of every conversion. For most
applications, these three SAR clocks will meet the tracking requirements. See Table 6.2 for absolute mini-
mum settling/tracking time requirements.
Equation 6.2. ADC0 Settling Time Requirements
Where:
SA is the
settling accuracy, given as a fraction of an LSB (for example, 0.25 to settle within 1/4 LSB)
t is the r
equired settling time in seconds
R
TOTAL
is the sum of the ADC0 MUX resistance and any external source resistance.
n is the AD
C resolution in bits (10).
Figure 6.5. ADC0 Equivalent Input Circuits
t
2
n
SA
-------


R
TOTAL
C
SAMPLE
ln=
R
MUX
= 5k
RC
Input
= R
MUX
* C
SAMPLE
R
MUX
= 5k
C
SAMPLE
= 10pF
C
SAMPLE
= 10pF
MUX Select
MUX Select
Differential Mode
AIN0.x
AIN0.y
R
MUX
= 5k
C
SAMPLE
= 10pF
RC
Input
= R
MUX
* C
SAMPLE
MUX Select
Single-Ended Mode
AIN0.x
PREVIOUS1920212223242526272829303132NEXT