2012-04-23 12:16 PM
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 !Geoffrey2012-04-23 02:49 PM
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.