Interrupt Routine for MC9S08LC60.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Interrupt Routine for MC9S08LC60.

ソリューションへジャンプ
999件の閲覧回数
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 解決策
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 件の賞賛
返信
2 返答(返信)
421件の閲覧回数
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 件の賞賛
返信
420件の閲覧回数
FWFan
Contributor III

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

 

Much appreciated.

FWFan

0 件の賞賛
返信