Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
194
10
General Timers
10.1
Basic Timer
10.1.1
Introduction
The basic timers (TIM0/TIM1/TIM2/TIM3) consist of a 32-bit auto-reload counter without prescaler. They may be used as generic timers for
time-base generation.
10.1.2
Features
The features of basic timers are given in Table 10-1.
Table 10-1 Basic timers features
Name
KM4: TIM0/TIM1/TIM2/TIM3
KM0: TIM00/TIM01/TIM02/TIM03
Channels
1
1
Clock source
32kHz
32kHz
Resolution
32-bit
32-bit
Prescaler
-
-
Counter mode
Up
Up
One pulse mode
-
-
PWM mode with polarity selection
-
-
Statistic pulse width
-
-
Statistic pulse number
-
-
Interrupt generation
●
●
Input pin
-
-
Output pin
-
-
10.1.3
Block Diagram
The block diagram of the basic timers is shown in Fig 10-1.
CNT counter
Auto-reload register
CK_CNT
Fig 10-1 Block diagram
10.1.4
Functional Description
10.1.4.1
Upcounting Mode
This timer is a 32-bit counter with its related auto-reload register. The counter can count up.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03