At 05:43 AM 5/30/2004 +0000, ereihani wrote: >HI! >I use 8-bit adc and i use the result conversion in ADCH which is >produced in the wizard.I have given a DC voltage of 2.5V and I have >got 128,but when I give a 40HZ sine and send the result to PC and >plot with MATLAB the figure is very bad.I have also increased the >sampling frequency but it was in vain. >Please guide me! >Thank you! Make sure you read the high and low bytes in the right order, if not, you're getting the high byte of one sample, and the low byte of another sample.. That would be MOST confusing.
Message
Re: [AVR-Chat] ADC problem!
2004-05-30 by David VanHorn