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: Marc Wetzel
Subject: Re: [avr-gcc-list] Interrupt redirect?
Date: Thu, 27 Jun 2002 20:39:03 +0200

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



reply via email to

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