125
8.2.3
Pin Functions
Table 8.3 shows the port 1 pin functions.
Table 8.3
Port 1 Pin Functions
Pin
Pin Functions and Selection Method
P1
7
/
IRQ
3
/TMIF
The pin function depends on bit IRQ3 in PMR1, bits CKSL2 to CKSL0 in TCRF,
and bit PCR1
7
in PCR1.
IRQ3
0
1
PCR1
7
0
1
*
CKSL2 to CKSL0
*
Not 0
**
0
**
Pin function
P1
7
input pin
P1
7
output pin
IRQ
3
input pin
IRQ
3
/TMIF
input pin
Note:
When using this pin for TMIF input, clear bit IEN3 to 0 in IENR1 to
disable IRQ
3
interrupts.
P1
6
/
IRQ
2
/TMCIY The pin function depends on bit IRQ2 in PMR1, bits TMY2 to TMY0 in TMY, and
bit PCR1
6
in PCR1.
IRQ2
0
1
PCR1
6
0
1
*
TMY2 to TMY0
*
Not 111
111
Pin function
P1
6
input pin
P1
6
output pin
IRQ
2
input pin
IRQ
2
/TMCIY
input pin
Note:
When using this pin for TMCIY input, clear bit IEN2 in IENR1 to disable
IRQ
2
interrupts.
P1
5
/
IRQ
1
The pin function depends on bit IRQ1 in PMR1 and bit PCR1
5
in PCR1.
IRQ1
0
1
PCR1
5
0
1
*
Pin function
P1
5
input pin
P1
5
output pin
IRQ
1
input pin
P1
4
/PWM
The pin function depends on bit PWM in PMR1 and bit PCR1
4
in PCR1.
PWM
0
1
PCR1
4
0
1
*
Pin function
P1
4
input pin
P1
4
output pin
PWM output pin