NEC PD703114 User Manual page 564

V850e/ia2 32-bit single-chip microcontrollers
Table of Contents

Advertisement

12.3.2 Port 1
Port 1 is a 3-bit I/O port in which input or output can be specified in 1-bit units.
7
6
P1
Bit position
Bit name
2 to 0
P1n
(n = 2 to 0)
Besides functioning as a port, in control mode, it can also operate as the timer/counter I/O and external interrupt
request input.
(1) Operation in control mode
Port
Port 1
P10
P11
P12
Caution P10 to P12 have hysteresis characteristics when the alternate functions are input, but not in the
port mode.
(2) Setting of I/O mode and control mode
The port 1 mode register (PM1) is used to set the I/O mode of port 1 and the port 1 mode control register
(PMC1) and port function control register 1 (PFC1) are used to set the operation in control mode.
(a) Port 1 mode register (PM1)
This register can be read or written in 8-bit or 1-bit units. Write 1 in bits 3 to 7.
7
6
PM1
1
1
Bit position
Bit name
2 to 0
PM1n
(n = 2 to 0)
564
CHAPTER 12 PORT FUNCTIONS
5
4
3
I/O port
Alternate Pin Name
TIUD10/TO10
Timer/counter I/O
TCUD10/INTP100
Timer/counter input or external interrupt request input
TCLR10/INTP101
5
4
3
1
1
1
Specifies input/output mode of P1n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
User's Manual U15195EJ5V0UD
2
1
0
P12
P11
P10
Function
Remarks
2
1
0
PM12
PM11
PM10
Function
Address
After reset
FFFFF402H
Undefined
Block Type
K
B
Address
After reset
FFFFF422H
FFH

Advertisement

Table of Contents
loading

Table of Contents