delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/16/10:32:37

Message-ID: <38D0EA89.67EF0CB@radar.mcgill.ca>
From: Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
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: <Pine DOT SUN DOT 3 DOT 91 DOT 1000316120125 DOT 3117O-100000 AT is>
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Hi,
<P>Thanks for your answer.
<BR>&nbsp;
<BLOCKQUOTE TYPE=CITE>
<PRE>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.&nbsp; This
would take care of the priority issue automatically.

</PRE>
</BLOCKQUOTE>

<P><BR>Could you tell me how&nbsp; to do that? My on board jumper allows
me to set the interrupt
<BR>from 2 to 7.
<BLOCKQUOTE TYPE=CITE>
<PRE>> The code of the DSP interrupt is quite long.

This is not a good thing.&nbsp; Can't you restructure your code so that
most of it doesn't run inside the interrupt handler?</PRE>
</BLOCKQUOTE>

<P><BR>The code itself is not very long but I have to transfert data between
my DPRAM of
<BR>the DSP and the PC&nbsp;RAM.
<P>In fact the problen was due cause I didn't know I need to add a enable()&nbsp;
at the
<BR>beginning of my DSP interrupt to allows new incomming interrupts .
<BR>Now it works correctly, but I'm going to take care of your advices.
<BR>I think I'm going to test the special mask instead of changing priority.
<P>Thank you
<P>Fred Cazenave
<PRE>--&nbsp;
&nbsp;_________________________________________________________
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tel (514) 398 7733 fax (514) 398 7755&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr">mailto:Frederic DOT Cazenave AT hmg DOT inpg DOT fr</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A HREF="http://www.mpl.orstom.fr/hydrologie/catch/">http://www.mpl.orstom.fr/hydrologie/catch/</A> |
|__________________________________________________________|</PRE>
&nbsp;</HTML>

--------------7CE3FB370F63F004EC970A2D--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019