Functional overview
STM32F031x4 STM32F031x6
18/113
DocID025743 Rev 3
3.10.3 V
BAT
battery voltage monitoring
This embedded hardware feature allows the application to measure the V
BAT
battery voltage
using the internal ADC channel ADC_IN18. As the V
BAT
voltage may be higher than V
DDA
,
and thus outside the ADC input range, the V
BAT
pin is internally connected to a bridge
divider by 2. As a consequence, the converted digital value is half the V
BAT
voltage.
3.11
Timers and watchdogs
The STM32F031x4/x6 devices include up to five general-purpose timers and an advanced
control timer.
compares the features of the different timers.
3.11.1 Advanced-control timer (TIM1)
The advanced-control timer (TIM1) can be seen as a three-phase PWM multiplexed on six
channels. It has complementary PWM outputs with programmable inserted dead times. It
can also be seen as a complete general-purpose timer. The four independent channels can
be used for:
Input capture
Output compare
PWM generation (edge or center-aligned modes)
One-pulse mode output
If configured as a standard 16-bit timer, it has the same features as the TIMx timer. If
configured as the 16-bit PWM generator, it has full modulation capability (0-100%).
The counter can be frozen in debug mode.
Table 5. Timer feature comparison
Timer
type
Timer
Counter
resolution
Counter
type
Prescaler
factor
DMA request
generation
Capture/compare
channels
Complementary
outputs
Advanced
control
TIM1
16-bit
Up,
down,
up/down
Any integer
between 1
and 65536
Yes
4
3
General
purpose
TIM2 32-bit
Up,
down,
up/down
Any integer
between 1
and 65536
Yes
4
No
TIM3
16-bit
Up,
down,
up/down
Any integer
between 1
and 65536
Yes
4
No
TIM14
16-bit
Up
Any integer
between 1
and 65536
No
1
No
TIM16,
TIM17
16-bit
Up
Any integer
between 1
and 65536
Yes
1
1
微可Vicor——值得信赖的元器件供应商
http://www.vicor.top/
021-31660491
微可Vicor——值得信赖的元器件供应商
http://www.vicor.top/
021-31660491