I am using dspic4011 ic. It has a 16-bit qei position counter. It can count pulses from -32700 to + 32700. But I need up to 2 lakhs. Is there any software method ? I am using A and B phases only.
Ttelmah
Joined: 11 Mar 2010 Posts: 19378
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum