Interrupt Routine for MC9S08LC60.

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

Interrupt Routine for MC9S08LC60.

Jump to solution
1,178 Views
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

Labels (1)
0 Kudos
Reply
1 Solution
599 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
600 Views
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 Kudos
Reply
599 Views
FWFan
Contributor III

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

 

Much appreciated.

FWFan

0 Kudos
Reply