cancel
Showing results for 
Search instead for 
Did you mean: 

Use I/O port as interrupt

yuhao
Associate II
Posted on November 27, 2008 at 10:43

Use I/O port as interrupt

4 REPLIES 4
yuhao
Associate II
Posted on May 17, 2011 at 15:02

Dera all

I met a problem when used I/O port as interrupt.The documentation(RM0016) says STM8S has up to 32 interrupt vectors fixed by hardware,which is the Reference manul for STM8S microcontroller family.And when use STVD , stm8_interrupt_vector.c has 32 interrupt too.But at page 110 in RM0016, interrupt mapping only has 27 interrupt.There are not external interrupt for Port F,G,H,I. If I want to use a pin of Port H to be the interrupt,which registers I should config? And which interrupt vector in vector table in stm8_interrupt_vector.c I should use?

bassinux
Associate II
Posted on May 17, 2011 at 15:02

Hi Yuhao,

for the STM8S product you can only configure Port A,B,C,D and E, in vector table the Last 4 vectors are not used so not mapped to any peripheral interrupt.

best regards

bassinux
Associate II
Posted on May 17, 2011 at 15:02

Hi Yuhao,

for the STM8S product you can only configure Port A,B,C,D and E, in vector table the Last 4 vectors are not used so not mapped to any peripheral interrupt.

best regards

yuhao
Associate II
Posted on May 17, 2011 at 15:02

Hi Bassinux

Thanks very much!