Basic timer (TIM6) RM0091
440/742 Doc ID 018940 Rev 1
19 Basic timer (TIM6)
19.1 TIM6 introduction
The basic timer TIM6 consists of a 16-bit auto-reload counter driven by a programmable
prescaler.
It may be used as a generic timer for time-base generation but it is also specifically used to
drive the digital-to-analog converter (DAC). In fact, TIM6 is internally connected to the DAC
and is able to drive it through its trigger outputs.
19.2 TIM6 main features
● 16-bit auto-reload upcounter
● 16-bit programmable prescaler used to divide (also “on the fly”) the counter clock
frequency by any factor between 1 and 65535
● Synchronization circuit to trigger the DAC
● Interrupt/DMA generation on the update event: counter overflow
Figure 181. Basic timer block diagram
U
Trigger
controller
Stop, Clear or up
TRGO
U
UI
Reset, Enable, Count,
event
Preload registers transferred
to active registers on U event according to control bit
interrupt & DMA output
to DAC
COUNTER
CK_PSC
CNT
CK_CNT
Controller
Internal clock (CK_INT)
TIMxCLK from RCC
±
Prescaler
PSC
Auto-reload Register
Flag
ai14749b