problems with TIM2 oc pin output
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2010-11-23 7:45 AM
Posted on November 23, 2010 at 16:45
problems with TIM2 oc pin output
This discussion is locked. Please start a new topic to ask your question.
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:15 AM
Posted on May 17, 2011 at 14:15
Hi kuczek,
Try to changeTIM_OCInitStructure.
TIM_OCMode
= TIM_OCMode_Timing;
byTIM_OCInitStructure.
TIM_OCMode
= TIM_OCMode_PWM1;
MCU LüfterOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:15 AM
Posted on May 17, 2011 at 14:15
TIM_TimeBaseInitStruct.
TIM_Prescaler
= 72 - 1; // 72 MHz
input, 1 MHz output
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:15 AM
Posted on May 17, 2011 at 14:15
hi,
Plese note that i try to use chanel no 2 for generating signal on pin 1 of port A. regards krzysiekOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 5:15 AM
Posted on May 17, 2011 at 14:15 Hi, I'm going to have 1Mhz clocked timer, so the value is ok, but of course comments is not it should be like this TIM_TimeBaseInitStruct.TIM_Prescaler = 72; // 72Mhz/72 = 1Mhz Regards krzysiek
