Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] ADC problem!

2004-05-30 by David VanHorn

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.