Post Created date
Baud rate and ADC sampling frequency
Ok I tried sending the raw ADC value and I cannot seem to capture a 1kHz sine wave. I am sending a printf("#d",ADC); statement. I can comfortably capture a 100Hz sine wave....
Wednesday, 27 January 2010 - 22:57
Baud rate and ADC sampling frequency
Ok so now I am using 7.3278MHz (I am limited to using this crystal) and trying to capture 1kHz at 115200 bps. #define USART_BAUDRATE 115200 #define BAUD_PRESCALE (((7327800/ (...
Tuesday, 26 January 2010 - 04:17
Baud rate and ADC sampling frequency
Ok I fixed it. Actually I was sending "RAW ADC = 499,2.5" which of course was too many bytes. I changed it to just 2.5 and it works like a charm. Now I get about 19 samples/cycle...
Friday, 22 January 2010 - 15:04
ATMega328
Just out of curiosity, have you added the libm file to your project? This will save you memory.
Friday, 22 January 2010 - 06:55
Baud rate and ADC sampling frequency
Quote: The problem MIGHT be your pc cant receive serial at 115200 bps without missing chars? Did you write the program? I think you may be right. I wrote the AVR code but I am...
Thursday, 21 January 2010 - 23:58
Baud rate and ADC sampling frequency
Ok, I got it working with an 18.432 MHz crystal, 115200 baud and 100 Hz.Waveform is attached. I am getting 6 samples/cycle in my captured waveform. I am trying to figure out how...
Thursday, 21 January 2010 - 04:53
Baud rate and ADC sampling frequency
Thanks, Bob. I will try that cricuit, although as Jim mentioned I may be faced with too much voltage drop due to the 10K series resistor? I will also try an OPAMP based offset...
Tuesday, 19 January 2010 - 21:01
Baud rate and ADC sampling frequency
Yes I noticed the same thing. Two questions: 1. I am applying a 1Hz sine wave at the ADC input.I am getting 54 samples in one cycle (or one second). I am using 9600 baud with a...
Tuesday, 19 January 2010 - 16:54
Baud rate and ADC sampling frequency
Just out of curiosity, I changed the input frequency only to 1Hz. Attached is a waveform I got. I think I will need a positive bias on my ADC pin to prevent the clipping for the...
Tuesday, 19 January 2010 - 14:55
Baud rate and ADC sampling frequency
Ok I discovered that I accidentally had turned on the AM on my signal generator. When I turned it off, I saw that the zeroes in my data were gone but I still don't get a sine wave...
Tuesday, 19 January 2010 - 14:42
Baud rate and ADC sampling frequency
:) What I mean by that is I get two non zero values then a zero value and at other times I get one non zero value and then a zero value.
Tuesday, 19 January 2010 - 13:24
Baud rate and ADC sampling frequency
@Cliff, I tried adding that in my ADC ISR but I still get random zeroes. I tried a few things: 1. I checked my sine wave and there is no offset. 2. When I power off the signal...
Tuesday, 19 January 2010 - 12:43

Pages