
RL78/G1P
CHAPTER 6 TIMER ARRAY UNIT
R01UH0895EJ0100 Rev.1.00
157
Nov 29, 2019
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 R/W
Symbol
7 6 5 4 3 2 1 0
PM1 PM17 PM16 PM15 PM14 PM13 PM12 PM11 PM10
Address: FFF23H After reset: FFH R/W
Symbol
7 6 5 4 3 2 1 0
PM3
1
1 PM35 PM34 PM33 PM32 PM31 PM30
PMmn
Pmn pin I/O mode selection (m = 1, 3; n = 0 to 7)
0
Output mode (output buffer on)
1
Input mode (output buffer off)
Summary of Contents for RL78/G1P
Page 770: ...RL78 G1P R01UH0895EJ0100 ...