One Shot Mode; Trigger Adc Start; Figure 61. Bftm - One Shot Mode; Figure 62. Bftm - One Shot Mode Counter Updating - Holtek HT32F52220 User Manual

32-bit microcontroller with arm cortex-m0+ core
Table of Contents

Advertisement

32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52220/HT32F52230

One Shot Mode

By setting the OSM bit in BFTMCR register to 1, the BFTM will operate in the one shot mode. The
BFTM starts to count when the CEN bit is set to 1 by the application program. The counter value
will remain unchanged if the CEN bit is cleared to 0 by the application program. However, the
counter value will be reset to 0 and stop counting when the CEN bit is cleared automatically to 0 by
the internal hardware when a counter compare match event occurs.
CMP
CNT
MIF
CEN
Figure 61. BFTM – One Shot Mode
0xFFFF_FFFF
CMP
CNT
MIF
CEN
Figure 62. BFTM – One Shot Mode Counter Updating

Trigger ADC Start

When a BFTM compare match event occurs, a compare match interrupt f lag, MIF, will be
generated which can be used as an A/D Converter input trigger source.
Rev. 1.10
CNT value unchanged
when CEN is reset
By S/W
: Updated by software
: Cleared by software
238 of 366
: Updated by software
: Cleared by software
: Cleared by hardware
Time
Time
: Cleared by hardware
November 09, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT32F52220 and is the answer not in the manual?

This manual is also suitable for:

Ht32f52230

Table of Contents