CHAPTER 14 PORT FUNCTIONS
701
User’s Manual U14492EJ3V0UD
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
P47
P4
6
P46
5
P45
4
P44
3
P43
2
P42
1
P41
0
P40
Address
FFFFF408H
Initial value
Undefined
Bit Position
Bit Name
Function
7 to 0
P4n
(n = 7 to 0)
I/O port
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
Alternate Pin Name
Remarks
Block Type
P40
SI0
C
P41
SO0
A
P42
SCK0
M
P43
SI1
C
P44
SO1
A
P45
SCK1
M
P46
CRXD
C
Port 4
P47
CTXD
Serial interface (CSI0, CSI1, FCAN) I/O
A
(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
PM47
PM4
6
PM46
5
PM45
4
PM44
3
PM43
2
PM42
1
PM41
0
PM40
Address
FFFFF428H
Initial value
FFH
Bit Position
Bit Name
Function
7 to 0
PM4n
(n = 7 to 0)
Specifies input/output mode of P4n pin.
0: Output mode (output buffer on)
1: Input mode (output buffer off)
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...