One Shot Mode; Figure 71. Bftm - One Shot Mode; Figure 72. Bftm - One Shot Mode Counter Updating - Holtek HT32F52342 User Manual

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

Advertisement

32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F52342/HT32F52352

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 71. BFTM – One Shot Mode
0xFFFF_FFFF
CMP
CNT
MIF
CEN
Figure 72. 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.30
CNT value unchanged
when CEN is reset
By S/W
: Updated by software
: Cleared by software
306 of 656
: Updated by software
: Cleared by software
: Cleared by hardware
Time
Time
: Cleared by hardware
September 28, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ht32f52352

Table of Contents