CHAPTER 14 PORT FUNCTIONS
693
User’s Manual U14492EJ3V0UD
14.3.2 Port 1
Port 1 is a 6-bit I/O port in which input or output can be specified in 1-bit units.
7
–
P1
6
–
5
P15
4
P14
3
P13
2
P12
1
P11
0
P10
Address
FFFFF402H
Initial value
Undefined
Bit Position
Bit Name
Function
5 to 0
P1n
(n = 5 to 0)
I/O port
Besides functioning as a port, in control mode, it also can operate as the real-time pulse unit (RPU) I/O and
external interrupt request input.
(1) Operation in control mode
Port
Alternate Pin Name
Remarks
Block Type
P10
TIUD10/TO10
Real-time pulse unit (RPU) I/O
N
P11
TCUD10/INTP100
P12
TCLR10/INTP101
Real-time pulse unit (RPU) input or external interrupt
request input
B
P13
TIUD11/TO11
Real-time pulse unit (RPU) I/O
N
P14
TCUD11/INTP110
Port 1
P15
TCLR11/INTP111
Real-time pulse unit (RPU) input or external interrupt
request input
B
(2) Setting in I/O mode and control mode
Port 1 is set in I/O mode using the port 1 mode register (PM1). In control mode, it is set using the port 1
mode control register (PMC1) and port 1 function control register (PFC1).
(a) Port 1 mode register (PM1)
This register can be read/written in 8-bit or 1-bit units. Write 1 in bits 6 and 7.
7
1
PM1
6
1
5
PM15
4
PM14
3
PM13
2
PM12
1
PM11
0
PM10
Address
FFFFF422H
Initial value
FFH
Bit Position
Bit Name
Function
5 to 0
PM1n
(n = 5 to 0)
Specifies input/output mode of P1n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...