16
UNI-DS3 Development System
MikroElektronika
page
12.0.
$'&RQYHUWHU7HVW,QSXWV
An A/D converter is used for converting an analog signal into the appropriate digital value. A/D converter is linear, which means that
converted number is linearly dependent on the input voltage value. The MCP3204 circuit is used as an A/D converter on the
UNI-DS3
development system. Voltage to be converted is brought to the A/D converter input pins which converts it into a 12-bit number. The
result of conversion is transferred to the microcontroller by means of serial communication. To make this transmission possible, it is
necessary to set switch 2 on the DIP switch SW3 as well as switches 4, 5 and 6 on the DIP switch SW4 to the ON position.
A voltage reference supplied on the Vref pin of the MCP3204 circuit is used to determine maximum input analog signal, whereas jumper
J15 is used to determine this voltage reference. When jumper J15 is in the 4.096 position, the 4.096V voltage is used as a voltage
reference. Otherwise, when jumper J15 is in the VCC position, then the 5V power supply voltage is used as a voltage reference.
)LJXUH
: ADC module connection schematic
)LJXUH
: ADC module
)LJXUH
: ADC connector
ADC connector
$'FRQYHUWHULVFRQQHFWHGWRWKHPLFURFRQWUROOHUYLD',3VZLWFKHV6:DQG6: