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
52 Rev. 1.5
5.2. High-Voltage Difference Amplifier
The High Voltage Difference Amplifier (HVDA) can be used to measure high differential voltages up to 60 V
peak-to-peak, reject high common-mode voltages up to ±60 V, and condition the signal voltage range to be
suitable for input to ADC0. The input signal to the HVDA may be below AGND to –60 volts, and as high as
+60 volts, making the device suitable for both single and dual supply applications. The HVDA provides a
common-mode signal for the ADC via the High Voltage Reference Input (HVREF), allowing measurement
of signals outside the specified ADC input range using on-chip circuitry. The HVDA has a gain of 0.05 V/V
to 14 V/V. The first stage 20:1 difference amplifier has a gain of 0.05 V/V when the output amplifier is used
as a unity gain buffer. When the output amplifier is set to a gain of 280 (selected using the HVGAIN bits in
the High Voltage Control Register), an overall gain of 14 can be attained.
The HVDA uses four available external pins: +HVAIN, –HVAIN, HVCAP, and HVREF. HVAIN+ and HVAIN-
serve as the differential inputs to the HVDA. HVREF should be used to provide a common mode reference
for input to ADC0, and to prevent the output of the HVDA circuit from saturating. The output from the
HVDA circuit as calculated by Equation 5.1 must remain within the “Output Voltage Range” specification
listed in Table 5.3. The ideal value for HVREF in most applications is equal to 1/2 the supply voltage for the
device. When the ADC is configured for differential measurement, the HVREF signal is applied to the AIN-
input of the ADC, thereby removing HVREF from the measurement. HVCAP facilitates the use of a capac-
itor for noise filtering in conjunction with R7 (see Figure 5.3 for R7 and other approximate resistor values).
Alternatively, the HVCAP could also be used to access amplification of the first stage of the HVDA at an
external pin. (See Table 5.3 on page 68 for electrical specifications of the HVDA.)
Equation 5.1. Calculating HVDA Output Voltage to AIN+
Figure 5.3. High Voltage Difference Amplifier Functional Diagram
V
OUT
HVAIN+HVAIN-Gain HVREF+=
Note: The output voltage of the HVDA is selected as an input to the AIN+ input of ADC0 via its analog multiplexer
(AMUX0). HVDA output voltages outside the ADC’s input range will result in saturation of the ADC input. Allow
for adequate settle/tracking time for proper voltage measurements.

k
5k
100k
5k
HVA0CN
Gain Setting
HVAIN-
HVAIN+
HVREF
HVCAP
Vout
(To AMUX0)
5k
Resistor values are
approximate
C8051F040/1/2/3/4/5/6/7
Rev. 1.5 53
SFR Definition 5.4. HVA0CN: High Voltage Difference Amplifier Control
Bit7: HVDAEN: High Voltage Difference Amplifier (HVDA) Enable Bit.
0: The HVDA is disabled.
1: The HVDA is enabled.
Bits6-3: Reserved.
Bits2-0: HVGAIN3-HVGAIN0: HVDA Gain Control Bits.
HVDA Gain Control Bits set the amplification gain if the difference signal input to the HVDA
as defined in the table below:
R/W R R R R/W R/W R/W R/W Reset Value
HVDAEN - - - HVGAIN3 HVGAIN2 HVGAIN1 HVGAIN0 00000000
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
SFR Address:
SFR Page:
0xD6
0
HVGAIN3:HVGAIN0 HVDA Gain
0000 0.05
0001 0.1
0010 0.125
0011 0.2
0100 0.25
0101 0.4
0110 0.5
0111 0.8
1000 1.0
1001 1.6
1010 2.0
1011 3.2
1100 4.0
1101 6.2
1110 7.6
1111 14
C8051F040/1/2/3/4/5/6/7
54 Rev. 1.5
5.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.
5.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 5.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.
5.3.2. Tracking Modes
According to Table 5.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 5.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
“5.3.3. Settling Time Requirements” on page 56).
PREVIOUS1112131415161718192021222324NEXT