![Atmel AT90S8414 Скачать руководство пользователя страница 67](http://html1.mh-extra.com/html/atmel/at90s8414/at90s8414_manual_3003427067.webp)
AT90S8414
Preliminary
4-67
THE PORT C DATA DIRECTION REGISTER - DDRC
Bit
7
6
5
4
3
2
1
0
$14
DDC7
DDC6
DDC5
DDC4
DDC3
DDC2
DDC1
DDC0
DDRC
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 C INPUT PINS ADDRESS - PINC
Bit
7
6
5
4
3
2
1
0
$13
PINC7
PINC6
PINC5
PINC4
PINC3
PINC2
PINC1
PINC0
PINC
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
The Port C Input Pins address - PINC - is not a register, and this address enables access to the physical value on each Port
C pin. When reading PORTC, the PORTC Data Latch is read, and when reading PINC, the logical values present on the
pins are read.
PORTC AS GENERAL DIGITAL I/O
All 8 bits in PORT C are equal when used as digital I/O pins.
PCn, General I/O pin: The DDCn bit in the DDRC register selects the direction of this pin, if DDCn is set (one), PCn is
configured as an output pin. If DDCn is cleared (zero), PCn is configured as an input pin. If PORTCn is set (one) when
the pin configured as an input pin, the MOS pull up resistor is activated. To switch the pull up resistor off, PORTCn has
to be cleared (zero) or the pin has to be configured as an output pin.
Table 19: DDCn Effects on PORT C Pins
DDCn
PORTCn
I/O
Pull up
Comment
0
0
Input
No
Tri-state (Hi-Z)
0
1
Input
Yes
PCn will source current (IIL) if ext. pulled low.
1
0
Output
No
Push-Pull Zero Output
1
1
Output
No
Push-Pull One Output
n: 7…0, pin number.
PORT C SCHEMATICS
Note that all port pins are synchronized. The synchronization latch is however, not shown in the figure.
Содержание 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...