VCT 38xxA
ADVANCE INFORMATION
5.18.Ports
Table 5–23: Port pin configuration
There exist different kinds of ports. The universal
ports, P1 to P3, serve as digital I/O and have addi-
tional special input and output functions. A subset of
the universal ports (P10-P17, P20-P26) serves as
input for the analog-to-digital converter. The I2C ports
SDA, SCL can alternatively be used as digital I/O
ports. The analog audio ports AIN1−3, AOUT1−2 can
alternatively be used as digital input ports. The
20.25 MHz system clock output CLK20 can alterna-
tively be used as digital output port.
Port
Name
ADC
Input
Special
Output
Special
Input Port
P10
P11
P12
P13
P14
P15
P16
P17
P20
P21
P22
P23
P24
P25
P26
P27
P30
P31
P32
P33
P34
P35
P36
P37
P40
P41
P42
P43
P44
P45
P46
1
2
Timer 0
Timer 1
CC0−OUT
CC1−OUT
TVPWM
PWM 0
PWM 1
PWM 2
PWM 3
CLK20
SDA 2
1
2
3
3
4
4
5
5
6
6
5.18.1.Port Assignment
7
7
Table 5–23 shows the assignment of port pins to Spe-
cial Input and Output functions.
8
8
Every Special Output function is connected to 2 port
pins in parallel and can be activated via the MOD flag
in the corresponding port register.
9
9
10
11
12
13
14
15
10
11
12
The ADC input multiplexer can be connected to 1 of 15
port pins. The output driver of the selected port pin is
then forced to open-drain mode. Additionally it can be
disabled using the EN flag in the corresponding port
register.
SCL 2
Timer 0
Timer 1
CC0−OUT
CC1−OUT
TVPWM
PWM 0
PWM 1
PWM 2
PWM 3
CLK20
SDA 2
Every special input function can be connected to 1 of
15 input ports (see Table 5–22). If port number 0 is
selected the special input function is connected to
ground. Changing the input port may produce tempo-
rary glitch signals. Therefore, the corresponding spe-
cial input function should be disabled before the input
port is changed.
Table 5–22: Special input configuration
Special
Input
Number
Special
Input
Function
Special
Input
Port
1
2
3
4
5
6
CC0−IN
CC1−IN
PINT0
PINT1
PINT2
PINT3
0−15
0−15
0−15
0−15
0−15
0−15
SCL 2
SDA
SCL
AOUT1
AOUT2
AIN1
13
AIN2
14
15
AIN3
126
Micronas