cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX Selecting timer Enocder Interface.

craig2
Associate
Posted on March 12, 2014 at 22:17

I am trying to use the STM32CubeMX tool to select and generate initialization code for the encoder interface.  I am using the Discovery board (STM32F407VGT) and trying to configure timer 5, but not sure how to get it to allow me to select this interface.  It is grayed out and not sure how to resolve it.  Anyone been able to do this?  Also there does not seem to be an motor encoder example using the new HAL layer,  if any one can point me to one, to would be helpful.  

Thanks

#motor-encoder #st32cubemx
2 REPLIES 2
stm32cube-t
Senior III
Posted on March 13, 2014 at 10:26

Leave the mouse some seconds over the grayed out field: a tooltip is displayed indicating the fields that need to be configured so that  the grayed out field becomes active.

Nickname1997_O
Associate II
Posted on March 13, 2014 at 11:36

hello,

In your specific case , as the encoder uses CH1 and CH2 inputs ,you should let both TIM5 Channel 1 and Channel 2 as ''Disabled'' and use another channel for the input capture fonction you would need.

regards