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

Triggering INT_EXT1 on H_TO_L

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








Triggering INT_EXT1 on H_TO_L
PostPosted: Mon Sep 12, 2005 10:01 am     Reply with quote

(sorry if this double posts, I got an error the first time and it didn't seem to go through)
I'm using an 18f452.

I already have INT_EXT set to trigger on H_TO_L using EXT_INT_EDGE() but it seems that INT_EXT1 is set by default to trigger on L_TO_H. How would I go about changing INT_EXT1 to trigger on H_TO_L?
Is there a command like EXT_INT_EDGE() that I am missing?

Thanks
Ttelmah
Guest







PostPosted: Mon Sep 12, 2005 10:31 am     Reply with quote

Have you read the manual entry for 'ext_int_edge'?.
It supports a second variable, on chips that have more than one interrupt. So you just code:

EXT_INT_EDGE(0, H_TO_L);
EXT_INT_EDGE(1, H_TO_L);

If the first value is omitted it sets the value for INT0.

Best Wishes
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