Question

(a) Find the resolution for a microcontroller anadlog to digital controller (ADC), if the accuracy is 54.6mV and the ADC is p

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

Hello

Here are the answers

a)

If you need to resolve 54.6mV on a 0-7V input range, that gives use a adc resolution of 7/0.0546 = 128 counts . The resolution for this would be 7 bits since 2^7 = 128.

b)

We know that

ADC clock frequency = XTAL frequency / Prescaler

In the microcontroller we’re discussing, prescaler values of 2, 4, 8, 16, 32, 64 & 128 are provided.

Hence

Slowest Frequency= 3 Mhz / 128 = 23.4 Khz

Fastest Frequency= 3 Mhz/2 = 1.5 Mhz

c)

Here i have assumed an AVR microcontroller.

#include <avr/io.h>

void ADC_Init() {

DDRA=0x0; /* Make ADC port as input */

ADCSRA = 0x87; /* ADC Enable and prescaler=128 since 4Mhz/31.25 Khz = 128 */

ADCSRA |= (0<<ADIE); /* disable interrupts */

ADMUX = (1<<REFS0)| (1<<MUX3)) /* Vref: Avcc, ADC channel: 0 and gain factor of 10x by setting MUX 4:0 bits to 01000 through the reference table*/

ADCSRA |= (0 << ADSATE); /* ADC Auto Triggering disable */

}

Hope this helps. Thumbs up to help back.

Add a comment
Know the answer?
Add Answer to:
(a) Find the resolution for a microcontroller anadlog to digital controller (ADC), if the accuracy is 54.6mV and the AD...
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