CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

16 bit qei to 32 bit mode

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
raman00084@gmail.com



Joined: 28 Jul 2014
Posts: 38

View user's profile Send private message

16 bit qei to 32 bit mode
PostPosted: Thu Apr 18, 2019 12:21 am     Reply with quote

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: 19258

View user's profile Send private message

PostPosted: Thu Apr 18, 2019 1:57 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group