Datasheet

12
Easy24-33 v6 Development System
MikroElektronika
page
7.0. A/D Converter Test Inputs
An A/D converter is used for converting an analog voltage into the appropriate digital value. The A/D converter is linear, which means
that converted number is linearly dependent on the input voltage value. The A/D converter built into the microcontroller converts an
analog voltage into a 10-bit number. Potentiometers P1 and P2 enable voltage to vary between 0 and 3.3V. The microcontroller with
a built-in A/D converter is supplied with this voltage via test inputs. Jumpers J14 and J15 are used for selecting either RB0 - RB3 or
RA0 - RA3 pins to be supplied with A/D conversion voltage. Resistors R63 and R64 have a protective function and are used to limit
FXUUHQWÀRZWKURXJKWKHSRWHQWLRPHWHURUWKHPLFURFRQWUROOHUSLQ
Figure 7-1: A/D converter (jumpers in default
position)
Figure 7-2: Pins RA0 and RB0 used as
input pins for A/D conversion
Figure 7-3: A/D converter test inputs and microcontroller connection schematic
127( In order to enable the microcontroller to accurately perform A/D conversion, it is necessary to turn off LEDs and pull-up/
pull-down resistors on the port pins used by the A/D converter.
A/D conversion is performed via RB0 and RA0 microcontroller pins