AT90S8515

Manufacturer Part NumberAT90S8515
Description8-bit microcontroller with 8K bytes in-system programmable flash, 2.7-6.0V
ManufacturerATMEL Corporation
AT90S8515 datasheet
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Page 71
72
Page 72
73
Page 73
74
Page 74
75
Page 75
76
Page 76
77
Page 77
78
Page 78
79
Page 79
80
Page 80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Page 71/112:

Port C Data Direction Register

Download datasheet (3Mb)Embed
PrevNext

Port C Data Direction Register

– DDRC
Port C Input Pins Address –
PINC
Port C as General Digital I/O
0841G–09/01
Bit
7
6
5
$14 ($34)
DDC7
DDC6
DDC5
Read/Write
R/W
R/W
R/W
Initial Value
0
0
0
Bit
7
6
5
$13 ($33)
PINC7
PINC6
PINC5
Read/Write
R
R
R
Initial Value
N/A
N/A
N/A
The Port C Input Pins address (PINC) is not a register; this address enables access to
the physical value on each Port C pin. When reading PORTC, the Port C Data Latch is
read and when reading PINC, the logical values present on the pins are read.
All eight pins in Port C have equal functionality 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 is 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. The
Port C pins are tri-stated when a reset condition becomes active, even if the clock is not
active.
Table 22. DDCn Effects on Port C Pins
DDCn
PORTCn
I/O
0
0
Input
0
1
Input
1
0
Output
1
1
Output
Note:
n: 7…0, pin number
AT90S8515
4
3
2
1
DDC4
DDC3
DDC2
DDC1
R/W
R/W
R/W
R/W
0
0
0
0
4
3
2
1
PINC4
PINC3
PINC2
PINC1
R
R
R
R
N/A
N/A
N/A
N/A
Pull-up
Comment
No
Tri-state (high-Z)
Yes
PCn will source current if ext. pulled low.
No
Push-pull Zero Output
No
Push-pull One Output
0
DDC0
DDRC
R/W
0
0
PINC0
PINC
R
N/A
71