Skip to main content
Visitor II
March 23, 2013
Question

STM8S003 Interrupt Sensitivity

  • March 23, 2013
  • 1 reply
  • 610 views
Posted on March 23, 2013 at 23:11

I'm playing around with external interupts from a button and the code base is essentially what was used in the discovery board. It seems as though the documentation suggests that external iunterrupts from the ports can be EDGE triggered either rising or falling and in one case the documentation suggests falling and low level. I cant seem to get any edge triggered interrupts at all, they are all LEVEL. For instance using the discovery code, just hold in the button and you will be interrupted constantly. (No matter which setting of sensitvity)  There doesn't seem to be a pending bit to clear so I assume the IRET does that. I am currently using IAR. Am I missing something?

#stm8s-interrupts
    This topic has been closed for replies.

    1 reply

    jpollockAuthor
    Visitor II
    March 24, 2013
    Posted on March 24, 2013 at 01:50

    My mistake. I moved the button to a different port but did not change the statement that modified the sensitivity. So I was in effect using the default sensitivity and chaging the sensitivity of a non-existant I/O on a different port.  J