Post Created date
Does anyone know on how to initialize ADC on ATMEGA128 ?
Here's my complete code, please correct me if I'm wrong,thank you /* * ADC_test.c * * Created: 24/05/2013 2:01:57 PM * Author: Antonius */ //Mention Clock frequency here...
Saturday, 25 May 2013 - 23:20
Does anyone know on how to initialize ADC on ATMEGA128 ?
JohanEkdahl wrote:Quote:do you mean "sprintf" ? No. the different printf functions ( printf(), sprintf()...) all use some common functionality catered by the vprinf() function. If...
Saturday, 25 May 2013 - 23:13
Does anyone know on how to initialize ADC on ATMEGA128 ?
Where can I change compiler option on avr studio? Project--> option ? Thanks
Saturday, 25 May 2013 - 14:32
Does anyone know on how to initialize ADC on ATMEGA128 ?
JohanEkdahl wrote:Quote: uint16_t adcA=0.0; . . . sprintf(volts,"% 0.2f",adcA); Your variable is of an integer type (unsigned 16 bits), but yet you use "f" for a...
Saturday, 25 May 2013 - 12:18
Does anyone know on how to initialize ADC on ATMEGA128 ?
clawson wrote:adcA should be "float" not uint16_t or you'll lose everything to the right of the d.p. do you mean ? float adcA=0.0; adc_result=read_adc(); adcA = (int)(...
Saturday, 25 May 2013 - 12:09
Does anyone know on how to initialize ADC on ATMEGA128 ?
The function I used : void adc_init() { // enable ADC, select ADC clock = F_CPU / 128 (i.e. 125 kHz) ADCSRA = (1<<ADEN | 1<<ADPS2 | 1<<ADPS1 | 1<<...
Saturday, 25 May 2013 - 10:23
Does anyone know on how to initialize ADC on ATMEGA128 ?
The code : main() char volts[50]; uint8_t adc_result; uint16_t adcA=0.0; adc_init() adc_result=read_adc(); adcA = (uint16_t)(adc_result*5.0)/1024.0; if...
Saturday, 25 May 2013 - 10:20
Does anyone know on how to initialize ADC on ATMEGA128 ?
JohanEkdahl wrote:Quote: I get "Bad request" from the server , why is that ? Read tip #2 here: https://www.avrfreaks.net/index.p... Ok, thanks for your suggestion..
Saturday, 25 May 2013 - 10:20
Does anyone know on how to initialize ADC on ATMEGA128 ?
I got "?" in my LCD, do I miss something here ? I connect to ADC like this : R1 = Trimpot 10 K R2 = 4K7 Vin connected to PF0 or ADC0 on atmega 128, anyone has ideas ? thanks
Saturday, 25 May 2013 - 10:00
Does anyone know on how to initialize ADC on ATMEGA128 ?
I get "Bad request" from the server , why is that ?
Saturday, 25 May 2013 - 09:56
Does anyone know on how to initialize ADC on ATMEGA128 ?
I wrote like this : void adc_init(void); uint8_t read_adc(void); void adc_init() { // enable ADC, select ADC clock = F_CPU / 128 (i.e. 125 kHz) ADCSRA = (1<<ADEN |...
Friday, 24 May 2013 - 13:27
Does anyone know on how to initialize ADC on ATMEGA128 ?
Got it fixed, I missed again : uint8_t read_adc(void); Now how can I pass it into LCD ?
Friday, 24 May 2013 - 12:29

Pages