Skip to main content
Visitor II
November 27, 2008
Question

Use I/O port as interrupt

  • November 27, 2008
  • 4 replies
  • 966 views
Posted on November 27, 2008 at 10:43

Use I/O port as interrupt

    This topic has been closed for replies.

    4 replies

    yuhaoAuthor
    Visitor II
    May 17, 2011
    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?

    Visitor II
    May 17, 2011
    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

    Visitor II
    May 17, 2011
    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

    yuhaoAuthor
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 15:02

    Hi Bassinux

    Thanks very much!