C8051F301-GSR Silicon Labs, C8051F301-GSR Datasheet - Page 36

no-image

C8051F301-GSR

Manufacturer Part Number
C8051F301-GSR
Description
8-bit Microcontrollers - MCU 8KB 2%osc MCU
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F301-GSR

Rohs
yes
Core
8051
Processor Series
C8051
Data Bus Width
8 bit
C8051F300/1/2/3/4/5
5.1.
The analog multiplexers (AMUX0) select the positive and negative inputs to the PGA, allowing any Port pin
to be measured relative to any other Port pin or GND. Additionally, the on-chip temperature sensor or the
positive power supply (V
negative input, ADC0 operates in Single-ended Mode; all other times, ADC0 operates in Differential
Mode. The ADC0 input channels are selected in the AMX0SL register as described in SFR Definition 5.1.
The conversion code format differs in Single-ended versus Differential modes, as shown below. When in
Single-ended Mode (negative input is selected GND), conversion codes are represented as 8-bit unsigned
integers. Inputs are measured from ‘0’ to VREF x 255/256. Example codes are shown below.
When in Differential Mode (negative input is not selected as GND), conversion codes are represented as
8-bit signed 2s complement numbers. Inputs are measured from –VREF to VREF x 127/128. Example
codes are shown below.
Important Note About ADC0 Input Configuration: Port pins selected as ADC0 inputs should be config-
ured as analog inputs and should be skipped by the Digital Crossbar. To configure a Port pin for analog
input, set to ‘0’ the corresponding bit in register P0MDIN. To force the Crossbar to skip a Port pin, set to ‘1’
the corresponding bit in register XBR0. See
I/O configuration details.
The PGA amplifies the AMUX0 output signal as defined by the AMP0GN1-0 bits in the ADC0 Configuration
register (SFR Definition 5.2). The PGA is software-programmable for gains of 0.5, 1, 2, or 4. The gain
defaults to 0.5 on reset.
5.2.
The typical temperature sensor transfer function is shown in Figure 5.2. The output voltage (V
positive PGA input when the temperature sensor is selected by bits AMX0P2-0 in register AMX0SL; this
voltage will be amplified by the PGA according to the user-programmed PGA settings.
36
Analog Multiplexer and PGA
Temperature Sensor
VREF x 127/128
–VREF x 64/128
VREF x 255/256
VREF x 128/256
VREF x 64/128
VREF x 64/256
Input Voltage
Input Voltage
DD
–VREF
) may be selected as the positive PGA input. When GND is selected as the
0
0
Section “12. Port Input/Output” on page 103
ADC0 Output (Conversion Code)
ADC0 Output (Conversion Code)
Rev. 2.9
0xFF
0xC0
0x80
0x40
0x00
0x7F
0x40
0x00
0x80
for more Port
TEMP
) is the

Related parts for C8051F301-GSR