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
Re: ext_int_edge in an ISR?
Posted: Fri Jul 18, 2003 5:39 pm
:=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?
Posted: Sat Jul 19, 2003 1:44 pm
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
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