Strange no interrupt problem

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I'm using a Mega162 at the moment to do some serial comms. However, I cannot get the M162 to interrupt properly for some reason that I can't fathom out.

As I have some LEDs on the processor, I can check various bits, and I have come to the following results:

Global interrupts are definitely enabled
Receive Complete Interrupt is definitely enabled
the Receive Complete flag is set

...and yet the controller will not run my interrupt routine. I have check to see that the interrupt is sat at the correct address as pointed to by the receive complete interrupt vector and all seems well.

I enabled USART 1 too in order to send out some debug comms, but alas, it's doing exactly the same thing!

Is there anything else I need to set, or is special at this processor. I've never had grief before, it's always been a no-brainer to get the usart up and running.

I have the M161 fuse unprogrammed too. I can't think of anything else?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Post your code

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry, my fault, was setting one of my timers up wrong and the AVR was almost permanently inside that routine.