avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Interrupt redirect?


From: v . sluiter
Subject: Re: [avr-gcc-list] Interrupt redirect?
Date: Fri, 28 Jun 2002 11:41:14 +0200 (MEST)

Hi all,

First of all, thanks for your fast response! Secondly.. I should have
described  the problem more precisely (I had been working on this far too long
yesterday :-)...

The message to be received from the modules consists of a status and a data
message, the status messages are received at a fixed interval, and are
received simultaneously. This could be done with one interrupt routine.... The
problem comes with the data message, which is not always received. Sometimes 
both
units send data at the same time, sometimes only one module sends.... On my
way home I realised that redirecting interrupts still requires two interrupts
to be generated... *duh* :-) 
The transmitting can be done at the same time, and I only use one interrupt
to do this....

Okay, thanks for all the help so far, next time I'll try to clear my head
before mailing the list |-)

Greetings, Victor


> 
> >Currentlt I'm working with a Mega161 that has to control two identical
> >modules, each with one of the UARTs @ 115k2. The 'problem' is that the
> modules
> >work in-sync with each other, so both of them send and receive at the
> same 
> >time.
> >At this moment I'm using the two 'SIGNAL' handlers SIG_UART_RX and
> >SIG_UART1_RX for receiving. These mess up the programm, because they
> interrupt
> >together, although only one interrupt is needed. Could the solution be as
> 
> >simple as
> >changeing the interrupt vector in iom161.h file, and directing both
> >interrupts to the same routine?
> >Other ideas are welcome too!
> 
> 
> How about enabling just one interrupt?
> 
> As you told us, only one interrupt is needed... so use only one.
> Just disable RX_COMPLETE for your second uart.
> 
> /Marc
> 
> 
> 
> 
> avr-gcc-list at http://avr1.org
> 

-- 
-------------------------------------------------------
Een gewaarschuwd schizofreen telt voor vier.
      - Fons Jansen
-------------------------------------------------------

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]