Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 4922

Need Help With Displaying ADC Value on (four)7 Segment Display.

$
0
0
Hello Everyone,

i am trying to interface adc(using a potentiometre) using atmega8/atmega32 and show the analog value on four 7 segment displays.

in the begining i tried to interface it with lcd and it was perfectly showing the display.(to know i am doing the adc correctly)
mcu - atmega 32
F_CPU- 16MHz

adc initialization
[
void adc_init()
{
ADMUX |= (1<<REFS0); // 5 volt reference AVCC
ADCSRA |= (1<<ADEN) | (1<<ADPS0) | (1<<ADPS2) | (1<<ADPS1); // prescale-128
}
]

reading adc
[...

Need Help With Displaying ADC Value on (four)7 Segment Display.

Viewing all articles
Browse latest Browse all 4922

Trending Articles