VCT 38xxA
ADVANCE INFORMATION
126
Micronas
5.18.Ports
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 I
2
C 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.
5.18.1.Port Assignment
Table 5–23 shows the assignment of port pins to Spe-
cial Input and Output functions.
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.
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.
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
CC0
IN
0
15
2
CC1
IN
0
15
3
PINT0
0
15
4
PINT1
0
15
5
PINT2
0
15
6
PINT3
0
15
Table 5–23:
Port pin configuration
Port
Name
ADC
Input
Special
Output
Special
Input Port
P10
1
Timer 0
1
P11
2
Timer 1
2
P12
3
CC0
OUT
3
P13
4
CC1
OUT
4
P14
5
TVPWM
5
P15
6
PWM 0
6
P16
7
PWM 1
7
P17
8
PWM 2
8
P20
9
PWM 3
9
P21
10
CLK20
10
P22
11
SDA 2
11
P23
12
SCL 2
12
P24
13
Timer 0
P25
14
Timer 1
P26
15
CC0
OUT
P27
CC1
OUT
P30
TVPWM
P31
PWM 0
P32
PWM 1
P33
PWM 2
P34
PWM 3
P35
CLK20
P36
SDA 2
P37
SCL 2
P40
SDA
P41
SCL
P42
AOUT1
P43
AOUT2
13
P44
AIN1
P45
AIN2
14
P46
AIN3
15