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

QEi module

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



Joined: 28 May 2010
Posts: 3

View user's profile Send private message

QEi module
PostPosted: Wed Jun 23, 2010 11:40 am     Reply with quote

When use module QEi of PIC18f4431, disable all interrupt IC1,IC2,IC3.
But IC1Flag,IC2Flag,IC3Flag will set 1 automatically when an interrupt condition occur.
I think it don't use any instruction cycle to change its flag.
The Proteus show it true, but when I program in a real PIC, I recognize it seem not true because the delay_ms(1000) generate delay about 3 second when the encoder generate 18000 pulse/second, and it delay 1 second when the encoder stop working (0 pulse/second). I think because encoder signal made interrupt, is it true?
I use crystal 20 MHz.
please explain for me! Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jun 23, 2010 12:57 pm     Reply with quote

Post a very small program that shows the problem (10 lines in main). The program must compile with no errors. Also post your compiler
version.

Here is an example of a short program. Notice it has no "Wizard" code:
http://www.ccsinfo.com/forum/viewtopic.php?t=37206&start=2
The program you post should be as short as that (if possible).
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