Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started