Port 1 - NEC UPD703116 User Manual

32-bit single-chip microcontrollers
Table of Contents

Advertisement

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
6
P1
Bit position
Bit name
5 to 0
P1n
(n = 5 to 0)
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
Port 1
P10
P11
P12
P13
P14
P15
(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
6
PM1
1
1
Bit position
Bit name
5 to 0
PM1n
(n = 5 to 0)
690
CHAPTER 14 PORT FUNCTIONS
5
4
3
P15
P14
P13
I/O port
Alternate Pin Name
TIUD10/TO10
Timer/counter I/O
TCUD10/INTP100
Timer/counter input or external interrupt request input
TCLR10/INTP101
TIUD11/TO11
Timer/counter I/O
TCUD11/INTP110
Timer/counter input or external interrupt request input
TCLR11/INTP111
5
4
3
PM15
PM14
PM13
Specifies input/output mode of P1n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
User's Manual U14492EJ5V0UD
2
1
0
P12
P11
P10
Function
Remarks
2
1
0
PM12
PM11
PM10
Function
Address
Initial value
FFFFF402H
Undefined
Block Type
N
B
N
B
Address
Initial value
FFFFF422H
FFH

Advertisement

Table of Contents
loading

Table of Contents