Hi,
I'm not sure I understand your problem.
* * *
Set the variable enc_counter to 30000.
If the encoder does one step you will
have either 29999 or 30001 in enc_counter. (CCW or CW).
The interrupt assembly code only decrements or increments
the 16 bit value stored in the variable enc_counter.
Is up to your PicBasic code in the main program loop to do
something with the value stored in the variable enc_counter.
Best regards,
Luciano
Bookmarks