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 CCS Technical Support

Problem in setup_qei()

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
gokulrred



Joined: 22 Nov 2011
Posts: 32
Location: puducherry

View user's profile Send private message Send e-mail

Problem in setup_qei()
PostPosted: Thu Feb 02, 2012 12:17 am     Reply with quote

Previously I was using older versions of CCS.

I was working with Quadrature Encoder Interface...
in that while I was using qei, the setup was like this:
Code:
setup_qei(QEI_RESET_WHEN_MAXCOUNT,QEI_FILTER_DIV_2,QEI_ERROR );

Now updated to the latest one...
When i tried to compile its showing error in the setup.

When I saw the syntax, it is like this:
Code:
setup_qei(QEI_MODE_X2|QEI_RESET_WHEN_MAXCOUNT, QEI_FILTER_ENABLE_QEA|QEI_FILTER_DIV_2,0x1000);

I tried by replacing the old one with the new one.
But its still in error.
Is there anything I need to do extra ?
I am using PIC 18F4431.
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