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

  Рет қаралды 17,170

Hexnbit

Жыл бұрын

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-online-embedded-system-stm32-course/
🌐 STM32 Related Courses:
Certificate Course: www.hexnbit.com/advance-embedded-systems/
Foundation Course: www.hexnbit.com/product/foundation-course-in-embedded-systems-stm32/
✨ HEXNBIT Social Media :
Instagram: hexnbit
Twitter: hexnbit_life​
KZfaq: kzfaq.info
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 KZfaq, 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
@TheDutchGuyOnYT 5 ай бұрын
Thx for this very clear tutorial
@edvinass3804
@edvinass3804 7 ай бұрын
Good stuff, thanks!
@alanjacob.4559
@alanjacob.4559 Жыл бұрын
thanks you very much.
@Hexnbit
@Hexnbit Жыл бұрын
Welcome!!
@ahmettokay731
@ahmettokay731 Ай бұрын
Thanks man
@Fixaj
@Fixaj Жыл бұрын
Nice thanks
@Hexnbit
@Hexnbit Жыл бұрын
Welcome!!
@ahmetalitilkicioglu5761
@ahmetalitilkicioglu5761 Жыл бұрын
thx man you so helped me ! :D
@Hexnbit
@Hexnbit Жыл бұрын
Welcome!! Happy to help!
@sugiyartosugiyarto1587
@sugiyartosugiyarto1587 Жыл бұрын
Sir Make video timer interup...thanks🎉🎉
@csigabigaboca1987
@csigabigaboca1987 9 ай бұрын
I understand the interruption method, but what can the event be used for?
@jingtingleow3974
@jingtingleow3974 10 ай бұрын
Is this function not available for nucleo-c031c6 because i cannot find EXTI line [15:10] interrupts checkbox in my NVIC Tab :(
@coolchriss
@coolchriss 3 ай бұрын
Cool❤
@ltlt6117
@ltlt6117 Ай бұрын
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)
@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
@MamathaJ987
@MamathaJ987 3 ай бұрын
hello sir this is not working on NUCLEO-L053R8
@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
That's how money comes into our family
00:14
Mamasoboliha
Рет қаралды 8 МЛН
Alat Seru Penolong untuk Mimpi Indah Bayi!
00:31
Let's GLOW! Indonesian
Рет қаралды 15 МЛН
When You Get Ran Over By A Car...
00:15
Jojo Sim
Рет қаралды 18 МЛН
МАМА И STANDOFF 2 😳 !FAKE GUN! #shorts
00:34
INNA SERG
Рет қаралды 4,7 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 342 М.
Blue Mobile 📲 Best For Long Audio Call 📞 💙
0:41
Tech Official
Рет қаралды 1 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,2 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 178 М.