2013-03-23 03:11 PM
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-interrupts2013-03-23 05:50 PM
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