cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder mode with CubeMX

turboscrew
Senior III
Posted on April 06, 2018 at 21:47

Now that encoder mode seems to be missing from CubeMX, at least for STM32F070 and STM32F407 devices, what is the most 'CubeMX-friendly' way to use it? The idea is to generate a CubeMX project, then run a script to make it a project for the IDE we're using. Both devices have encoder mode capable timers.

And why is it, that I've seen F7xx devices configured to use encoder mode with CubeMX? Is the CubeMX itself different or what's the thing?

#cube-mx #encoder-mode #quadrature-encoder
1 ACCEPTED SOLUTION

Accepted Solutions
turboscrew
Senior III
Posted on April 08, 2018 at 09:19

A-ha, there IS a selection for encoder mode. It's just not slave mode (in CubeMX) even if it's set by writing the mode into the slave mode selection field in SMCR. It's found under 'Combined Channels'.

View solution in original post

1 REPLY 1
turboscrew
Senior III
Posted on April 08, 2018 at 09:19

A-ha, there IS a selection for encoder mode. It's just not slave mode (in CubeMX) even if it's set by writing the mode into the slave mode selection field in SMCR. It's found under 'Combined Channels'.