Features. Holtek HT32F5828

Add to My manuals
637 Pages

advertisement

Features. Holtek HT32F5828 | Manualzz

32-Bit Arm ®

HT32F5828

Cortex ® -M0+ MCU

Features

16-bit auto-reload up-counter

16-bit programmable prescaler that allows division of the counter clock frequency by any factor between 1 and 65536

Single channel for:

● Input Capture function

● Compare Match Output

● PWM waveform output

Interrupt generation with the following events:

● Update event

● Input capture event

Trigger event

Output compare match event

Functional Descriptions

Counter Mode

Up-Counting

The counter counts continuously from 0 to the counter-reload value, which is defined in the

CRR register. Once the counter reaches the counter-reload value, the Timer Module generates an overflow event and the counter restarts to count once again from 0. This action will continue repeatedly. When the update event is generated by setting the UEVG bit in the EVGR register to 1, the counter value will also be initialized to 0.

CK_PSC

CNT_EN

CK_CNT

CNTR

CRR

CRR Shadow Register

PSCR

PSCR Shadow Register

PSC_CNT

Counter Overflow

Update Event Flag

F5

F2

0

F5

Write a new value

Figure 175. Up-counting Example

0

0

F3 F4 F5

0

0

Update the new value

1

36

0

1

1

1

36

1

0

2

1

Software clearing

0

3

1

Rev. 1.00 519 of 637 December 28, 2020

advertisement

Related manuals

advertisement

Table of contents