cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for sample external interrupt code for STM8S003F3P6

tinkerBOY
Associate II

I'm new to STM8 microcontrollers and have purchased a few STM8S003F3P6 boards to learn how to interface a PS/2 keyboard and mouse. I have installed the ST Visual Develop IDE with STM8 Standard Peripheral Library and started tinkering with blinking a LED. Now, I want to learn more about external interrupts. I tried googling but couldn't find any sample code. Anyone?

Best Regards,

tinkerBOY

5 REPLIES 5

Not at a computer right now, but should be EXTI examples, configure pin as input associate pin# with EXTI​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
tinkerBOY
Associate II

A sample code would be great. 🙂

STM8S_StdPeriph_Lib\Project\STM8S_StdPeriph_Examples\EXTI\EXTI_InterruptPriority ??

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

https://github.com/eddyem/STM8_samples/blob/master/DRUM/interrupts.c

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Oops, I didn't notice that.

Tried the EXTI example and it works great, thank you!