Topic : Determining Interrupt numbers

Forum : ST7/STM8

Original Post
Post Information Post
June 12, 2012 - 7:15pm
Guest

Hello,

Apologies in advance if this is too simple of a question but I looked through all the doc I could find and didn't find the answer. The syntax for defining an ISR is as follows as far as I know.

void someISR(void) interrupt X where X is a number.

So my question is this, is there somewhere that lists which numbers correspond to which interrupts?

I am working with STM8S105C6 processor using STM8 C compiler.

Thanks

Replies
Post Information Post
+1
0
-1
June 14, 2012 - 1:34pm
Guest

Hi,

the interrupt vector mapping can usually be found in the datasheet for your MCU.

As far as I know, if you installed the RIDE7 environment along with the RKit-STM8 there should exist a header file called stm8s_itc.h usually located somewhere in the library subdirectory in the examples directory of your installation. This header file also contains the interrupt vector mapping as an enum (at least in the version I have installed on my machine).

Regards,
Stephan

+1
0
-1
June 15, 2012 - 12:28am
Guest

Never mind I finally found it...

Pages 47-48 STM8S105xx Rev11