Hello
I'm having a heck of a time trying to get interrupts to work on my MCU. All my coding is in C, and basically I want to jump to an isr whenever I sense something in my serial port. So I wrote a function like this:
interrupt 20 void isr(void) {....}
the function just spits out some characters to let me know it's ok. I found the number 20 in my data sheet listed as the "Vector Num"
so.... in my main() I have enabled interrupts and I have enabled the RDRF interrupt by setting the REI bit .... I figured that by doing that if something comes into my serial port, I would be sent to that other function.... but it's not working at all.....
I don't know if this is how the RDRF interrupt works, does anyone know what I'm doing wrong?
Thank you Joshua
PS - I'm using an HCS12 MCU and Codewarrior