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

2-bit quadrature encoder ISR
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
RLScott



Joined: 10 Jul 2007
Posts: 465

View user's profile Send private message

PostPosted: Mon Jul 30, 2007 6:39 pm     Reply with quote

PCM programmer wrote:
Typically, noise such as ringing is going to occur on the transistions.
The #INT_RB interrupts occur on any edge. If there is ringing on
the transitions, then putting a delay at the start of the isr will give
enough time for the noise to go away...


If the shaft is rotating in only one direction, that may be true. But if the shaft is in the process of reversing direction it is possible to get many transitions arbitrarily close together and it has nothing to do with noise, yet it can be handled properly without any delays.

Robert Scott
Real-Time Specialties
Ypsilanti, Michigan
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
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