Posted on May 17, 2011 at 13:16Hmm.. otherwise I'm not sure. You probably shouldn't need the TIM_SetCompare1 since that should already be set with the TIM_Pulse. Have you checked that the timer is actually running? I.e.: maybe run in a loop and get ...
Posted on May 17, 2011 at 13:16One thing that initially struck me that you might be missing is turning on the peripheral clock for GPIOC: RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOC, ENABLE); I'm pretty sure that one needs both the AFIO & GPIOC cloc...
Posted on May 17, 2011 at 13:16Indeed, it seems to be working perfectly as far as I can tell (haven't tested everything yet) with that single change. Thanks very much for that one. I spent a great deal of yesterday digging through the reference manu...
Posted on May 17, 2011 at 13:16I've gone up and down my code a number of times attempting to configure PWM output for the default TIM8_CHx pins, but I never seem to get any actual output on the pins themselves. I can tell that the timer is cycling o...
Posted on May 17, 2011 at 13:16*bangs head against desk* Yep, AF_PP was the right mode instead of Out_PP. I'm not sure I understand why it needs to be set as an alternate function given it's one of the default pin mappings, but whatever :)