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


From: AVR Development
Subject: RE: [avr-gcc-list] Stoopid Question
Date: Thu, 1 Feb 2007 19:56:23 -0800

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:address@hidden
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: address@hidden [mailto:address@hidden On Behalf Of AVR Development
Sent:
Thursday, February 01, 2007 7:26 PM
To: address@hidden
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

 


reply via email to

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