AnsweredAssumed Answered

Step+Dir Interface to STM32F4

Question asked by karpavicius.linas on May 30, 2016
Latest reply on Jun 2, 2016 by karpavicius.linas
Hello, i am in the path of developing brush-less DC servo system for CNC mill,

Because i will use motor encoder, as well as position quadrature encoder, i need ability of hardware tracking step and dir impulses. It would be best to use signed counter, so my PID loop will be as efficiency as it can be and with no jitter.

Basically i need 32b counter that counts external impulses with up/down mode selection by external pin. But it i was unable to find how to do that. Any idea how ?

I really don't want to use interrupt on STEP pin, that will check direction and do cnt++ or cnt-- operation, that can be problem, when i get pulses at more than 100kHz

Outcomes