Port A is managed through 3 IO File locations: PORTA, DDRA and PINA. DDRA sets each pin's direction: DDRA(i)=0 means that line i is input, DDRA(i)=1 means that line i is output.
When writing a value to the port, that value goes into PORTA. If DDRA configures the corresponding lines as outputs, the contents of PORTA will be available on external pins. However, if DDRA configures the lines as inputs (DDRA(i)=0), then:
if PORTA(i)=0, the line i is `pure' input (High Z).
if PORTA(i)=1, the line i is an input weakly pulled high.
PINA reads the physical value of external lines, rather than PORTA.
Port A schematics
Generated on Tue Dec 31 20:26:30 2002 for Pipelined AVR microcontroller by
@Importing into repository the new directory structure.