MC9S08LC60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC9S08LC60

1,533 Views
birdbird
Contributor I

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?

Labels (1)
0 Kudos
3 Replies

312 Views
peg
Senior Contributor IV

Hello birdbird,

 

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.

 

0 Kudos

312 Views
birdbird
Contributor I

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?

 

0 Kudos

312 Views
peg
Senior Contributor IV

Hi,

Looks like you should be in the Codewarrior forum now.

Seems you are not writing your ISR correctly

0 Kudos