The C code will almost keep the same. Just make the maths so you consider the
reduction.
I think a Voltage Divider (two resistors) is the easiest and best option, the
only thing about that is, use high value resistors so you don't consume too
much power, or you could try using an Operational Amplifier.
There are a lot of circuits on the net to help you reducing 12 --> 3.3 V.
And, if you have any doubt about connecting it, try to check with some
electronic, cuz you can really damage the ADC. Don't be afraid, just be careful.
--- In Mike Ingle <> wrote:
>
> you must ensure that the input to the ADC NEVER EVER exceeds 3.3V
>
> one way:
>
>
>
>
>
>
>
>
> On Feb 3, 2010, at 3:09 PM, Claudio Izzi wrote:
>
> > n the C code? or much more complicated?
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|