SV: [Icc-avr] ATMega644p -> ADC

John Baraclough j_baraclough at zetnet.co.uk
Tue Sep 30 15:41:47 PDT 2008


Hi Rainer,

Without seeing your USART code it's difficult to say what the problem 
might be. If you are having a problem with the ADC I suggest you start 
with the working ADC code and then add other functions to it, rather 
than trying to put the ADC code into another code file. If you add 
functions just a few at a time you'll soon see what it is that's causing 
the problem.

All the best for now,
John
 

Rainer Dehnert wrote:
> Hi John,
>
> many thanks for your response!
>
> This code works like expected:
>
<code snipped>
> If I insert these few lines in a present and to enhance source the 
> adc-isr doesn't trigger anymore.
>
> In my project I use the 'uartintr.c' and 'uart.h' buffer from the 
> iccavr examples-directory. I've removed the "while" statements within 
> the uart-isrs using the query 'DataInReceiveBuffer' instead. Disabling 
> the two uart-isrs (RXC & udre) the adc works like with the little 
> example above!
>
> Have you any idea solving this problem?
>
> Many thanks and best Regards,
> Rainer



More information about the Icc-avr mailing list