Main Page   Modules   Related Pages  

Port A

Port A structure
The port A offers 8 bidirectional general purpose IO lines.
Lines 0 and 1 also have alternate functions:
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: PINA reads the physical value of external lines, rather than PORTA.
Port A schematics

pavr_hwres_iof_perif_pa_01.gif



Generated on Sat Jul 3 08:13:38 2004 for Pipelined AVR microcontroller by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001