2022-11-05 11:23 PM
2022-11-06 12:36 AM
Well io interrupt ip block call EXTI usually can have up to 16 interrupt pins. The restriction is each pin from Px0, Px1, .. Px15. Ex PB0, PC1, PA2.... so PC6 and PD6 is invalid.
There are other ways to have interrupt from pin, this is the simplest.
2022-11-06 01:37 AM
The question you ask is not related to your needs. STM32 can handle one interrupt at a time but it may accept interrupts from dozens of sources - you may find all the info in the reference manual. Keyboard/button scanning requires single timer interrupt only. No idea about the other inputs you need to handle but generally handling digital inputs rarely requires a pin interrupt. For pin-triggered interrupts you may use EXTI and timer inputs, so, depending on the exact MCU type, at least 20 should be usable, sometimes 30..40.
2022-11-06 03:39 AM
If low power clock stop mode is a decision criteria, check each pin and peripheral for this aspect. Most STM32L low power peripherals starts with LP as LPTIM, LPUART... and check wakeup functionon select pins.