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 #303 background imageLoading...
Page #303 background image
RL78/G15 CHAPTER 7 12-BIT INTERVAL TIMER
R01UH0959EJ0110 Rev.1.10 Page 303 of 765
Mar 7, 2023
7.3.3 Interval timer control register (ITMC)
This register is used to set up the starting and stopping of the 12-bit interval timer operation and to specify the timer
compare value.
The ITMC register can be set by a 16-bit memory manipulation instruction.
Reset signal generation sets this register to 0FFFH.
Figure 7-4. Format of Interval Timer Control Register (ITMC)
Address: FFF90H After reset: 0FFFH R/W
Symbol 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ITMC RINTE
0 0 0
ITCMP
11
ITCMP
10
ITCMP
9
ITCMP
8
ITCMP
7
ITCMP
6
ITCMP
5
ITCMP
4
ITCMP
3
ITCMP
2
ITCMP
1
ITCMP
0
RINTE 12-bit interval timer operation control
0 Count operation stopped (count clear)
1 Count operation started
ITCMP11 to ITCMP0 Specification of the 12-bit interval timer compare value
001H
These bits generate an interrupt at the fixed cycle (count clock cycles x (ITCMP setting +
1)).
・・・
FFFH
000H Setting prohibited
Example interrupt cycles when 001H or FFFH is specified for ITCMP11 to ITCMP0
ITCMP11 to ITCMP0 = 001H, count clock: when f
IL
= 15 kHz
1/15 [kHz] × (1 + 1) 0.1333 [ms] = 133.3 [μs]
ITCMP11 to ITCMP0 = FFFH, count clock: when f
IL
= 15 kHz
1/15 [kHz] × (4095 + 1) 273 [ms]
Caution 1. Set the TMKAMK flag to 1 to disable processing of the INTIT interrupt before stopping the counter
(by clearing the RINTE bit to 0). Clear the TMKAIF flag to 0 to enable INTIT interrupt processing
before restarting counter operation (by setting the RINTE bit to 1).
Caution 2. The value read from the RINTE bit is applied one count clock cycle after setting the RINTE bit to 1.
Caution 3. When setting the RINTE bit after returned from standby mode and entering standby mode again,
confirm that the written value of the RINTE bit is reflected, or wait that more than one clock of the
count clock has elapsed after returned from standby mode. Then enter standby mode.
Caution 4. Only change the setting of the ITCMP11 to ITCMP0 bits when the counting operation is stopped
(RINTE = 0). However, it is possible to change the settings of the ITCMP11 to ITCMP0 bits at the
same time as when changing the setting of the RINTE bit from 0 to 1 or 1 to 0.

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