09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Basic timers (TIM6&TIM7) <strong>RM0090</strong><br />

17 Basic timers (TIM6&TIM7)<br />

This section applies to the whole STM32F4xx family, unless otherwise specified.<br />

17.1 TIM6&TIM7 introduction<br />

The basic timers TIM6 and TIM7 consist of a 16-bit auto-reload counter driven by a<br />

programmable prescaler.<br />

They may be used as generic timers for time-base generation but they are also specifically<br />

used to drive the digital-to-analog converter (DAC). In fact, the timers are internally<br />

connected to the DAC and are able to drive it through their trigger outputs.<br />

The timers are completely independent, and do not share any resources.<br />

17.2 TIM6&TIM7 main features<br />

Basic timer (TIM6&TIM7) features include:<br />

● 16-bit auto-reload upcounter<br />

● 16-bit programmable prescaler used to divide (also “on the fly”) the counter clock<br />

frequency by any factor between 1 and 65536<br />

● Synchronization circuit to trigger the DAC<br />

● Interrupt/DMA generation on the update event: counter overflow<br />

Figure 188. Basic timer block diagram<br />

Internal clock (CK_INT)<br />

TIMxCLK from RCC<br />

521/1416 Doc ID 018909 Rev 3<br />

U<br />

Stop, Clear or up<br />

CK_PSC<br />

PSC<br />

Prescaler<br />

CK_CNT<br />

± CNT<br />

COUNTER<br />

interrupt & DMA output<br />

Trigger<br />

controller<br />

Controller<br />

Auto-reload Register<br />

Flag Preload registers transferred<br />

to active registers on U event according to control bit<br />

event<br />

U<br />

TRGO<br />

Reset, Enable, Count,<br />

UI<br />

to DAC<br />

ai14749b

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!