Question

ANSWER THE QUESTION IN THE END

READING THE DIAL WITH THE AVR ATMEGA16 MICROCONTROLLER #include <axc/ie.h> int main(void) int ads.valusimm 1/Variable used to

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(a).

The condetion of turning the LED on is when the ADC output is more than "11111111". When the Decimal equivalent of the Digital Output from the ADC is more than decimal equivalent of "11111111" (512-dec), the ATMEGA16 Microcontroller turns on the LED. So, 512 is taken as the threshold value which is compared with the real time output of the ADC.

(b).

CPU frequency = 4 MHz.

Prescaler Value = 128.

ADC Frequency:

f=\frac{4\times10^6}{128}=31.25\ kHz

(c).

If the ADEN and ADCSRA registers are not turned to Logic "1", the ADC will not be powered on and the Prescaler conversion will not be done.

Add a comment
Know the answer?
Add Answer to:
ANSWER THE QUESTION IN THE END READING THE DIAL WITH THE AVR ATMEGA16 MICROCONTROLLER #include <axc/ie.h>...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT