Introduction

The Basic Timer is a compact and efficient 32-bit timer peripheral that adopts a pure 32-bit counter architecture without prescaler functionality. Once enabled, the timer starts counting up from its initial value. When the count reaches the user-configured reload register value, it automatically generates a timer update event, clears the counter, and restarts counting, thereby implementing auto-reload continuous cyclic timing functionality.

Features

The features of the basic timer are listed below.

  • 32-bit resolution

  • Up-counting mode

  • Interrupt support

  • Auto-reload support

RTL8721Dx:

Name

LS: TIM0 ~ TIM7

HP: TIM10 ~ TIM13

Clock Source

SDM 32kHz

XTAL 40MHz

Note

The clock source of TIM10 ~ TIM13 is derived from XTAL 40MHz, divided by 40.

Block Diagram

The basic timer mainly consists of a 32-bit counter and a preload register. The block diagram is shown below.

../../../_images/block_diagram.svg