How do u know if an interrupt is generated from the microprocessor? i am currently using codewarrior IDE. What am i suppose to look out for to see if an interrupt is generated?
When an interrupt is generated there will mostly be an associated flag that is set.
Then the CPU will fetch the vector address form the vector table and programme execution will jump to that location after the registers are saved.
Normal execution will resume when the RTI is executed.
So the most obvious thing is that execution suddenly jumps to the start of your ISR code.
hmm kk thks. But when i compile my codes, i got this error.
Error : C2450: Expected: ~ ( IDENT auto const extern register static typedef volatile __interrupt
main.c line 45
Error : Compile failed
How do i solve it?
Looks like you should be in the Codewarrior forum now.
Seems you are not writing your ISR correctly
Retrieving data ...