RL78/G1P
CHAPTER 11 SERIAL ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
335
Nov 29, 2019
11.3.17 Port mode register 3 (PM3)
This register sets input/output of port 3 in 1-bit units.
When using the ports (such as P30/INTP2/TxD0/TOOLTxD/SO0) to be shared with the serial data output pin or serial
clock output pin for serial data output or serial clock output, set the port mode register (PMxx) bit corresponding to each
port to 0. And set the port register (Pxx) bit corresponding to each port to 1.
Example: When using P30/INTP2/TxD0/TOOLTxD/SO0 for serial data output
Set the PM30 bit of the port mode register 3 to “0”.
Set the P30 bit of the port register 3 to “1”.
When using the ports (such as P30/INTP2/TxD0/TOOLTxD/SO0) to be shared with the serial data input pin or serial clock
input pin for serial data input or serial clock input, set the port mode register (PMxx) bit corresponding to each port to 1. At
this time, the port register (Pxx) bit may be 0 or 1.
Example: When using P30/INTP2/TxD0/TOOLTxD/SO0 for serial data input
Set the PM30 bit of port mode register 3 to “1”.
Set the P30 bit of port register 3 to 0 or “1”.
The PM3 register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets the PM3 register to FFH.
Refer to Table 4-11 to see which PMxx registers are provided for each product.
Figure 11-21. Format of Port Mode Register 3 (PM3)
Address: FFF23H After reset: FFH R/W
Symbol
7 6 5 4 3 2 1 0
PM3 1 1
PM35
Note
PM34
Note
PM33 PM32 PM31 PM30
PM3n
P3n pin I/O mode selection (n = 0 to 5)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Note
These are not provided in 24-pin products.
Caution Be sure to set bits 7 and 6 to “1”.