Ttelmah
Joined: 11 Mar 2010 Posts: 19592
|
|
Posted: Thu Apr 18, 2019 1:57 am |
|
|
That is one of the things the QEI count error interrupt is for. It can be set
to interrupt on overflow of the QEI module. You just implement a 'high
word' counter, and increment or decrement this dependant on whether you
have an underflow or overflow.
We have asked multiple times for details of the module you are trying
to interface. This is _vital_, since if it has an index pulse, the standard
would be to reset the count at the index (so overflow would not occur),
and instead use this to create the high word. |
|