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

12F675 Interrupt problem

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 25, 2013 10:29 pm     Reply with quote

Quote:
ext_int_edge(H_TO_L);
enable_interrupts(INT_RA3);

The H_TO_L condition appear that it does not work and every button push work as it was 2 actions.

The ext_int_edge() function doesn't work with INT_RA. It only works with #int_ext.

How to detect only the falling edge:
You can read the input pin inside the #int_ra routine, and if it's at a low
level, then you have detected the falling edge. Then perform your action.
Don't do anything if you read the signal as a high level, because it means
the interrupt was caused by the rising edge (L to H).
Abid



Joined: 25 Oct 2013
Posts: 3

View user's profile Send private message

PostPosted: Sat Oct 26, 2013 2:31 am     Reply with quote

Thank PCM programmer Very Happy Very Happy !!
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