Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to use the AVR in-built ADC ?

Status
Not open for further replies.

prodigyaj

Member level 2
Joined
Jan 10, 2007
Messages
50
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,591
hey everybody !

i wanna build a ISP for AVR atmega 128L , can anybody suggest me a good hardware circuitary (and the corresponding software ) for in system programming of the uC atmega 128.

Also i wld like to know how to use the AVR in built ADC ?

for eg i hv a sensor that give 0.8 when low and 2.5+ when high ....
how do i use ADC of AVR for setting the parameters of my sensors ?

PS : i have nill knowledge of AVR assembly , i m coding in C using WINAVR
 

avr adc0

can some one please help ? ?
 

avr spi adc

First, u must use external or internal voltage reference on the microcontroller so that u can use the ADC.
Using external voltage reference must attached on pin AREF.
I don't know about ATMega128 internal ADC yet, but if it is ATMega32, u can change the register ADCSRA, ADMUX, and SFIOR to control the ADC.
Refer for ATMega128 datasheet if you want to know what those registers used for.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top