NEC UPD703116 User Manual page 675

32-bit single-chip microcontrollers
Table of Contents

Advertisement

Port Name
Pin Name
Port 0
P00 to P07
Port 1
P10 to P15
Port 2
P20 to P27
Port 3
P30 to P37
Port 4
P40 to P47
Port DH
PDH0 to PDH7
Port DL
PDL0 to PDL15
Port CS
PCS0 to PCS7
Port CT
PCT0 to PCT7
Port CM
PCM0 to PCM4
Cautions 1. When switching to the control mode, be sure to set ports that operate as output pins or I/O
pins in the control mode using the following procedure.
<1> Set the inactive level for the signal output in the control mode in the corresponding bits
of port n (n = 0 to 4, CM, CS, CT, DH, and DL).
<2> Switch to the control mode using the port n mode control register (PMCn).
If <1> above is not performed, the contents of port n may be output for a moment when
switching from the port mode to the control mode.
2. When port manipulation is performed by a bit manipulation instruction (SET1, CLR1, or
NOT1), perform byte data read for the port and process the data of only the bits to be
manipulated, and write the byte data after conversion back to the port.
For example, in ports in which input and output are mixed, because the contents of the
output latch are overwritten to bits other than the bits for manipulation, the output latch of
the input pin becomes undefined (in the input mode, however, the pin status does not
change because the output buffer is off).
Therefore, when switching the port from input to output, set the output expected value to the
corresponding bit, and then switch to the output port. This is the same as when the control
mode and output port are mixed.
3. The state of the port pin can be read by setting the port n mode register (PMn) to the input
mode regardless of the settings of the PMCn register. When the PMn register is set to the
output mode, the value of the port n register (Pn) can be read in the port mode while the
output state of the alternate function can be read in the control mode.
CHAPTER 14 PORT FUNCTIONS
Port Function
8-bit input
NMI input, timer/counter output stop signal input,
external interrupt input, A/D converter (ADC)
external trigger input
6-bit I/O
Timer/counter I/O
External interrupt input
8-bit I/O
Timer/counter I/O
External interrupt input
8-bit I/O
Serial interface I/O (UART0 to UART2)
8-bit I/O
Serial interface I/O (CSI0, CSI1, FCAN)
8-bit I/O
External address bus (A16 to A23)
16-bit I/O
External address/data bus (AD0 to AD15)
8-bit I/O
External bus interface control signal output
8-bit I/O
External bus interface control signal output
5-bit I/O
Wait insertion signal input, internal system clock
output, external bus interface control signal I/O
User's Manual U14492EJ5V0UD
Function in Control Mode
Block Type
F
B, N
B, N
A, C, G, H, M
A, C, M
P
O
J
E, J
D, E, J
675

Advertisement

Table of Contents
loading

Table of Contents