SV: [Icc-avr] ATMega644p -> ADC

John Baraclough j_baraclough at zetnet.co.uk
Sun Sep 28 15:26:41 PDT 2008


Hi Rainer,

A better method of ensuring that you have the correct header file is to 
put the line:

#include <iccioavr.h>

instead and then the compiler does the work for you.

Firstly try the ADC in free-running mode to check that the ISR is 
serviced correctly. Then try starting the conversion by setting the ADSC 
bit in the Timer0 compare ISR. That will help to narrow down the problem 
area. Don't forget that the first conversion takes 25 clocks rather than 
the 13 clocks of subsequent conversions.

Let us know what you find.

All the best for now,
John


Rainer Dehnert wrote:
> Hi Steven,
>
> I included <iom644pv.h>. Should be the right one...
>
> Thanks
> Rainer
>
>



More information about the Icc-avr mailing list