Interrupt Routine for MC9S08LC60.

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

Interrupt Routine for MC9S08LC60.

跳至解决方案
998 次查看
FWFan
Contributor III

Hi All,

 

How do you write an interrupt for the MC9S08LC60?

Usually there's the Vectornumber_*_* for the MC9S08QE128,

but the LC60 doesn't have the vector number table in the

device .h file.  Could you show me how?

 

Thank you,

FWFan

标签 (1)
0 项奖励
回复
1 解答
419 次查看
bigmac
Specialist III

Hello FWFan,

 

The FAQ section of AN2616 briefly describes a number of methods for coding ISRs.

 

However, perhaps you are using an early version of the header file.  The 'LC60 header file contained within CW 6.3 certainly defines macros for the vector numbers.  Of course, you can simply use the vector number in lieu of the macro.  The vector number is easily determined, by counting backwards the number of words from the reset vector (0xFFFE), to the vector address of interest.

 

Regards,

Mac

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
420 次查看
bigmac
Specialist III

Hello FWFan,

 

The FAQ section of AN2616 briefly describes a number of methods for coding ISRs.

 

However, perhaps you are using an early version of the header file.  The 'LC60 header file contained within CW 6.3 certainly defines macros for the vector numbers.  Of course, you can simply use the vector number in lieu of the macro.  The vector number is easily determined, by counting backwards the number of words from the reset vector (0xFFFE), to the vector address of interest.

 

Regards,

Mac

 

0 项奖励
回复
419 次查看
FWFan
Contributor III

Thank you bigmac.  That was a big help.  I got it to work following that app. note.

 

Much appreciated.

FWFan

0 项奖励
回复