C8051F060/1/2/3/4/5/6/7
1.9. 10-Bit Analog to Digital Converter
The C8051F060/1/2/3 devices have an on-board 10-bit SAR ADC (ADC2) with a 9-channel input multi-
plexer and programmable gain amplifier. This ADC features a 200 ksps maximum throughput and true 10-
bit performance with an INL of ±1LSB. Eight input pins are available for measurement and can be pro-
grammed as single-ended or differential inputs. Additionally, the on-chip temperature sensor can be used
as an input to the ADC. The ADC is under full control of the CIP-51 microcontroller via the Special Function
Registers. The ADC2 voltage reference is selected between the analog power supply (AV+) and the exter-
nal VREF2 pin. User software may put ADC2 into shutdown mode to save power.
A flexible conversion scheduling system allows ADC2 conversions to be initiated by software commands,
timer overflows, or an external input signal. Conversion completions are indicated by a status bit and an
interrupt (if enabled), and the resulting 10-bit data word is latched into two SFR locations upon completion.
ADC2 also contains Window Compare registers, which can be configured to interrupt the controller when
ADC2 data is within or outside of a specified range. ADC2 can monitor a key voltage continuously in back-
ground mode, and not interrupt the controller unless the converted data is within the specified window.
Analog Multiplexer
AIN2.0
AIN2.1
AIN2.2
AIN2.3
AIN2.4
AIN2.5
AIN2.6
AIN2.7
TEMP
SENSOR
9-to-1
AMUX
AGND
Single-ended or
Differential Measurement
Configuration and Control Registers
VREF2 Pin
AV+
10-Bit
SAR
ADC
ADC2
10
Window
Compare
Logic
10
ADC Data
Registers
Conversion
Complete
Interrupt
VREF Start Conversion
Write to AD2BUSY
Timer 3 Overflow
CNVSTR2 Input
Timer 2 Overflow
Figure 1.13. 10-Bit ADC Diagram
34
Rev. 1.2