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?
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.
BTW working with intc example
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://220.127.116.11/~andrei/av...
sweet Solved again.
Time to start next thread..
© 2021 Microchip Technology Inc.