Datasheet

RL78/L12 CHAPTER 6 TIMER ARRAY UNIT
R01UH0330EJ0200 Rev.2.00 207
Dec 13, 2013
6.3.16 Port mode registers 1, 3 to 5, 14 (PM1, PM3 to PM5, PM14)
These registers set input/output of ports 1, 3 to 5, 14 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.
32, and 44-pin products: PM1, PM3, PM14
48-pin products: PM1, PM3, PM4, PM14
52, and 64-pin products: PM1, PM3 to PM5, PM14
When using the ports (such as P140/TO00 and P41/TO04/TI04) to be shared with the timer output pin for timer output,
set the port mode control register (PMCxx) bit, port mode register (PMxx) bit and port register (Pxx) bit corresponding to
each port to 0.
Example: When using P41/TO04/TI04 for timer output
Set the PMC41 bit of port mode control register 4 to 0.
Set the PM41 bit of port mode register 4 to 0.
Set the P41 bit of port register 4 to 0.
When using the ports (such as P141/TI00 and P41/TO04/TI04) to be shared with the timer input pin for timer input, set
the port mode register (PMxx) bit corresponding to each port to 1. And set the port mode control register (PMCxx) bit
corresponding to each port to 0. At this time, the port register (Pxx) bit may be 0 or 1.
Example: When using P41/TO04/TI04 for timer input
Set the PMC41 bit of port mode control register 4 to 0.
Set the PM41 bit of port mode register 4 to 1.
Set the P41 bit of port register 4 to 0 or 1.
The PM1, PM3 to PM5, PM14 registers can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.