Hello everybody,how can I count which pin triggers an interrupt, but not multiple times? I have written the following ISR. INTERRUPT_HANDLER(EXTI_PORTB_IRQHandler, 4)
{
data = (uint8_t)GPIOB->IDR& 0xF;
if((GPIO_PIN_0 & data )== GPIO_PIN_0) {
co...
Here's the issue. I have built a LIN bus with a slave node and a master node using tow STM8AF/AL-Discovery boards. After flashing the boards with the demo of the STM8 LIN driver 5.1 as slave node and master node I can control either the LED or the b...
I have built a kind of encoder with Hall sensors as you can see in the picture in the attachment. But the interrupts from the Hall sensors do not trigger simultaneously as you may see in the picture. The MCU runs with 16 MHz and I have added the inte...
I have helped myself with this function. Since the interrupts are never triggered at the same time in my application, but only one after the other, I helped myself with an XOR and saving the old value. But I still had sometimes not correct results.IN...