smitchell
Junior Member level 2
AVR A/D question
Hi, I need to measure voltages between about 200 and 260V and display them on an LCD. I will be using a voltage transducer that outputs a relative DC voltage between 0V and 5V.
Im new to microcontrollers, and i have just bought an STK500 board and a couple of ATmega16's. Can someone please give me a quick rundown on how the MCU will read and store the 10bit conversion, and how i would go about outputting the 10bit word as a decimel number on an LCD? I understand so far that i have to load characters into the LCD one at a time, so how do i take a 10bit word that represents say 242.3V and load it one digit at a time into the LCD?
Also, is it possible to use the A/D in the ATmega16 as an 8 bit ADC?
Thanks a lot,
Sam
Hi, I need to measure voltages between about 200 and 260V and display them on an LCD. I will be using a voltage transducer that outputs a relative DC voltage between 0V and 5V.
Im new to microcontrollers, and i have just bought an STK500 board and a couple of ATmega16's. Can someone please give me a quick rundown on how the MCU will read and store the 10bit conversion, and how i would go about outputting the 10bit word as a decimel number on an LCD? I understand so far that i have to load characters into the LCD one at a time, so how do i take a 10bit word that represents say 242.3V and load it one digit at a time into the LCD?
Also, is it possible to use the A/D in the ATmega16 as an 8 bit ADC?
Thanks a lot,
Sam