Pumpkin, Inc.

Pumpkin User Forums

Service reentrancy protection with high- and low-priority ISRs

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Service reentrancy protection with high- and low-priority ISRs

Postby graeme » Fri Nov 03, 2006 1:56 am

My PICC-18 and Salvo LE application uses both high and low priority ISRs both of which make OSSignalBinSem() calls.

Do I need to include OSProtect() & OSUnprotect() around the OSSignalBinSem() call in the low-priority ISR ? (since isn't it at risk to reentrancy from a call in the high priority ISR ?)

Thank you.

graeme
 
Posts: 3
Joined: Fri Nov 03, 2006 12:00 am

Re: Service reentrancy protection with high- and low-priority ISRs

Postby aek » Fri Nov 03, 2006 2:15 am

1) Yes.

2) -- You'll get much more performance out of your system if you reserve the High ISR(s) for stuff that does not call Salvo. That way all high ISRs run with 0 Salvo-induced latency. See this recent thread http://www.pumpkininc.com/ubb/Forum7/HTML/000192.html for a discussion and some pointers.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 4 guests

cron