Introduction

The capture timer is driven by a 16-bit auto-reload counter and a 16-bit programmable prescaler. It can be used for measuring the pulse width and pulse count of input signals, and the pulse length can be adjusted between 25ns and 107s.

The capture timer provides two capture modes, both of which use the input signal TRGI as the capture source:

  • Pulse width measurement: measures the width of the active level of TRGI.

  • Pulse count measurement: counts the active edges of TRGI within a given period.

Interrupt events can be generated when a capture result is ready and when the counter overflows.

Features

The features of the capture timer are listed below.

  • Clock source is XTAL40MHz

  • Resolution is 16-bit

  • Quantity: 1

  • Prescaler bit width is 16-bit

  • Counter counting mode is up-counting

  • Supports pulse width measurement

  • Supports pulse count measurement

  • Supports interrupts

Block Diagram

The capture timer is mainly composed of a counter, a preload register, a prescaler, and capture registers. The block diagram is shown below.

../../../_images/capture_timer_block_diagram.svg