AnsweredAssumed Answered

Newbie trying to make multiple GPIO Inputs in same EXTI line, options?

Question asked by Jim on Feb 5, 2016
Latest reply on Feb 8, 2016 by Clive One
Hello, my board designed with STM32F0 (100 pin) controller with 28 pins as input pins and 32 pins as output pins. All of the GPIO Inputs are time critical, required to sense both rising and falling edges. 

For this thought of configure all inputs as external interrupts. After experiment (in STM32091C-EVAL) and extensive google search found at maximum 15 pins only configurable as external interrupt pins

(https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https%3a%2f%2fmy%2est%2ecom%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fhandling%20multiple%20interrupts%20on%20same%20EXTI%20line%20in%20STM32&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=6035).

With respect to this, short listed very high polarity change inputs pins and configured as EXTI interrupt pins. 

For remaining 13 pins, to detect both rising and falling edges would like to poll with maximum resolution of One millisecond. 

For this planning to use, TIM1 (Counter Period (1 ) in HAL_TIM_PeriodElapsedCallback() mode.

Is there any better alternative peripheral mechanisms /ways with in STM32 core?

Regards,


Outcomes