2015-04-13 8:04 AM
Hello st!
Today i bumped into a problem with code generation for encoders in CubeMx tool. I've read all topics on this site connected to timers in encoder modes, but all i've found was only not-working-code, or almost-working-code. Problem: I would like to run my timers in encoder mode. In other threads i saw Init functions, containing:(...)
encoder.EncoderMode = TIM_ENCODERMODE_TI12;
(...)
HAL_TIM_Encoder_Init(&timer, &encoder);
(...)