atmega103 ATMEL Corporation, atmega103 Datasheet - Page 94

no-image

atmega103

Manufacturer Part Number
atmega103
Description
Atmega103 8-bit With 128k Bytes Of In-system Programmable Flash
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
atmega103-6AC
Manufacturer:
ATMEL
Quantity:
1
Part Number:
atmega103-6AI
Manufacturer:
ATMEL
Quantity:
586
Part Number:
atmega103-6AI
Manufacturer:
Atmel
Quantity:
10 000
Port C
The Port C Data Register –
PORTC
Port C Schematics
Port D
94
ATmega103(L)
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.
Figure 61. Port C Schematic Diagram (Pins PC0 - PC7)
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.
Table 31. Port D Pin Alternate Functions
Bit
$15 ($35)
Read/Write
Initial Value
Port Pin
PD0
PD1
PD2
PD3
PD4
PD6
PD7
PORTC7
PCn
R/W
7
0
WP:
RL:
A:
SRE:
n:
Alternate Function
INT0 (External Interrupt0 Input)
INT1 (External Interrupt1 Input)
INT2 (External Interrupt2 Input)
INT3 (External Interrupt3 Input)
IC1 (Timer/Counter1 Input Capture Trigger)
T1 (Timer/Counter1 Clock Input)
T2 (Timer/Counter2 Clock Input)
PORTC6
WRITE PORTC
READ PORTC LATCH
SRAM ADDRESS
EXTERNAL SRAM ENABLE
0-7
R/W
6
0
PORTC5
R/W
5
0
PORTC4
R/W
4
0
PORTC3
R/W
3
0
RL
PORTC2
R/W
2
0
Q
PORTCn
RESET
WP
PORTC1
R
C
R/W
1
0
D
SRE
An
PORTC0
R/W
0
0
0945I–AVR–02/07
PORTC

Related parts for atmega103