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

PIC 18F452 Interrupts Priority

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







PIC 18F452 Interrupts Priority
PostPosted: Fri Dec 13, 2002 9:46 am     Reply with quote

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
PostPosted: Fri Dec 13, 2002 10:44 am     Reply with quote

:=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
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