[En-Nut-Discussion] Analog Input

Andre Riesberg andre at riesberg-net.de
Thu Sep 10 13:29:29 CEST 2009


[Snap]

>Hi André,
>
>Each of the values under "ADC Driver" and "ADC Driver" itself are enabled.
>
>Daniel
>_______________________________________________
>http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
>  
>
Hi Daniel,

I have set:
Buffer Size = 16
Inital Channel = ADC0
Initial Reference = AVCC
Initial  Mode = FREE_RUNNING
Initial Prescale = ADC_PRESCALE_DIV128

and it works fine. (I use your sample program)

I use AT90CAN128, but I think this is not a big difference.

So, try my settings first.
I know you have shorten pin 1 and 2 of connector J6. Please check the 
AREF Pin (62) at the CPU. Here you must have +5V.
Next check PortF is define as input.
Doublecheck the generated code form Nut/OS Configurtator: Up to date? 
correct CPU?

Greeting
Andre





More information about the En-Nut-Discussion mailing list