2023-02-15 06:24 AM
Hello,
I'm trying to read the pulse counter with a timer on STM32H747. The counter produces pulses up to 100KHz on one timer channel and high \ low signal to define the direction.
I tried two approaches.
My questions are: does encoder mode supports pulse + direction signal, and is there a good example of using a timer in counter mode (mode 1)?
Thanks.
Solved! Go to Solution.
2023-02-15 07:14 AM
The "Encoder mode" is for quadrature encoders. Timers in 'H7 don't have the direction-step mode (only 'G4 and 'U5 timers support this).
@berendi posted here a possible workaround, but you may want to use an undocumented feature or give up a couple of pins.
JW
2023-02-15 07:14 AM
The "Encoder mode" is for quadrature encoders. Timers in 'H7 don't have the direction-step mode (only 'G4 and 'U5 timers support this).
@berendi posted here a possible workaround, but you may want to use an undocumented feature or give up a couple of pins.
JW
2023-02-15 07:41 AM
Thank you. Very interesting links.