2019-09-09 10:41 PM
Hi team,
I would like to use the external interrupt for handling peripherals, but i didn't find the exact port pin of MCU. for example EXTI0 is an external interrupt pin which is located at?
Solved! Go to Solution.
2019-09-10 01:58 AM
Yes, unless the given pin is set to Analog mode.
SYSCFG_EXTICR1.EXTI0 is specifically for EXTI0, other EXTI have their respective fields in other SYSCFG_EXTICRx registers, refer to the SYSCFG chapter in RM.
JW
2019-09-09 10:52 PM
PA0, or PB0, or PC0, etc., as selected by SYSCFG_EXTICR1.EXTI0.
JW
2019-09-09 11:28 PM
!
2019-09-09 11:29 PM
Thank you.
1) In PA0 : The alternate functionalites are TIM2_CH1/TIM2_ETR, TIM5_CH1, TIM8_ETR, TIM15_BKIN, USART2_CTS/USART2_ NSS, UART4_TX, SDMMC2_CMD, SAI2_SD_B, ETH_MII_CRS, EVENTOUT.
Additional Functions are ADC1_INP16, WKUP0.
2) In PB0 : The alternate functionalites are TIM1_CH2N, TIM3_CH3, TIM8_CH2N, DFSDM1_CKOUT, UART4_CTS, LCD_R3, OTG_HS_ULPI_D1, ETH_MII_RXD2, LCD_G1, EVENTOUT
Additional Functions are ADC12_INN5, ADC12_INP9, OPAMP1_VINP, COMP1_INP.
3) In PC0 : The alternate functionalites are DFSDM1_CKIN0, DFSDM1_DATIN4, SAI2_FS_B, OTG_HS_ULPI_STP, FMC_SDNWE, LCD_R5, EVENTOUT.
Additional Functions are ADC123_ INP10.
Of these multi functionalities which of them is external interrupt?
2019-09-10 12:47 AM
> Of these multi functionalities which of them is external interrupt?
None; external interrupt is independent from the alternate functions, and can be used simultaneously with them.
JW
2019-09-10 12:51 AM
Thank you,
You mean to use the concept of external interrupt we can connect to any of the pins and can be configured by using the registers you specified SYSCFG_EXTICR1.EXTI0?
2019-09-10 01:58 AM
Yes, unless the given pin is set to Analog mode.
SYSCFG_EXTICR1.EXTI0 is specifically for EXTI0, other EXTI have their respective fields in other SYSCFG_EXTICRx registers, refer to the SYSCFG chapter in RM.
JW
2019-09-10 02:08 AM
Thank you so much.