Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Weird values on ADC channel 4

2007-09-16 by Gustavo Goretkin

Thanks for the replies, all. It turns out the problem, of course, was 
due to a programming error on my behalf. Whenever channel 3's value was 
within a certain  deadband, I set the variable for the X acceleration 
AND the Y acceleration to zero instead of just the X acceleration. 
Certainly caused some interesting results.

Gustavo

Bruce Parham wrote:
>
> Gustavo,
>
> Assuming that the chip is good, fig 98 in the data sheet (pg 202) shows
> channels 3 and 4 going directly into the input mux so, if properly 
> configured,
> thay should act identically.
>
> Changing the REF select bits or putting the inputs into differential or
> pseudo-differential mode by setting the MUX3 and/or MUX4 bits can lead to
> unexpected values.
>
> Have you verified the ADMUX register content?
>
> Bruce
>
>

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.