Basic timers (TIM6&TIM7)
17
Basic timers (TIM6&TIM7)
This section applies to the whole STM32F4xx family devices, unless otherwise specified.
17.1
TIM6&TIM7 introduction
The basic timers TIM6 and TIM7 consist of a 16-bit auto-reload counter driven by a
programmable prescaler.
They may be used as generic timers for time-base 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&TIM7 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 188. Basic timer block diagram
Flag
525/1422
TIMxCLK from RCC
CK_PSC
PSC
Prescaler
Preload registers transferred
to active registers on U event according to control bit
event
interrupt & DMA output
Doc ID 018909 Rev 4
Internal clock (CK_INT)
controller
Controller
U
Auto-reload Register
Stop, Clear or up
CK_CNT
CNT
±
COUNTER
TRGO
Trigger
to DAC
Reset, Enable, Count,
UI
U
RM0090
ai14749b
Need help?
Do you have a question about the STM32F40 Series and is the answer not in the manual?
Questions and answers