C8051F340/1/2/3/4/5/6/7

5.10-Bit ADC (ADC0)

The ADC0 subsystem for the C8051F340/1/2/3/4/5/6/7 consists of two analog multiplexers (referred to col- lectively as AMUX0), and a 200 ksps, 10-bit successive-approximation-register ADC with integrated track-and-hold and programmable window detector. The AMUX0, data conversion modes, and window detector are all configured under software control via the Special Function Registers shown in Figure 5.1. ADC0 operates in both Single-ended and Differential modes, and may be configured to measure voltages at port pins, the Temperature Sensor output, or VDD with respect to a port pin, VREF, or GND. The connec- tion options for AMUX0 are detailed in SFR Definition 5.1 and SFR Definition 5.2. The ADC0 subsystem is enabled only when the AD0EN bit in the ADC0 Control register (ADC0CN) is set to logic 1. The ADC0 sub- system is in low power shutdown when this bit is logic 0.

Port I/O

Pins*

Positive

AMX0P

 

 

 

AMX0P4

AMX0P3

AMX0P2

AMX0P1

AMX0P0

 

 

 

 

 

 

 

 

ADC0CN

AD0EN

AD0TM

AD0INT

AD0BUSY

AD0WINT

AD0CM2

AD0CM1

AD0CM0

VDD

Start

Conversion

000

AD0BUSY (W)

001

Timer 0 Overflow

VDD

Input

010

Timer 2 Overflow

(AIN+)

AMUX

Temp

Sensor

Port I/O

Pins*

Negative

10-Bit

AIN+

SAR

AIN- ADC

ADC0H ADC0L

011

 

 

Timer 1 Overflow

100

 

 

CNVSTR Input

 

101

 

 

Timer 3 Overflow

 

 

VREF

Input

(AIN-)

AMUX

GND

*21 Selections on 32-pin package

20 Selections on 48-pin package

 

 

 

AMX0N4

AMX0N3

AMX0N2

AMX0N1

AMX0N0

 

 

 

 

 

 

 

 

AMX0N

AD0WINT

 

 

 

 

 

Window

AD0SC4

AD0SC3

AD0SC2 AD0SC1 AD0SC0 AD0LJST

 

32

Compare

ADC0LTH

Logic

 

 

 

ADC0LTL

 

 

 

ADC0CF

ADC0GTH

ADC0GTL

 

Figure 5.1. ADC0 Functional Block Diagram

Rev. 0.5

41

Page 41
Image 41
Silicon Laboratories C8051F346, C8051F347, C8051F341, C8051F343, C8051F340 Bit ADC ADC0, ADC0 Functional Block Diagram