Skip to main content
turboscrew
Senior III
April 6, 2018
Solved

Encoder mode with CubeMX

  • April 6, 2018
  • 1 reply
  • 1132 views
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
This topic has been closed for replies.
Best answer by turboscrew
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'.

1 reply

turboscrew
turboscrewAuthorAnswer
Senior III
April 8, 2018
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'.