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.

 

 

 

-----Original Message-----
From: larry barello [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 01, 2007 7:43 PM
To: 'AVR Development'
Subject: RE: [avr-gcc-list] Stoopid Question

 

PortX is the output register which sets the drive (output) low or high

PinX is the register that tells you what the actual level of the pin is
(whether output or input).

DirX sets the direction (In/out).

 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of AVR
Development
Sent: Thursday, February 01, 2007 7:26 PM
To: [email protected]
Subject: [avr-gcc-list] Stoopid Question

 

Okay, it's kind of a stupid question considering the level of applications I
generate.

 

PORTA and PINA what exactly is the differences?

 

Barry

 

_______________________________________________
AVR-GCC-list mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to