![Atmel AT90S8414 Скачать руководство пользователя страница 69](http://html1.mh-extra.com/html/atmel/at90s8414/at90s8414_manual_3003427069.webp)
AT90S8414
Preliminary
4-69
Port D
Port D is an 8 bit bi-directional I/O port with internal pullups.
Three data memory address locations are allocated for the Port D, one each for the Data Register - PORTD ($12), Data
Direction Register - DDRD ($11) and the Port D Input Pins - PIND ($10). 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 (IIL)
if the pullups are activated.
Some Port D pins have alternate functions as shown in the following table:
Table 20: Port D Pins Alternate Functions
Port Pin
Alternate Function
PD0
RDX (UART Input line )
PD1
TDX (UART Output line)
PD2
INT0 (External interrupt 0 input)
PD3
INT1 (External interrupt 1 input)
PD4
OC0 (Timer/Counter0 Output compare match output)
PD5
OC1A (Timer/Counter1 Output compareA match output)
PD6
WR
(Write strobe to external memory)
PD7
(Read strobe to external memory)
When the pins are used for the alternate function the DDRD and PORTD register has to be set according to the alternate
function description.
THE PORT D DATA REGISTER - PORTD
Bit
7
6
5
4
3
2
1
0
$12
PORTD7
PORTD6
PORTD5
PORTD4
PORTD3
PORTD2
PORTD1
PORTD0
PORTD
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
THE PORT D DATA DIRECTION REGISTER - DDRD
Bit
7
6
5
4
3
2
1
0
$11
DDD7
DDD6
DDD5
DDD4
DDD3
DDD2
DDD1
DDD0
DDRD
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
THE PORT D INPUT PINS ADDRESS - PIND
Bit
7
6
5
4
3
2
1
0
$10
PIND7
PIND6
PIND5
PIND4
PIND3
PIND2
PIND1
PIND0
PIND
Read/Write
R
R
R
R
R
R
R
R
Initial value
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Hi-Z
Содержание AT90S8414
Страница 4: ...4 4 AT90S8414 Preliminary...
Страница 6: ...4 6 AT90S8414 Preliminary Block Diagram Figure 1 The AT90S8414 Block Diagram...
Страница 65: ...AT90S8414 Preliminary 4 65 Figure 50 PORTB Schematic Diagram Pin PB5 Figure 51 PORTB Schematic Diagram Pin PB6...
Страница 68: ...4 68 AT90S8414 Preliminary Figure 53 PORTC Schematic Diagram Pins PC0 PC7...
Страница 87: ...AT90S8414 Preliminary 4 87...