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

access to raw interrupts

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







access to raw interrupts
PostPosted: Wed Apr 07, 2004 1:45 am     Reply with quote

Just downloaded CCS, and trying to port a small 12F675 app from HI TECH C. I want to be able to handle the raw interrupt (in C code of course), but the manual seems to indicate I can only access specific interrupts via the #int_xx directives. This seems a bit clunky to me, I don't want the overhead of the library ISR, I just want to handle the interrupt and deal with the hardware directly myself.

How do I do this? How do I set up an interrupt function that handles an interrupt without the CCS provided code?

cheers
Ttelmah
Guest







Re: access to raw interrupts
PostPosted: Wed Apr 07, 2004 2:07 am     Reply with quote

guest wrote:
Just downloaded CCS, and trying to port a small 12F675 app from HI TECH C. I want to be able to handle the raw interrupt (in C code of course), but the manual seems to indicate I can only access specific interrupts via the #int_xx directives. This seems a bit clunky to me, I don't want the overhead of the library ISR, I just want to handle the interrupt and deal with the hardware directly myself.

How do I do this? How do I set up an interrupt function that handles an interrupt without the CCS provided code?

cheers

Look at #int_global.
Whatever you put in this routine replaces the global interrupt handler. Look also at the example file:
ex_glint.c

Which shows an example of using this.

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