PWM input capture
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-04-23 12:16 PM
Posted on April 23, 2012 at 21:16
It looks to me like the hardware for Tim4 will support PWM input capture on channel 3/4,
but when I look at the source code for the standard peripheral library (V3.5.0) the procedureTIM_PWMIConfig appears to be hardwired to channels 1/2 -- am I missing something ? BTW PWM input capture is pretty badly documented in both the reference manuals and the examples with the standard peripheral library !Geoffrey
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2012-04-23 2:49 PM
Posted on April 23, 2012 at 23:49
Yes, there would appear to be a bunch of code missing. You could add in support for channels 3 & 4 pairing, or use TIM_ICInit() for each channel. I haven't used the channels in this mode, but they are diagrammed to support it.
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..
