Basic timers (TIM6/7) RM0367
602/1043 RM0367 Rev 7
23 Basic timers (TIM6/7)
23.1 Introduction
The basic timers TIM6, TIM7 consist of a 16-bit auto-reload counter driven by a
programmable prescaler.
They can be used as generic timers for timebase generation but they are also specifically
used to drive the digital-to-analog converter (DAC). In fact, the timers are internally
connected to the DAC and are able to drive it through their trigger outputs.
The timers are completely independent, and do not share any resources.
23.2 TIM6/7 main features
Basic timer (TIM6/TIM7) features include:
• 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 65536
• Synchronization circuit to trigger the DAC
• Interrupt/DMA generation on the update event: counter overflow
Figure 190. Basic timer block diagram
MS33142V1
Internal clock (CK_INT)
Auto-reload register
CNT counter
+
CK_PSC
CK_CNT
Stop, clear or up
UI
U
U
Notes:
Reg
Preload registers transferred
to active registers on U event
according to control bit
Event
Interrupt & DMA output
PSC
prescaler
Trigger
controller
Reset, enable, Count
TIMxCLK from RCC
TRGO
to DAC
Control