
Parallel ports
UM0404
DocID13284 Rev 2
P5 (FFA2h / D1h)
SFR
Reset Value: xxxxh
6.7.1 Alternate
functions of Port5
Each line of Port5 is also connected to the input multiplexer of the analog/digital converter.
All port lines (P5.15...P5.0) can accept analog signals (AN15...AN0) that can be converted
by the ADC. No special programming is required for pins that should be used as analog
inputs. The upper six pins of Port5 also serve as external timer control lines for GPT1 and
GPT2.
The
summarizes the alternate functions of Port5.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
P5.15P5.14P5.13P5.12 P5.11 P5.10 P5.9 P5.8 P5.7 P5.6 P5.5 P5.4 P5.3 P5.2 P5.1 P5.0
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
R
Bit
Function
P5.y
Port data register P5 bit y (Read only)
Table 25. Port5 alternate functions
Port5 Pin
Alternate function a)
Alternate function b)
P5.0
P5.1
P5.2
P5.3
P5.4
P5.5
P5.6
P5.7
P5.8
P5.9
P5.10
P5.11
P5.12
P5.13
P5.14
P5.15
Analog Input AN0
Analog Input AN1
Analog Input AN2
Analog Input AN3
Analog Input AN4
Analog Input AN5
Analog Input AN6
Analog Input AN7
Analog Input AN8
Analog Input AN9
Analog Input AN10
Analog Input AN11
Analog Input AN12
Analog Input AN13
Analog Input AN14
Analog Input AN15
-
-
-
-
-
-
-
-
-
-
T6EUD Timer 6 external Up/Down Input
T5EUD Timer 5 external Up/Down Input
T6IN Timer 6 Count Input
T5IN Timer 5 Count Input
T4EUD Timer 4 external Up/Down Input
T2EUD Timer 2 external Up/Down Input