[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Problem reading from port (ADC)

From: Viktor Lopatin
Subject: Re: [avr-gcc-list] Problem reading from port (ADC)
Date: Mon, 29 Aug 2005 10:04:34 +0300


On Sun, 28 Aug 2005 10:17:48, Matthew Smith wrote:

> I *did* remember to set DDRA to 0; I tried turning pullup on for the
> port, but the ADC doesn't seem to be able to pull it back down again.

It is necessary to set DDRA=0; PORTA=0xff to tune up the port A for input data.
Value of inputs of port takes from register PINA. The external storage
mast be off.
AVR-GCC-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]