Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

interrupts not working

Status
Not open for further replies.

svdz

Programmer
Dec 9, 2004
4
0
0
ZA
I am using winAVR to program the ATmega8 chip. The program spans multiple files. The interrupts are written using the SIGNAL keyword and the definitions from the iom8.h file as below (the receive complete vector). Can anyone figure out why the interrupts are not actually being called?

SIGNAL(SIG_UART_RECV){
*/
// R26 = UDR;
// Add your own code here if desired...
dummy = 15;

}
 
That's only a function to handle the signal.

Where do you actually assign the interrupt vector to point at that routine?


--
 
Thanks for the reply Salem, the problem actually turned out to be that I needed to include the default interrupt handler. The code must have been trying to execute some uninitialised interrupt.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top