cancel
Showing results for 
Search instead for 
Did you mean: 

STM8S003 Interrupt Sensitivity

jpollock
Associate II
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
1 REPLY 1
jpollock
Associate II
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