English
Language : 

UPD70F3116 Datasheet, PDF (690/826 Pages) NEC – 32-Bit Single-Chip Microcontrollers
CHAPTER 14 PORT FUNCTIONS
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
4
3
2
1
0
Address Initial value
–
P15
P14
P13
P12
P11
P10 FFFFF402H Undefined
Bit position
5 to 0
Bit name
P1n
(n = 5 to 0)
I/O port
Function
Besides functioning as a port, in control mode, it also can operate as the timer/counter I/O and external interrupt
request input.
(1) Operation in control mode
Port 1
Port
P10
P11
P12
P13
P14
P15
Alternate Pin Name
TIUD10/TO10
TCUD10/INTP100
TCLR10/INTP101
TIUD11/TO11
TCUD11/INTP110
TCLR11/INTP111
Remarks
Timer/counter I/O
Timer/counter input or external interrupt request input
Timer/counter I/O
Timer/counter input or external interrupt request input
Block Type
N
B
N
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
PM1
1
6
5
4
3
2
1
0
Address Initial value
1
PM15 PM14 PM13 PM12 PM11 PM10 FFFFF422H
FFH
Bit position
5 to 0
Bit name
PM1n
(n = 5 to 0)
Function
Specifies input/output mode of P1n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
690
User’s Manual U14492EJ5V0UD