Chapter 10
General-Purpose Time Base/Free-Running Timer
X - 2 Overview
10.1 Overview
This LSI has a time base timer and an 8-bit free-running timer (timer 6).
The time base timer is a 15-bit timer counter.
10.1.1 Functions
Table:10.1.1 shows the clock source and the interrupt generation cycle that can be used for the timer 6 and the
time base timer.
Table:10.1.1 Clock Source and Interrupt Generation Cycle
Time base timer
Timer 6
(8-bit free-running)
8-bit timer operation - Yes
Interrupt source PERI0IRQ2 PERI0IRQ1
Clock source
HCLK
SCLK
HCLK
SCLK
SYSCLK
HCLK/2
7
(*1)
HCLK/2
13
(*1)
SCLK/2
7
(*2)
SCLK/2
13
(*2)
Interrupt generation
cycle
2
7
× 1/f
HCLK
, 2
8
× 1/f
HCLK
2
9
× 1/f
HCLK
, 2
10
× 1/f
HCLK
2
12
× 1/f
HCLK
, 2
13
× 1/f
HCLK
2
14
× 1/f
HCLK
, 2
15
× 1/f
HCLK
2
7
× 1/f
SCLK
, 2
8
× 1/f
SCLK
2
9
× 1/f
SCLK
, 2
10
× 1/f
SCLK
2
12
× 1/f
SCLK
, 2
13
× 1/f
SCLK
2
14
× 1/f
SCLK
, 2
15
× 1/f
SCLK
The interrupt generation cycle is
decided by the arbitrary value
written to TM6OC.
HCLK: machine clock (high-speed oscillation)
SCLK: machine clock (low-speed oscillation)
SYSCLK: system clock [Chapter 4 4.1 Clock Control]
*1: It is available when 'HCLK' is selected as a clock source of time base timer.
*2: It is available when 'SCLK' is selected as a clock source of time base timer.