EasyManuals Logo
Home>Renesas>Microcontrollers>RL78/G15

Renesas RL78/G15 User Manual

Renesas RL78/G15
765 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #201 background imageLoading...
Page #201 background image
RL78/G15 CHAPTER 6 TIMER ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 201 of 765
Mar 7, 2023
6.3.14 Registers controlling port functions of pins to be used for timer I/O
Using port pins for the timer array unit functions requires setting of the registers that control the port functions multiplexed
on the target pins (port mode register (PMxx), port register (Pxx), and port mode control register (PMCxx)). For details,
see 4.3.1 Port mode registers 0, 2, 4, 12 (PM0, PM2, PM4, PM12), 4.3.2 Port registers 0, 2, 4, 12, 13 (P0, P2, P4,
P12, P13), and 4.3.5 Port mode control registers 0, 2 (PMC0, PMC2).
The port mode register (PMxx), port register (Pxx), and port mode control register (PMCxx) to be set depend on the
product. For details, see 4.5.3 Register setting examples for used port and alternate functions.
When using the ports (such as P03/TO00) 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 P03/TO00 for timer output
Set the PMC03 bit of port mode control register 0 to 0.
Set the PM03 bit of port mode register 0 to 0.
Set the P03 bit of port register 0 to 0.
When using the ports (such as P04/TI01) 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 P04/TI01 for timer input
Set the PMC04 bit of port mode control register 0 to 0.
Set the PM04 bit of port mode register 0 to 1.
Set the P04 bit of port register 0 to 0 or 1.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas RL78/G15 and is the answer not in the manual?

Renesas RL78/G15 Specifications

General IconGeneral
BrandRenesas
ModelRL78/G15
CategoryMicrocontrollers
LanguageEnglish

Related product manuals