Datasheet
Functional overview STM32F302x6 STM32F302x8
22/138 DocID025147 Rev 7
3.14 Ultra-fast comparators (COMP)
The STM32F302x6/8 devices embed up to three ultra-fast rail-to-rail comparators which
offer the features below:
• Programmable internal or external reference voltage
• Selectable output polarity.
The reference voltage can be one of the following:
• External I/O
• DAC output
• Internal reference voltage or submultiple (1/4, 1/2, 3/4). Refer to Table 27: Embedded
internal reference voltage for the value and precision of the internal reference voltage.
All comparators can wake up from STOP mode, and also generate interrupts and breaks for
the timers.
3.15 Timers and watchdogs
The STM32F302x6/8 devices include advanced control timer, up to general-purpose timers,
basic timer, two watchdog timers and a SysTick timer.
Table 5 compares the features of the
advanced control, general purpose and basic timers.
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
(1)
16-bit
Up, Down,
Up/Down
Any integer
between 1
and 65536
Yes 4 Yes
General-
purpose
TIM2 32-bit
Up, Down,
Up/Down
Any integer
between 1
and 65536
Yes 4 No
TIM15
(1)
16-bit Up
Any integer
between 1
and 65536
Yes 2 1
TIM16
(1)
,
TIM17
(1)
16-bit Up
Any integer
between 1
and 65536
Yes 1 1
Basic TIM6 16-bit Up
Any integer
between 1
and 65536
Yes 0 No
1. TIM1/15/16/17 can be clocked from the PLL running at 144 MHz when the system clock source is the PLL and AHB or
APB2 subsystem clocks are not divided by more than 2 cumulatively.
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.