Forum Discussion
Altera_Forum
Honored Contributor
10 years agoIncremental Motor Encoder -- How Best to Count Transitions
I need to count the transitions (high and low) of a incremental motor encoder. I wrote a simple async counter, using only the encoder output signal as the my stimulus (i.e. always @ (posedge ...
Altera_Forum
Honored Contributor
10 years agoThe fmax should be reported in the compilation report as it is a seperate clock. The fmax is then the frequency of the counter, but also keep an eye on the duty cycle. I assume it cannot be too high or low. I have absolutely no idea about the minimum pulse width.
Also don't forget to implement a synchroniser between the two clock domains. Unsynchronised data transfers could result in strange behaviour. I don't know about any IP for this.