2015-06-06 06:36 PM
Hello,
My STM32F103 is working as motor driver and work with pwm as an input runs at about 500hz or 2 ms duty. An incremental encoder is connected as a speed reference of the motor output.Pin connection is as follows.Encoder A --> PA6 (TIM3_CH1)Encoder B --> PA7 (TIM3_CH2)PWM1 in --> PB0 (TIM3_CH3)PWM2 in --> PB1 (TIM3_CH4)I already tested encoder function successful however input capture seems not to work. I just want to know if this configuration is correct.Thanks,Kyu #pwm #encoder #stm32f1032015-06-06 06:56 PM
There is only one counting element in the timer, you have it going up/down via the encoder. You can Input Capture those values, but it's probably not going to be helpful measuring unrelated signals.
You'll need to use a different timer.2015-06-07 10:35 AM
2015-06-07 11:01 AM