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.

Advanced-control timers (TIM1&TIM8) <strong>RM0090</strong><br />

written after a COM event for the next step (this can be done in an interrupt subroutine<br />

generated by the rising edge of OC2REF).<br />

Figure 114 describes this example.<br />

Figure 114. Example of hall sensor interface<br />

Interfacing timer<br />

advanced-control timers (TIM1&TIM8)<br />

TIH1<br />

TIH2<br />

TIH3<br />

counter (CNT)<br />

(CCR2)<br />

CCR1<br />

TRGO=OC2REF<br />

COM<br />

OC1<br />

OC1N<br />

OC2<br />

OC2N<br />

OC3<br />

OC3N<br />

Write CCxE, CCxNE<br />

and OCxM for next step<br />

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

C7A3 C7A8 C794 C7A5 C7AB C796<br />

ai17335

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

Saved successfully!

Ooh no, something went wrong!