MC9S08LC60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S08LC60

2,222 次查看
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?

标签 (1)
0 项奖励
回复
3 回复数

1,001 次查看
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 项奖励
回复

1,001 次查看
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 项奖励
回复

1,001 次查看
peg
Senior Contributor IV

Hi,

Looks like you should be in the Codewarrior forum now.

Seems you are not writing your ISR correctly

0 项奖励
回复