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

ext_int_edge in an ISR?

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



Joined: 07 Sep 2003
Posts: 110

View user's profile Send private message

ext_int_edge in an ISR?
PostPosted: Fri Jul 18, 2003 4:59 pm     Reply with quote

Is there any reason to not call ext_int_edge in an ISR? I want to do this to do x2 decoding of an encoder and want the interrupt to fire on both edges of the Phase A pulse.

Al
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516165
_________________
Al Testani
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: ext_int_edge in an ISR?
PostPosted: Fri Jul 18, 2003 5:39 pm     Reply with quote

:=Is there any reason to not call ext_int_edge in an ISR? I want to do this to do x2 decoding of an encoder and want the interrupt to fire on both edges of the Phase A pulse.
-----------------------------------------------------------

<a href="http://groups.google.com/groups?threadm=003101c2be31\%246e003ee0\%240300a8c0\%40main" TARGET="_blank">http://groups.google.com/groups?threadm=003101c2be31\%246e003ee0\%240300a8c0\%40main</a>
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516166
John Taylor
Guest







Re: ext_int_edge in an ISR?
PostPosted: Sat Jul 19, 2003 1:44 pm     Reply with quote

I did what you're suggesting to time 4 channels of RC PPM control with the 4 port B interrupt on a PIC18F6620 and out of an hour of testing did not miss a single edge (4 independent pulses with a 15ms average period of continuously variable duty cycle). The only requirement is that your ISR (+context switching) can't make you miss any edge.

:=Is there any reason to not call ext_int_edge in an ISR? I want to do this to do x2 decoding of an encoder and want the interrupt to fire on both edges of the Phase A pulse.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144516183
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