29.01.2015 Views

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

STM32F101xx, STM32F102xx, STM32F103xx, STM32F105xx and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

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

RM0008<br />

Figure 77.<br />

Capture/compare channel (example: channel 1 input stage)<br />

TI1F_ED<br />

to the slave mode controller<br />

TI1F_Rising<br />

TI1 0<br />

filter<br />

TI1F<br />

Edge<br />

f DTS downcounter<br />

Detector TI1F_Falling<br />

1<br />

ICF[3:0]<br />

TIMx_CCMR1<br />

CC1P<br />

TIMx_CCER<br />

TI2F_rising<br />

(from channel 2)<br />

TI2F_falling<br />

(from channel 2)<br />

0<br />

1<br />

TI1FP1<br />

TI2FP1<br />

01<br />

10<br />

TRC<br />

11<br />

(from slave mode<br />

controller)<br />

CC1S[1:0]<br />

IC1<br />

ICPS[1:0]<br />

TIMx_CCMR1<br />

divider<br />

/1, /2, /4, /8<br />

CC1E<br />

IC1PS<br />

TIMx_CCER<br />

The output stage generates an intermediate waveform which is then used for reference:<br />

OCxRef (active high). The polarity acts at the end of the chain.<br />

Figure 78.<br />

Capture/compare channel 1 main circuit<br />

APB Bus<br />

MCU-peripheral interface<br />

read CCR1H S<br />

read CCR1L<br />

R<br />

CC1S[1]<br />

CC1S[0]<br />

IC1PS<br />

CC1E<br />

CC1G<br />

TIM1_EGR<br />

read_in_progress<br />

input<br />

mode<br />

Capture/compare preload register<br />

capture_transfer<br />

Capture/compare shadow register<br />

capture<br />

8 8<br />

high<br />

(if 16-bit)<br />

Counter<br />

low<br />

compare_transfer<br />

write_in_progress<br />

comparator<br />

output<br />

mode<br />

CNT>CCR1<br />

CNT=CCR1<br />

S<br />

R<br />

write CCR1H<br />

write CCR1L<br />

CC1S[1]<br />

CC1S[0]<br />

OC1PE<br />

OC1PE<br />

UEV<br />

TIM1_CCMR1<br />

(from time<br />

base unit)<br />

270/995 Doc ID 13902 Rev 9

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

Saved successfully!

Ooh no, something went wrong!