Variable PWM generation
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2008-08-29 7:42 AM
Posted on August 29, 2008 at 16:42
Variable PWM generation
This discussion is locked. Please start a new topic to ask your question.
11 REPLIES 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:43 AM
Posted on May 17, 2011 at 12:43
Hi,
Also just to state the obvious are you enabling the clock and pointing to the right int handler. i.e. RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM3 , ENABLE); NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; NVIC_InitStructure.NVIC_IRQChannel = TIM3_IRQChannel; NVIC_Init(&NVIC_InitStructure);Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-05-17 3:43 AM
Posted on May 17, 2011 at 12:43
based on your code, looks like you used interrupt for TIM_ITConfig(TIM3, TIM_IT_Update, ENABLE);
and in Interrupt handler you are checking for if (TIM_GetITStatus(TIM3, TIM_IT_CC3)!= RESET) both should be same either you use CC3 or IT_Update
- « Previous
-
- 1
- 2
- Next »