09.12.2012 Views

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

RM0090: Reference manual - STMicroelectronics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

General-purpose timers (TIM9 to TIM14) <strong>RM0090</strong><br />

Figure 165. General-purpose timer block diagram (TIM9 and TIM12)<br />

TIMx_CH1<br />

TIMx_CH2<br />

TI1<br />

TI2<br />

event<br />

ITR0<br />

ITR1<br />

ITR2<br />

ITR3<br />

16.3 TIM10/TIM11 and TIM13/TIM14 main features<br />

The features of general-purpose timers TIM10/TIM11 and TIM13/TIM14 include:<br />

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

TI1FP1<br />

TI2FP2<br />

● 16-bit programmable prescaler used to divide the counter clock frequency by any factor<br />

between 1 and 65536 (can be changed “on the fly”)<br />

● independent channel for:<br />

– Input capture<br />

– Output compare<br />

– PWM generation (edge-aligned mode)<br />

– One-pulse mode output<br />

● Interrupt generation on the following events:<br />

– Update: counter overflow, counter initialization (by software)<br />

– Input capture<br />

– Output compare<br />

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

U<br />

TRGI<br />

Auto-reload register<br />

Trigger<br />

controller<br />

CK_PSC PSC<br />

Prescaler<br />

CK_CNT<br />

+/-<br />

Stop, Clear<br />

CNT<br />

COUNTER<br />

CC1I<br />

Input filter &<br />

Edge detector<br />

TI1FP1<br />

TI1FP2<br />

IC1<br />

U<br />

IC1PS<br />

Prescaler<br />

Capture/Compare 1 register<br />

TRC<br />

CC2I<br />

Input filter &<br />

Edge detector<br />

TI2FP1<br />

TI2FP2<br />

TRC<br />

IC2<br />

IC2PS U<br />

Prescaler<br />

Capture/Compare 2 register<br />

Notes:<br />

Reg Preload registers transferred<br />

to active registers on U event<br />

according to control bit<br />

interrupt<br />

Internal clock (CK_INT)<br />

ITR<br />

TI1F_ED<br />

TRC<br />

TGI<br />

Slave<br />

mode<br />

controller<br />

Reset, Enable, Count<br />

U<br />

UI<br />

CC1I<br />

OC1REF<br />

CC2I<br />

OC2REF<br />

output<br />

control<br />

output<br />

control<br />

OC1<br />

OC2<br />

TIMx_CH1<br />

TIMx_CH2<br />

ai17190

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

Saved successfully!

Ooh no, something went wrong!