STM32 PWM input capture
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2010-07-15 1:34 AM
Posted on July 15, 2010 at 10:34
STM32 PWM input capture
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-05-17 4:58 AM
Posted on May 17, 2011 at 13:58
I might be missing something here, but I'm not sure how you are mapping TIM4_CH1 to T1. How are you doing this?
By default, TIM4_CH1 is mapped to PB6, and TIM4_CH2 is mapped to PB7. My guess is you have to connect these pins together externally to the STM32. Another option is to dynamically re-configure the capture edge (polarity) upon every edge. But, some care must be taken in case an edge occurs immediately before the capture edge is re-configured.