AnsweredAssumed Answered

STM32CubeMX and Quadrature Encoder

Question asked by Ovelius.Bengt on Jan 24, 2017
Latest reply on Jan 24, 2017 by Khouloud G

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 Mikroe ARM C compiler

Thanks and best regards

BO

Attachments

Outcomes