Posted on June 13, 2012 at 17:13The original post was too long to process during our migration. Please click on the attachment to read the original post.
Posted on June 13, 2012 at 18:58thanks man......really appreciate your help...... but is it necessary to use TIM4? I've tried to use STM_EVAL_LEDOn(LEDn) function instead of using timer compatator, but it didn't work. Can you tell me how can we just turn on led without blinking or using TIM4?
I'd start by not calling TIM4_Config(), which changes the GPIO pins to AF (Alternate Funtion) mode. The LEDs LD3, LD4, LD5, and LD6 are conveniently behind TIM4 channels, but you can leave them in GPIO mode.
You should then be able to use : STM_EVAL_LEDOff(LED4); STM_EVAL_LEDOn(LED4); STM_EVAL_LEDToggle(LED4);
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..