Port 4 - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

14.3.5 Port 4

Port 4 is an 8-bit I/O port in which input or output can be specified in 1-bit units.
7
6
P4
P47
P46
Bit Position
Bit Name
7 to 0
P4n
(n = 7 to 0)
Besides functioning as a port, in control mode, it also can operate as the serial interface (CSI0, CSI1, FCAN) I/O.
(1) Operation in control mode
Port
Port 4
P40
P41
P42
P43
P44
P45
P46
P47
(2) Setting in I/O mode and control mode
Port 4 is set in I/O mode using the port 4 mode register (PM4). In control mode, it is set using the port 4
mode control register (PMC4).
(a) Port 4 mode register (PM4)
This register can be read/written in 8-bit or 1-bit units.
7
6
PM4
PM47
PM46
Bit Position
Bit Name
7 to 0
PM4n
(n = 7 to 0)
CHAPTER 14 PORT FUNCTIONS
5
4
3
P45
P44
P43
I/O port
Alternate Pin Name
SI0
Serial interface (CSI0, CSI1, FCAN) I/O
SO0
SCK0
SI1
SO1
SCK1
CRXD
CTXD
5
4
3
PM45
PM44
PM43
Specifies input/output mode of P4n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
User's Manual U14492EJ3V0UD
2
1
0
P42
P41
P40
Function
Remarks
2
1
0
PM42
PM41
PM40
Function
Address
Initial value
FFFFF408H
Undefined
Block Type
C
A
M
C
A
M
C
A
Address
Initial value
FFFFF428H
FFH
701

Advertisement

Table of Contents
loading

Table of Contents