RM0401 Rev 3 437/771
RM0401 Basic timers (TIM6)
449
17 Basic timers (TIM6)
17.1 Introduction
The basic timer TIM6 consists of a 16-bit auto-reload counter driven by a programmable
prescaler.
IT can be used as generic timer for timebase generation but it is also specifically used to
drive the digital-to-analog converter (DAC). In fact, the timer is internally connected to the
DAC and is able to drive it through its trigger output.
The timers are completely independent, and do not share any resources.
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.
17.2 TIM6 main features
Basic timer (TIM6) 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 156. Basic timer block diagram
069
,QWHUQDOFORFN&.B,17
$XWRUHORDGUHJLVWHU
&17FRXQWHU
&.B36&
&.B&17
6WRSFOHDURUXS
8,
8
8
1RWHV
5HJ
3UHORDGUHJLVWHUVWUDQVIHUUHG
WRDFWLYHUHJLVWHUVRQ8HYHQW
DFFRUGLQJWRFRQWUROELW
(YHQW
,QWHUUXSW'0$RXWSXW
36&
SUHVFDOHU
7ULJJHU
FRQWUROOHU
5HVHWHQDEOH&RXQW
7,0[&/.IURP5&&
75*2
WR'$&
&RQWURO