RL78/F13, F14 CHAPTER 6 TIMER ARRAY UNIT
R01UH0368EJ0210 Rev.2.10 464
Dec 10, 2015
6.3.16 Port mode registers 1, 3, 4, 7, 12 (PM1, PM3, PM4, PM7, PM12)
These registers set input/output of ports 1, 3, 4, 7, 12 in 1-bit units.
The presence or absence of timer I/O pins depends on the product. When using the timer array unit, set the following
port mode registers according to the product used.
Group A and B products: PM1, PM3, PM12
Group C and D products: PM1, PM3, PM4, PM12
Group E products: PM1, PM3, PM4, PM7, PM12
When using the ports (such as P17/TO00/TI00 and P16/TO2/TI02) 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 P16/TO02/TI02 for timer output
Set the PM16 bit of port mode register 1 to 0.
Set the P16 bit of port register 1 to 0.
When using the ports (such as P17/TO00/TI00 and P16/TO2/TI02) to be shared with the timer output 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 P16/TO02/TI02 for timer input
Set the PM16 bit of port mode register 1 to 1.
P16 bit of port register may be 0 or 1.
Set the PM1, PM3, PM4, PM7, and PM12 registers by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.