cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX and Quadrature Encoder

Bengt Ovelius
Associate
Posted on January 24, 2017 at 09:27

I am new to ARM and STM32CubeMX

My goal is to use this very interesting board

http://www.st.com/en/evaluation-tools/32f429idiscovery.html

and use one internal 16bit counter for time and one 16bit counter for QEI

(QEI=Quadrature Encoder to track angle of crankshaft)

These two counters should have an external reset to zero when each new revolution starts

The datasheet

http://www.st.com/resource/en/datasheet/stm32f429zi.pdf

   says:

Up to 17 timers: up to twelve 16-bit and two 32-

bit timers up to 180 MHz, each with up to 4

IC/OC/PWM or pulse counter and quadrature

(incremental) encoder input

STM32CubeMX is such a great and unique utility and it can not only handle the chip but also the entire board

STM32F429I-DISC1.  This is fascinating. 

Still I am lost here as it is my first use of  STM32CubeMX

Can anybody tell how to do and also indicate  the code needed to read the counters in a C -loop,

An image is enclosed - I am also looking for a way to program the card with

http://www.mikroe.com/mikroc/&sharparm

Thanks and best regards

BO

#stm32cubemx-and-quadrature-encoder
1 REPLY 1
Khouloud GARSI
Lead II
Posted on January 24, 2017 at 10:37

Hello

Ovelius.Bengt

,

May this help you

Best regards,

Khouloud.