EasyManuals Logo

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 #238 background imageLoading...
Page #238 background image
RL78/G15 CHAPTER 6 TIMER ARRAY UNIT
R01UH0959EJ0110 Rev.1.10 Page 238 of 765
Mar 7, 2023
6.8.3 Operation as frequency divider (channels 0 and 3 only)
The timer array unit can be used as a frequency divider that divides a clock input to the TI0n pin and outputs the result
from the TO0n pin.
The divided clock frequency output from TO0n can be calculated by the following expression.
When rising edge/falling edge is selected:
Divided clock frequency = Input clock frequency/{(Set value of TDR0n + 1) × 2}
When both edges are selected:
Divided clock frequency Input clock frequency/(Set value of TDR0n + 1)
Timer count register 0n (TCR0n) operates as a down counter in the interval timer mode.
After the channel start trigger bit (TS0n) of timer channel start register 0 (TS0) is set to 1, the TCR0n register loads the
value of timer data register 0n (TDR0n) when the TI0n valid edge is detected. If the MD0n0 bit of timer mode register 0n
(TMR0n) is 0 at this time, INTTM0n is not output and TO0n is not toggled. If the MD0n0 bit of timer mode register 0n
(TMR0n) is 1, INTTM0n is output and TO0n is toggled.
After that, the TCR0n register counts down at the valid edge of the TI0n pin. When TCR0n = 0000H, it toggles TO0n. At
the same time, the TCR0n register loads the value of the TDR0n register again, and continues counting.
If detection of both the edges of the TI0n pin is selected, the duty factor error of the input clock affects the divided clock
period of the TO0n output.
The period of the TO0n output clock includes a sampling error of one period of the operation clock.
Clock period of TO0n output = Ideal TO0n output clock period ± Operation clock period (error)
The TDR0n register can be rewritten at any time. The new value of the TDR0n register becomes valid during the next
count period.
Remark n: Channel number (n = 0, 3)

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