Chapter 8
8-bit Timer
VIII - 2 Overview
8.1 Overview
This LSI has six 8-bit timers (Timer 0 to Timer 5).
I/O pins used for each 8-bit Timer has three pin groups, Group-A and Group-B. (ex. Timer 0 has TM0IOA and
TM0IOB.)
In this chapter, the suffix of "A" and "B" is omitted to describe functions of 8-bit Timer.
8.1.1 Functions
Table:8.1.1 shows functions that can be used for each timer.
Table:8.1.1 8-bit Timer Functions
Timer 0
(8-bit)
Timer 1
(8-bit)
Timer 2
(8-bit)
Timer 3
(8-bit)
Timer 4
(8-bit)
Timer 5
(8-bit)
Interrupt source TM0IRQ TM1IRQ TM2IRQ TM3IRQ TM4IRQ PERI0IRQ0
Event count TM0IOA(P05)
TM0IOB(P03)
TM1IOA(P55)
TM1IOB(P20)
TM2IOA(P05)
TM2IOB(P02)
TM3IOA(P56)
TM3IOB(P72)
TM4IOA(P34)
TM4IOB(P01)
TM5IOA(P21)
TM5IOB(P73)
Timer pulse
output
PWM output - - -
PWM output with
additional pulses
---
Pulse width
measurement
External
Interrupt 0
(IRQ0A/P10)
(IRQ0B/P60)
-
External
Interrupt 2
(IRQ2A/P80)
(IRQ2B/P62)
-
External
Interrupt 4
(IRQ4A/P14)
(IRQ4B/P72)
(IRQ4C/P12)
-
Cascade
connection
√ (16-bit counter) √ (16-bit counter) √ (16-bit counter)
Clock source
HCLK
HCLK/4
HCLK/16
HCLK/32
HCLK/64
SYSCLK/2
SYSCLK/4
SCLK
TM0IO input
HCLK
HCLK/4
HCLK/16
HCLK/64
HCLK/128
SYSCLK/2
SYSCLK/8
SCLK
TM1IO input
HCLK
HCLK/4
HCLK/16
HCLK/32
HCLK/64
SYSCLK/2
SYSCLK/4
SCLK
TM2IO input
HCLK
HCLK/4
HCLK/16
HCLK/64
HCLK/128
SYSCLK/2
SYSCLK/8
SCLK
TM3IO input
HCLK
HCLK/4
HCLK/16
HCLK/32
HCLK/64
SYSCLK/2
SYSCLK/4
SCLK
TM4IO input
HCLK
HCLK/4
HCLK/16
HCLK/64
HCLK/128
SYSCLK/2
SYSCLK/8
SCLK
TM5IO input
HCLK: Machine clock (for high-speed operation)
SCLK: Machine clock (for low-speed operation)
SYSCLK: System clock [4.1 Clock Control]