Tutorial 11: LAB - External Interrupt ( EXTI ) Interfacing in STM32 using STM32CUBEMX

Ғылым және технология

External Interrupt ( EXTI ) Interfacing in STM32 using STM32CUBEMX
▶️ARM Cores also support interrupts lines which are external to the core itself. These interrupt lines are usually routed to vendor specific peripherals on the MCU such as GPIO, SPI, I2C, Timers, RTC etc.
Out of these many external interrupts, some are directly connected to processor core by Nested Vector interrupt Controller (NVIC) and some are connected through called External Interrupt Controller (EXTI) block.
▶️External Interrupt Controller (EXTI) block basically handles interrupt related to GPIO and wakeup events with the help of EXTI Interrupt mask register, pending register and edge selection register. We can find IRQ numbers as well as addresses of their handler in the vector table.
EXTI Controller Features
The EXTI controller main features are the following:
➡️Independent trigger and mask on each interrupt/event line
➡️Dedicated status bit for each interrupt line
➡️Generation of up to 23 software event/interrupt requests
➡️Detection of external signal with pulse width lower than the APB2 clock period.
➡️mapping of multiple GPIO lines to 16 NVIC external interrupt inputs
➡️Dedicated status bit for external interrupt line
✔ Register for this free course & you will get an access to e-Learning content and code files🏆🚀
www.hexnbit.com/product/free-...
🌐 STM32 Related Courses:
Certificate Course: www.hexnbit.com/advance-embed...
Foundation Course: www.hexnbit.com/product/found...
✨ HEXNBIT Social Media :
Instagram: / hexnbit
Twitter: / hexnbit_life​
KZread: / hexnbit
Facebook: / hexnbit
🎓 Other Courses:
Visit : www.hexnbit.com/
About us: Hexnbit provides one-stop solutions for the students & working professionals in Skill development programs. The platform not only provides subject expertise to the candidates but also, give them industry exposure to apply their learning analytically in a practical real-world.

Пікірлер: 25

  • @trabajosfacu3728
    @trabajosfacu3728 Жыл бұрын

    The best explanation on KZread, you save me for my enbedded systems class, thanks!!! Greetings from Mexico

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Greetings from India !! Thank you for your feedback. Happy to help!

  • @Fr4nzB0OM
    @Fr4nzB0OM Жыл бұрын

    Ohh man, you don't know how much you helped me!! You saved my life ahah. Thank's man

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Welcome!! Happy to help!

  • @TheDutchGuyOnYT
    @TheDutchGuyOnYT5 ай бұрын

    Thx for this very clear tutorial

  • @edvinass3804
    @edvinass38047 ай бұрын

    Good stuff, thanks!

  • @ahmetalitilkicioglu5761
    @ahmetalitilkicioglu5761 Жыл бұрын

    thx man you so helped me ! :D

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Welcome!! Happy to help!

  • @sugiyartosugiyarto1587

    @sugiyartosugiyarto1587

    Жыл бұрын

    Sir Make video timer interup...thanks🎉🎉

  • @ahmettokay731
    @ahmettokay731Ай бұрын

    Thanks man

  • @alanjacob.4559
    @alanjacob.4559 Жыл бұрын

    thanks you very much.

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Welcome!!

  • @coolchriss
    @coolchriss3 ай бұрын

    Cool❤

  • @Fixaj
    @Fixaj Жыл бұрын

    Nice thanks

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Welcome!!

  • @csigabigaboca1987
    @csigabigaboca19879 ай бұрын

    I understand the interruption method, but what can the event be used for?

  • @jingtingleow3974
    @jingtingleow397410 ай бұрын

    Is this function not available for nucleo-c031c6 because i cannot find EXTI line [15:10] interrupts checkbox in my NVIC Tab :(

  • @ltlt6117
    @ltlt611729 күн бұрын

    Hi how much is the time between interrupt(falling or rising edge) and function and how we can decrease this time ? (Doing the function immediately after interrupt without any delay)

  • @MamathaJ987
    @MamathaJ9873 ай бұрын

    hello sir this is not working on NUCLEO-L053R8

  • @abbasraimkulov3913
    @abbasraimkulov3913 Жыл бұрын

    Hi, What if we have used the 2 external interrupts? How we differentiate "HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin); " for each interrupt?

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    Based on the pin number which is given as a parameter to this callback function. If you have configured PC7 and PD8 so you have to check what is the pin number for source of interrupt and then decode the isr to be executed..

  • @5245jah

    @5245jah

    9 ай бұрын

    @@Hexnbitgreat answer, what about when I use mul.tiple inputs such as GPIOAPIN7 and GPIOBPIN7 ? these both have same pins

  • @aravinds6698

    @aravinds6698

    7 ай бұрын

    ​@@5245jahi have the same doubt did you get any answer

  • @mrezamuktasib
    @mrezamuktasib Жыл бұрын

    i want use Motor with encoder, and the encoder have Signal FG Wire that send hall signal, how do i manage it in stm32 using external intterupt? jgb37-3525

  • @Hexnbit

    @Hexnbit

    Жыл бұрын

    You can try working with timer instead of external interrupt. There is separate section for encoder interface. Try referring the example code for eval board from repository. C:\Users\User_Name\STM32Cube\Repository\STM32Cube_FW_F4_V1.27.1\Projects\STM324xG_EVAL\Examples\TIM\TIM_Encoder If you have used any custom path then you can select the path likewsie

Келесі