avr-gcc-list
[Top][All Lists]
Advanced

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

RE: [avr-gcc-list] Stoopid Question: Done


From: AVR Development
Subject: RE: [avr-gcc-list] Stoopid Question: Done
Date: Thu, 1 Feb 2007 22:47:00 -0800

Okay thanks guys.  I don't know why I don't look.  I got it now.  The
input/output port configuration does explain it all.  Thanks folks!! :)

Barry


-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of swm
Sent: Thursday, February 01, 2007 8:31 PM
To: address@hidden
Subject: Re: [avr-gcc-list] Stoopid Question

On Thursday 01 February 2007 19:56, AVR Development wrote:
> Thanks Larry.  I get it now.  PORTx is for output and you can
> read and write that with no problem but for pin inputs we use
> PINx.  Do inputs modify PORTx readings?  I get the impression
> we never use PORTx for pin input readings.

The best way to understand a pin and its registers is to 
carefully study the pin I/O diagram in your datasheet.

For example, look at figure 30 on page 66 of the Mega128 
datasheet.
http://www.atmel.com/dyn/resources/prod_documents/doc2467.pdf

-Steve


_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list







reply via email to

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