|
|
View previous topic :: View next topic |
Author |
Message |
guest Guest
|
access to raw interrupts |
Posted: Wed Apr 07, 2004 1:45 am |
|
|
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 |
Posted: Wed Apr 07, 2004 2:07 am |
|
|
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 |
|
|
|
|
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
|