Message-ID: <38D0EA89.67EF0CB@radar.mcgill.ca> From: Frederic Cazenave Organization: IRD (ex ORSTOM) X-Mailer: Mozilla 4.08 [en] (X11; I; IRIX64 6.1 IP26) MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: interrupt priority References: Content-Type: multipart/alternative; boundary="------------7CE3FB370F63F004EC970A2D" Lines: 108 Date: Thu, 16 Mar 2000 14:05:43 GMT NNTP-Posting-Host: 132.206.246.96 X-Complaints-To: abuse AT mcgill DOT ca X-Trace: carnaval.risq.qc.ca 953215543 132.206.246.96 (Thu, 16 Mar 2000 09:05:43 EST) NNTP-Posting-Date: Thu, 16 Mar 2000 09:05:43 EST To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com --------------7CE3FB370F63F004EC970A2D Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Thanks for your answer. > One thing you could try is to redirect the ADC board to one of the > IRQs in the slave PIC which is below the IRQ used for the DSP. This > would take care of the priority issue automatically. > > Could you tell me how to do that? My on board jumper allows me to set the interrupt from 2 to 7. > > The code of the DSP interrupt is quite long. > > This is not a good thing. Can't you restructure your code so that > most of it doesn't run inside the interrupt handler? > The code itself is not very long but I have to transfert data between my DPRAM of the DSP and the PC RAM. In fact the problen was due cause I didn't know I need to add a enable() at the beginning of my DSP interrupt to allows new incomming interrupts . Now it works correctly, but I'm going to take care of your advices. I think I'm going to test the special mask instead of changing priority. Thank you Fred Cazenave -- _________________________________________________________ | | | Frederic CAZENAVE | | _/\_ /^= McGill Radar | | \_/ \// Box 198, MacDonald College | | | /-\ | Ste Anne de Bellevue | | || || Quebec, Canada H9X 3V9 | | Tel (514) 398 7733 fax (514) 398 7755 | | mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr | | http://www.mpl.orstom.fr/hydrologie/catch/ | |__________________________________________________________| --------------7CE3FB370F63F004EC970A2D Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi,

Thanks for your answer.
 

One thing you could try is to redirect the ADC board to one of the
IRQs in the slave PIC which is below the IRQ used for the DSP.  This
would take care of the priority issue automatically.


Could you tell me how  to do that? My on board jumper allows me to set the interrupt
from 2 to 7.

> The code of the DSP interrupt is quite long.

This is not a good thing.  Can't you restructure your code so that
most of it doesn't run inside the interrupt handler?


The code itself is not very long but I have to transfert data between my DPRAM of
the DSP and the PC RAM.

In fact the problen was due cause I didn't know I need to add a enable()  at the
beginning of my DSP interrupt to allows new incomming interrupts .
Now it works correctly, but I'm going to take care of your advices.
I think I'm going to test the special mask instead of changing priority.

Thank you

Fred Cazenave

-- 
 _________________________________________________________
|                                                          |
|               Frederic CAZENAVE                          |
|    _/\_  /^=  McGill Radar                               |
| \_/    \//    Box 198, MacDonald College                 |
|   | /-\ |     Ste Anne de Bellevue                       |
|   ||   ||     Quebec, Canada   H9X 3V9                   |
|               Tel (514) 398 7733 fax (514) 398 7755      |
|               mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr       |
|               http://www.mpl.orstom.fr/hydrologie/catch/ |
|__________________________________________________________|
  --------------7CE3FB370F63F004EC970A2D--