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
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.