Question: Construct the circuit as shown in the Figure. Check your wiring and make sure that no connection is made to the 5 V supply. The
Construct the circuit as shown in the Figure.
Check your wiring and make sure that
no connection is made to the V supply.
The ADC peripheral should be configured to
sample CH and CH using Sequence A
The serial port USART should be configured
for a baud rate of and as a serial
terminal.
Write a program that will do the following
in the main loop:
Prints out a message such as: "Press a key to start conversion."
Starts the ADC Sequence A when a key is pressed from the PC keyboard
Waits until one conversion on Sequence A is complete.
Converts the results to voltages on the two channels using the reference
voltage of VDetermine the resolution of the ADC by consulting the reference
manual. Use an intt and represent the voltage in millivolts, as the terminal
program cannot print floating point numbers.
Prints out the result of the conversion in the format :
"ADCxxxx mV ADCyyyy mV
Repeat.
Remember that the terminal program in the PC must also be set to the same
baud rate as Alakart. Otherwise, garbled output, or even, no output will be
seen.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
