cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle with output compare

ari_v
Associate II
Posted on March 03, 2008 at 10:30

Toggle with output compare

1 REPLY 1
ari_v
Associate II
Posted on May 17, 2011 at 12:25

Hi,

I'm trying to toggle a pin at a specific sequence and must be very accurate.

Therefore, I want to use the output compare with TIM3 CH4.

All I want to do is to load the TIM3->CCR4 register with required value, wait until compare event occurs, then load next interval value to CC4, and so on. I do not want to use interrupt, and I want CH4 to toggle the associated pin (PB1) automatically when compare event occurs.

From some reason I did not succeed to do this simple task. Could anyone assist?

Thanks,

Ari