9s12zvca192
???? What's wrong with that?
Hi,
There is not only one way to implement interrupt.
the most commonly used way is : interrupt <vector_number> <function_name>
Vector number can be found in datasheet vector locations table.
I would suggest you refer tn101.pdf for how to implement interrupt. It also works for S12Z.
Count from bottom of the table for the “vector number”. the power on reset vector is vector number 0 (located at address 0), vector number 1 is located just after the vector 0 (at address 0x2) and so on.
ie Reset = 0 (address is $FFFE),Low Voltage Reset = 1, External pin RESET = 2 , ......
Using the keyword ‘interrupt’:
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi
What chip do you work with?