UC3A Usart Rx Interrupt

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

I know I need to use int.h but i need to have a interrupt called when usart0 has recieved something.

I also need to know how to turn on and off the interrupt for that as well.

Is there a way to multi task with frameworks?

Mike

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

well more so the exceptions.

I changed the -as to -gcc in propiorties

I think enabling and disable is as easy as // Disable all interrupts.
Disable_global_interrupt();

BTW working with intc example

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

Easy. Assuming GCC.

1. Write the interrupt handler. It should read the receiver register in order to clear the interrupt flag.

2. Use INTC functions to set interrupt handler to correspond to USART interrupt.

3. Set the interrupt enable flag in he USART setup.

Look no further: http://194.204.26.104/~andrei/av...

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

sweet Solved again.

Time to start next thread..

Mike