
C165
Data Sheet
10
V2.0, 2000-12
P6
P6.0
P6.1
P6.2
P6.3
P6.4
P6.5
P6.6
P6.7
P2
82
83
84
85
86
87
88
89
84
85
86
87
88
89
90
91
IO
O
O
O
O
O
I
I/O
O
IO
Port 6 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits.
For a pin configured as input, the output driver is put
into high-impedance state. Port 6 outputs can be
configured as push/pull or open drain drivers.
The Port 6 pins also serve for alternate functions:
CS0
Chip Select 0 Output
CS1
Chip Select 1 Output
CS2
Chip Select 2 Output
CS3
Chip Select 3 Output
CS4
Chip Select 4 Output
HOLD
External Master Hold Request Input
HLDA
Hold Acknowledge Outp.(master mode)
or Input (slave mode)
BREQ
Bus Request Output
Port 2 is an 8-bit bidirectional I/O port. It is bit-wise
programmable for input or output via direction bits.
For a pin configured as input, the output driver is put
into high-impedance state. Port 2 outputs can be
configured as push/pull or open drain drivers. The
following Port 2 pins serve for alternate functions:
EX0IN
Fast External Interrupt 0 Input
EX1IN
Fast External Interrupt 1 Input
EX2IN
Fast External Interrupt 2 Input
EX3IN
Fast External Interrupt 3 Input
EX4IN
Fast External Interrupt 4 Input
EX5IN
Fast External Interrupt 5 Input
EX6IN
Fast External Interrupt 6 Input
EX7IN
Fast External Interrupt 7 Input
Port 5 is a 6-bit input-only port with Schmitt-Trigger
char. The pins of Port 5 also serve as timer inputs:
T6EUD
GPT2 Timer T6 Ext. Up/Down Ctrl Input
T5EUD
GPT2 Timer T5 Ext. Up/Down Ctrl Input
T6IN
GPT2 Timer T6 Count Input
T5IN
GPT2 Timer T5 Count Input
T4EUD
GPT1 Timer T4 Ext. Up/Down Ctrl Input
T2EUD
GPT1 Timer T2 Ext. Up/Down Ctrl Input
P2.8
P2.9
P2.10
P2.11
P2.12
P2.13
P2.14
P2.15
P5
90
91
92
93
94
95
96
97
92
93
94
95
96
97
98
99
I
I
I
I
I
I
I
I
I
P5.10
P5.11
P5.12
P5.13
P5.14
P5.15
98
99
100
1
2
3
100
1
2
3
4
5
I
I
I
I
I
I
Table 2
Symbol Pin Nr
Pin Definitions and Functions
(cont’d)
Pin Nr
MQFP
Outp.
TQFP
Input
Function