|
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-----
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
Okay, it’s kind of a stupid question considering the level of applications I generate.
PORTA and PINA what exactly is the differences?
Barry
|
[Prev in Thread] | Current Thread | [Next in Thread] |