CHAPTER 14 PORT FUNCTIONS
User’s Manual U14359EJ4V0UM
469
14.3.2 Port 1
Port 1 is a 4-bit I/O port that can be set to the input or output mode in 1-bit units.
7
6
5
4
3
2
1
0
Address
After reset
P1
–
–
–
–
P13
P12
P11
P10
FFFFF402H
Undefined
Bit position
Bit name
Function
3 to 0
P1n
(n = 3 to 0)
Port 1
I/O port
In addition to their function as port pins, the port 1 pins can also operate as real-time pulse unit (RPU) I/O, external
interrupt request inputs, and PWM output in the control mode.
(1) Operation in control mode
Port
Alternate Function
Remark
Block Type
P10
PWM1
PWM output
A
P11
TI010/INTP010
External interrupt request input/
Real-time pulse unit (RPU) input
P12
INTP011
External interrupt request input
B
Port 1
P13
TO01
Real-time pulse unit (RPU) output
A
(2) I/O mode/control mode setting
The port 1 I/O mode setting is performed by the port 1 mode register (PM1), and the control mode setting is
performed by the port 1 mode control register (PMC1).
(a) Port 1 mode register (PM1)
This register can be read/written in 8-bit or 1-bit units.
7
6
5
4
3
2
1
0
Address
After reset
PM1
1
1
1
1
PM13
PM12
PM11
PM10
FFFFF422H
FFH
Bit position
Bit name
Function
3 to 0
PM1n
(n = 3 to 0)
Port Mode
Specifies input/output mode for P1n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)