89
ATmega103(L)
0945G–09/01
Port C
Port C is an 8-bit output port.
The Port C pins have alternate functions related to the optional external data SRAM.
When using the device with external SRAM, Port C outputs the high-order address byte
during accesses to external data memory. When a reset condition becomes active, the
port pins are not tri-stated, but the pins will assume their initial value after two stable
clock cycles.
The Port C Data Register –
PORTC
Port C Schematics
Figure 61.
Port C Schematic Diagram (Pins PC0 - PC7)
Port D
Port D is an 8-bit bi-directional I/O port with internal pull-up resistors.
Three I/O memory address locations are allocated for the Port D, one each for the Data
Register – PORTD, $12($32), Data Direction Register – DDRD, $11($31) and the Port D
Input Pins – PIND, $10($30). The Port D Input Pins address is read-only, while the Data
Register and the Data Direction Register are read/write.
The Port D output buffers can sink 20 mA. As inputs, Port D pins that are externally
pulled low will source current if the pull-up resistors are activated.
Some Port D pins have alternate functions as shown in Table 31.
Bit
7
6
5
4
3
2
1
0
$15 ($35)
PORTC7
PORTC6
PORTC5
PORTC4
PORTC3
PORTC2
PORTC1
PORTC0
PORTC
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
DA
T
A
B
U
S
D
Q
RESET
C
WP
PCn
R
WP:
RL:
A:
SRE:
n:
WRITE PORTC
READ PORTC LATCH
SRAM ADDRESS
EXTERNAL SRAM ENABLE
0-7
PORTCn
SRE
An
RL
Table 31.
Port D Pin Alternate Functions
Port Pin
Alternate Function
PD0
INT0 (External Interrupt0 Input)
PD1
INT1 (External Interrupt1 Input)
PD2
INT2 (External Interrupt2 Input)
PD3
INT3 (External Interrupt3 Input)
PD4
IC1 (Timer/Counter1 Input Capture Trigger)
PD6
T1 (Timer/Counter1 Clock Input)
PD7
T2 (Timer/Counter2 Clock Input)