1
LV24- v6 Development System
MikroElektronika
page
12.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 value into a 10-bit number. Potentiometers P3 and P4 enables 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 one of the
following pins (RB8 - RB15) to be supplied with A/D conversion voltage. Resistors R16 and R17 have a protective function and are
used to limit current flow through the potentiometer or the microcontroller pin.
Figure 12-1
: ADC (jumpers in default position)
Figure 12-2
: Pins RB8 and RB12 used as
input pins for A/D conversion
Figure 12-3
: Microcontroller and A/D converter test inputs connection schematic
NOTE:
In order to enable the microcontroller to accurately perform A/D conversion, it is necessary to turn off LEDs and pull-up or
pull-down resistors on the port pins used by the A/D converter.
A/D conversion is performed via RB8 and RB12 microcontroller pins