2018-03-09 1:06 PM
I am using STM32Cube to setup my timers. I would like to have TIM1 in Encoder Mode. I would like to do two things:
Thanks for all of your help.
2018-03-11 1:59 PM
Is there any reason I can't set Master Mode in STM32Cube?
Cube - as any other library - usually provides support for standard usage scenarios. It's quite unusual to do anything on update in encoder mode - and I'd say, if you want to do that, you are probably mistaken in your problem analysis.
Otherwise I don't see any problem setting TRGO to Update in encoder mode (and then whatever slave mode in the target timer).
However, if my timer IS set to Encoder Mode, I cannot set the Slave Mode.
Encoder mode *is* one of the slave modes. Read the TIM chapter of RM, concentrate on the description of TIMx_SMCR.
Also, Encoder mode *does* work only on externally supplied signals, why would you want to start it in any particular way?
You may want to tell us what do you want to accomplish.
JW
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.