Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
281
/
631
Basic timers (TIM6 and TIM7)
Basic timers introduction
Basic timers TIM6 and TIM7 each contain a 16-bit auto-reload counter.
These two timers are independent of each other and do not share any resources.
The basic timer can provide a time reference for general purpose timers, and in particular can provide a clock for a
digital-to-analog converter (DAC).
The basic timer is directly connected to the DAC inside the chip and drives the DAC directly through the trigger
output.
Main features of Basic timers
16-bit auto-reload up-counting counters.
16-bit programmable prescaler. (The frequency division factor can be configured with any value between 1 and
65536)
Synchronization circuit for triggering DAC
The events that generate the interrupt/DMA are as follows:
Update event
Figure 12-1 Block diagram of TIMx
(
x = 6 and 7
)
The event
Interrupt and DMA
Trigger controller
Controller
PSC
prescaler
CK_PSC
Reset, enable, count
counter(up-counting)
CK_CNT
TRGO
auto-reload register
UDIT
To DAC
Internal clock(CK_INT)
TIMxCLK
from RCC
Update event
Stop, clear or up
Update event