(1) Function of each port
The ports of the V854 have the functions shown in the table below.
Each port can be manipulated in 8- or 1-bit units and perform various types of control operations. In addition
to port functions, the ports also have functions as internal hardware input/output pins, when placed in the
control mode.
For the details, refer to the description of each port. Figure 12-1 to 12-11 show the block diagram of the ports.
Port
Pin
Port Function
Port 0
P00 to P07
8-bit I/O
Port 1
P10 to P17
8-bit I/O
Port 2
P20 to P26
Note
6-bit I/O
Port 3
P30 to P36
7-bit I/O
Port 4
P40 to P47
8-bit I/O
Port 5
P50 to P57
Port 6
P60 to P67
8-bit I/O
Port 7
P70 to P77
8-bit input
Port 8
P80 to P87
Port 9
P90 to P96
7-bit I/O
Port 10
P100 to P103
4-bit I/O
Port 11
P110 to P117
8-bit I/O
Port 12
P120 to P127
8-bit I/O
Port 13
P130 to P137
8-bit I/O
Port 14
P140 to P147
8-bit I/O
Note P20 cannot be used for a port function.
Caution
when outputting in the control mode or switching a port that operates as an input/output pin
to the control mode, take the following steps.
(1) Set the corresponding bit of port n (Pn)(n = 0, 1, 3 to 6, 9 to 13) to the inactive level of the
output signal in the control mode.
(2) Switch to the control mode with a port n mode control register (PMCn).
If (1) above is omitted, the contents of port n (Pn) may momentarily be output when switching
from the port mode to control mode.
CHAPTER 12 PORT FUNCTION
Function in Control Mode
Real time pulse unit (RPU) input/output
External interrupt request input (capture trigger input)
RPU input/output
External interrupt request input (capture trigger input)
P17 is only for port.
Non-maskable interrupt request input
External interrupt request input (capture trigger input)
Analog trigger input
Serial interface input/output (UART, CSI, I
P36 is only for port.
Address/data bus for external memory
Address bus for external memory
Analog input to A/D converter (only for input in the port mode)
Control signal input/output for external memory
PWM control signal output
RPU input/output
External interrupt request input
Serial interface input/output
Clock output
P126 is only for port.
Real-time output port
Only for port
User's Manual U11969EJ3V0UM00
2
C)
339