2024-03-18 02:31 AM
Hello,
I have a interrupt conflict between two peripherals on pins PK7 and PI7. I am aware that these two end up on same EXTI7 interrupt mux, hence conflict in interrupt occurs. I am wondering if there is a way to separate these interrupts on different controllers perhaps? Re-designing the HW is not really possible or very hard at this stage
Solved! Go to Solution.
2024-03-18 02:33 AM - edited 2024-03-21 01:15 PM
Hello,
In the EXTI interrupt handler read the two pins status (read IDR register) and check which one was the origin of the interrupt.
But you need to ensure that from the interrupt firing and when reading the GPIO pin input the status of the pin didn't change.
2024-03-18 02:33 AM - edited 2024-03-21 01:15 PM
Hello,
In the EXTI interrupt handler read the two pins status (read IDR register) and check which one was the origin of the interrupt.
But you need to ensure that from the interrupt firing and when reading the GPIO pin input the status of the pin didn't change.
2024-03-18 05:30 AM
You cannot have an interrupt on PK7 and PI7 at the same time. This is a hardware limitation. Look at EXTI_EXTICR1 for the underlying hardware limitation. There is no solution which allows have GPIO pin interrupts on multiple ports for the same pin number.