|
|
View previous topic :: View next topic |
Author |
Message |
Marc-Andre Filion Guest
|
PIC 18F452 Interrupts Priority |
Posted: Fri Dec 13, 2002 9:46 am |
|
|
Hy,
Is there a way that can place my RS-232 sub-routine in the High priority vector (0x08) instead of the low priority vector (0x0018). I'm using a 18f452 with PCH 3.121.
I don't see anything that can go it right now.
thank!
Marc
___________________________
This message was ported from CCS's old forum
Original Post ID: 10030 |
|
|
R.J.Hamlett Guest
|
Re: PIC 18F452 Interrupts Priority |
Posted: Fri Dec 13, 2002 10:44 am |
|
|
:=Hy,
:=Is there a way that can place my RS-232 sub-routine in the High priority vector (0x08) instead of the low priority vector (0x0018). I'm using a 18f452 with PCH 3.121.
:= I don't see anything that can go it right now.
:=
:=thank!
The 'key', is in the #INT definition.
If you use:
#INT_RDA FAST
void RDA_ROUTINE(void) {
//code here
}
The routine will be called using the high priority handler. This is documented in the 'readme' for the compiler, but not in the help.
There is however a big 'caveat'. A routine called this way, will not have the registers saved before execution. It becomes your responsibility to do this. Really, the best way, is to keep the code very simple, and perhaps use assembler, to just do the minimum data transfers needed in the routine.
Best Wishes
___________________________
This message was ported from CCS's old forum
Original Post ID: 10035 |
|
|
|
|
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
|