interrupt context saving

Beta Testing discussion on mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
peterverkaik
Posts: 174
Joined: 31 Aug 2009 22:44

interrupt context saving

#1 Post by peterverkaik » 16 Dec 2009 17:00

In MikroE C PRO we can use
#pragma disablecontexsaving
to disable automatic saving of workregisters.

What would be the basic PRO equivalent?
I need that because it takes too many cycles
in my interrupt routine.

regards peter

jpc
Posts: 1986
Joined: 22 Apr 2005 17:40
Location: France 87

#2 Post by jpc » 16 Dec 2009 17:09

look in help for DisableContextSaving
Au royaume des aveugles, les borgnes sont rois.

peterverkaik
Posts: 174
Joined: 31 Aug 2009 22:44

#3 Post by peterverkaik » 16 Dec 2009 17:22

Thanks.
Unfortunately it is a sub call, and now ALL interrupt routines
have no context saving.

What I need is context saving for only 1 interrupt routine
that will execute at priority 7 so it will give me deterministic
behaviour.

I would like to disable context saving per function.
Something like
sub T4Interrupt org $3E disablecontextsaving

If org can be specified, why not also disablecontextsaving?

regards peter

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#4 Post by nikola.kostic » 17 Dec 2009 13:37

peterverkaik wrote:I would like to disable context saving per function.
This is currently not supported. I have added your suggestion to our enhancement suggestion list and it will be considered by our developers.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 Beta Testing”