2008-03-03 01:30 AM
Toggle with output compare
2011-05-17 03:25 AM
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