Port Mode Registers 1, 3 ( Pm1, 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

6.3.14 Port mode registers 1, 3 ( PM1, PM3)

These registers set input/output of ports 1 and 3 in 1-bit units.
When using the ports (such as P13/TO00/TI00, and P33/TO02/TI02/SSI00) to be shared with the timer output pin for
timer output, set the port mode register (PMxx) bit and port register (Pxx) bit corresponding to each port to 0.
Example: When using P33/TO02/TI02/SSI00 for timer output
Set the PM33 bit of port mode register 3 to "0".
Set the P33 bit of port register 3 to "0".
When using the ports (such as P13/TO00/TI00, P33/TO02/TI02/SSI00) to be shared with the timer input pin for
timer 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 P33/TO02/TI02/SSI00 for timer input
Set the PM33 bit of port mode register 3 to "1".
Set the P33 bit of port register 3 to "0" or "1".
The PM1 and PM3 registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
Figure 6-22. Format of Port Mode Registers 1, 3 (PM1, PM3) (32-pin products)
Address: FFF21H
After reset: FFH
Symbol
7
PM1
PM17
Address: FFF23H
After reset: FFH
Symbol
7
PM3
1
PMmn
0
1
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
R/W
6
5
PM16
PM15
R/W
6
5
1
PM35
Pmn pin I/O mode selection (m = 1, 3; n = 0 to 7)
Output mode (output buffer on)
Input mode (output buffer off)
CHAPTER 6 TIMER ARRAY UNIT
4
3
PM14
PM13
4
3
PM34
PM33
2
1
PM12
PM11
2
1
PM32
PM31
0
PM10
0
PM30
157

Advertisement

Table of Contents
loading

Table of Contents