Port Mode Register 3 (Pm3) - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

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.
Address: FFF23H
After reset: FFH
Symbol
7
PM3
1
PM3n
0
1
Note These are not provided in 24-pin products.
Caution Be sure to set bits 7 and 6 to "1".
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 11-21. Format of Port Mode Register 3 (PM3)
R/W
6
5
Note
1
PM35
Output mode (output buffer on)
Input mode (output buffer off)
CHAPTER 11 SERIAL ARRAY UNIT
4
3
Note
PM34
PM33
P3n pin I/O mode selection (n = 0 to 5)
2
1
PM32
PM31
0
PM30
335

Advertisement

Table of Contents
loading

Table of Contents