0

I want to create an interrupt service routine for the ADC interrupt that is caused by the ADCI flag when a conversion is finished. However, I can't find the interrupt vector to answer to said interrupt. How do I create the interrupt service routine?

I tried searching for the vector in the interrupt vector table (IVT) but it isn't specified there.

1 Answer 1

1

Unfortunately you did not specify the document you use. A quick web search revealed this family overview at Keil. The interrupt vectors are on page 45, and the vector for the ADC interrupt is 0x0053.

This means, your ISR starts at address 0x0053. With common C compilers the corresponding interrupt number is (0x0053 - 3) / 8 = 10.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.