12
BIGdsPIC6 Development System
MikroElektronika
page
6.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 enable voltage to vary between 0 and 5V. The microcontroller
with a built-in A/D converter is supplied with this voltage via test inputs. Jumpers J16 and J17 are used for selecting one of the
following pins RB8 - RB15 to be supplied with A/D conversion voltage. Resistors R28 and R29 have a protective function and are used
WROLPLWFXUUHQWÀRZWKURXJKWKHSRWHQWLRPHWHURUWKHPLFURFRQWUROOHUSLQ
)LJXUH
: ADC (jumpers in default position)
)LJXUH
: Pins RB8 and RB12 used as
input pins for A/D conversion
)LJXUH
: 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.
$'FRQYHUVLRQLVSHUIRUPHGYLD5%DQG5%PLFURFRQWUROOHUSLQV