NEC V850E/MA1 User Manual page 478

32-bit single-chip microcontroller
Hide thumbs Also See for V850E/MA1:
Table of Contents

Advertisement

14.3.5 Port 4
Port 4 is a 6-bit I/O port that can be set to the input or output mode in 1-bit units.
7
6
P4
Bit position
Bit name
5 to 0
P4n
(n = 5 to 0)
In addition to their function as port pins, the port 4 pins can also operate as the serial interface (UART0/CSI0,
UART1/CSI1) I/O in the control mode.
(1) Operation in control mode
Port
Port 4
P40
TXD0/SO0
P41
RXD0/SI0
P42
SCK0
P43
TXD1/SO1
P44
RXD1/SI1
P45
SCK1
(2) I/O mode/control mode setting
The port 4 I/O mode setting is performed by the port 4 mode register (PM4), and the control mode setting is
performed by the port 4 mode control register (PMC4) and the port 4 function control register (PFC4).
(a) Port 4 mode register (PM4)
This register can be read/written in 8-bit or 1-bit units.
7
6
PM4
1
1
Bit position
Bit name
5 to 0
PM4n
(n = 5 to 0)
478
CHAPTER 14 PORT FUNCTIONS
5
4
3
P45
P44
P43
Port 4
I/O port
Alternate Function
Serial interface (UART0/CSI0) I/O
Serial interface (UART1/CSI1) I/O
5
4
3
PM45
PM44
PM43
Port Mode
Specifies input/output mode for P4n pin
0: Output mode (output buffer on)
1: Input mode (output buffer off)
User's Manual U14359EJ4V0UM
2
1
0
P42
P41
P40
Function
Remark
2
1
0
PM42
PM41
PM40
Function
Address
After reset
FFFFF408H Undefined
Block Type
G
H
M
G
H
M
Address
After reset
FFFFF428H
FFH

Advertisement

Table of Contents
loading

Table of Contents