Lecture 9: Interrupts

  Рет қаралды 261,501

Embedded Systems and Deep Learning

Embedded Systems and Deep Learning

Күн бұрын

This short video presents how interrupts work. Visit the book website for more information: web.eece.maine.edu/~zhu/book

Пікірлер: 112
@iliassfe
@iliassfe 6 жыл бұрын
For the last two months I'm trying to understand the logic behind ARM MCUs, so I ran across many tutorials. By far you have the best presentations! Thank you my friend!
@krish2nasa
@krish2nasa 7 жыл бұрын
Excellent Explanation, Thank you very much Prof Yifeng
@caioheitor3181
@caioheitor3181 7 жыл бұрын
Very good class with several amazing details !!!
@richardqqq176
@richardqqq176 7 жыл бұрын
you make the ARM architecture story sound so clear
@mohangovind700
@mohangovind700 6 жыл бұрын
Excellent Presentation about NVIC i have ever seen...............................
@abnass8559
@abnass8559 4 жыл бұрын
Thank you Dr. Zhu
@ningben7161
@ningben7161 11 ай бұрын
Excellent Explanation, Thank you very much Prof Yifeng~~~
@omar-shukrimcintosh9097
@omar-shukrimcintosh9097 4 ай бұрын
Thank you robot for the clear explanation, using an almost dead, emotionless voice.
@victorial5141
@victorial5141 Жыл бұрын
this channel is underrated
@hubert_c
@hubert_c 3 жыл бұрын
Very good analogy for polling vs interrupt.
@alevez2004
@alevez2004 2 жыл бұрын
Outstanding video, thank you very much
@rileystewart9165
@rileystewart9165 2 жыл бұрын
Although the voice in the video is not perfect, it's surprisingly good for a robot, and considering the content and explaination was excellent, I'm very happy with the final product! Subscribed.
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 2 жыл бұрын
Glad to know that. I have started to use my own voice now.
@mortenlund1418
@mortenlund1418 3 күн бұрын
Great explanaition. Thank you for your effort and great teaching skills. Best wishes.
@VitaminVS
@VitaminVS 6 жыл бұрын
These are great videos. Is the book having similar explanation?
@nancywangeci8189
@nancywangeci8189 6 жыл бұрын
A very good lesson .... you explain so well ... thanks and GOD bless.
@Caffeine_Addict_2020
@Caffeine_Addict_2020 4 жыл бұрын
incredible explanation
@Ulbert86
@Ulbert86 3 жыл бұрын
What a great presentation! Excelent work!
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
Thank you. I am glad you like it.
@ShivamGupta-qe1me
@ShivamGupta-qe1me 4 жыл бұрын
Thanks sir for making this video. keep uploading more.
@nelsoncastillo4506
@nelsoncastillo4506 6 жыл бұрын
very good tutorial video!!!
@eestop2978
@eestop2978 6 жыл бұрын
can we get the slides please? thank you for the video.
@user-qp8jb8or8b
@user-qp8jb8or8b 2 жыл бұрын
very good tutorial!
@mukundhanamshet935
@mukundhanamshet935 4 жыл бұрын
Awesome video thank you
@user-ez8le1rp3x
@user-ez8le1rp3x 3 жыл бұрын
Voice like a melted butter
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
Yeah, in the future, I will use my own voice.
@vishnuchittapu8459
@vishnuchittapu8459 7 жыл бұрын
when dma interrupt is performing whether exti3 is in active state or pending state
@paulg.3067
@paulg.3067 4 жыл бұрын
What robot software reads that text? It has an amazing natural pronunciation
@axela.9247
@axela.9247 2 жыл бұрын
Great video
@shiningmickey
@shiningmickey Жыл бұрын
Thanks for the nice video. In the nested interrupt example, why isn't Pending Register for EXTI3 becomes 1 again when it is stacked and waited for DMA1_Channel2 interrupts to be finished?
@kingfalconkhan
@kingfalconkhan 4 жыл бұрын
Wahuuuu amazing video Prof. Zhu... Thanks a lot..!
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 4 жыл бұрын
Most welcome!
@user-tc4ro5og3h
@user-tc4ro5og3h 2 жыл бұрын
Does NVIC clear the icpr register by itself? Or is it the responsability of the interrupt handler?
@himmelblau1906
@himmelblau1906 4 жыл бұрын
awesome lecture! thanks!
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 4 жыл бұрын
You are welcome!
@tomhyhlik1788
@tomhyhlik1788 4 жыл бұрын
thank you for such great explanation.
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 4 жыл бұрын
You are welcome!
@astaghfirullahalzimastaghf3648
@astaghfirullahalzimastaghf3648 2 жыл бұрын
@16:18 so the process of preserving environment variable(by pushing the aforementioned registers onto the stack) cost the CPU 32-bits of addresses.. while unstacking, does it cost cpu 32-bits of address line too? And also does ISR only do two instructions? (BX and LR).. How much address the CPU need for this?.. So why does we need to offset 64bits of address when we want to determine the address of program ISR? (64+4xn) From what I understand, stacking environment variables cost 32bits of address, which corresponds to 4 bits of address is used to push a value from a register to the stack.. Does this means BX and LX cost the CPU 4 bits of address each? If that the case to find the next address of ISR program would be 32+4+32+4xn. if not then, 32(for stacking)+32(for unstacking)+4(for BX and LX or any other ISR operations that might require only 4bits of address)*n(nth element of an array of ISR)
@ulysses_grant
@ulysses_grant 6 жыл бұрын
Man, I owe you a beer. Really.
@minghanqiu1095
@minghanqiu1095 3 жыл бұрын
Buy his book then
@ulysses_grant
@ulysses_grant 3 жыл бұрын
@@minghanqiu1095 I did!
@kaviyathangaraj8242
@kaviyathangaraj8242 Жыл бұрын
what is meant by 64 in interrupt calculation (64+4*n)?
@battellone
@battellone 6 жыл бұрын
excellent
@coolwinder
@coolwinder 4 жыл бұрын
9:10 - Interrupt Vector Table & Example
@suseelkousic6787
@suseelkousic6787 10 ай бұрын
In the interrupt handler function why are we setting the Bit in PR register at last ?
@OverlordNibble
@OverlordNibble 7 жыл бұрын
perfect movie for a rainy day
@paulg.3067
@paulg.3067 4 жыл бұрын
yes, with a girlfried in the arms, on the sofa and a cup of potatochips, fine selection of cheese and a bottle Chateau Lafite 1936...
@haideralam1
@haideralam1 Жыл бұрын
Only complain with you is Robo voice, please upload same video in your original voice
@venkatanagateja3072
@venkatanagateja3072 5 жыл бұрын
thank u
@Wyvernnnn
@Wyvernnnn 4 жыл бұрын
Ah; $67 without shipping for the book. You should publish an epub version Pr. Shu
@debajyotichatterjee5863
@debajyotichatterjee5863 4 жыл бұрын
17:30 -- Is it possible to disable Interrupt nesting in the ARM Cortex-M Microcontrollers? Is it required to be performed in software? Or is there a way to configure the NVIC to be able to block the other IRQs once a IRQ is being serviced?
@jerrysundin8425
@jerrysundin8425 3 жыл бұрын
There is never a reason for this as long as you sort priorities according to needs.
@LubosMedovarsky
@LubosMedovarsky 2 жыл бұрын
Priority vs. subpriority depth is a compromise at cost of subpriority bit depth, and is configurable in most Cortex-Ms.
@jashielp.estrada7163
@jashielp.estrada7163 3 жыл бұрын
Wow. Now I understand interrupts for my job interview XD.
@da_druuskee7709
@da_druuskee7709 3 жыл бұрын
did you get the job?
@jashielp.estrada7163
@jashielp.estrada7163 3 жыл бұрын
@@da_druuskee7709 yes I got it. :)
@kennyecheverry5684
@kennyecheverry5684 3 жыл бұрын
i'm reviewing for that right now! Any advice? XD
@ashwin372
@ashwin372 Жыл бұрын
are you on LinkedIn. i sent you a request please accept i am From India
@mannguyen5781
@mannguyen5781 2 ай бұрын
64 + 4 *n , could you clarify the formula in more details, please? Thanks a million.
@hakuhakuji
@hakuhakuji 3 жыл бұрын
15:38 When an interrupt is done, a BX LR instruction is executed? But how does LR register receives the value of PC before the interrupt? Does it happen automatically? Or we need to get it from the stack thst was previously saved?
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
The hardware automatically preserves LR value onto the stack, and sets LR to a new value to indicate which stack is used. This happens automatically.
@hakuhakuji
@hakuhakuji 3 жыл бұрын
@@embeddedsystemswitharmcort9051 Thank you for the fast answer. I think saying that exceptional return value EXC_RETURN is stored there during the interrupt handling is better. Loading this value by BX will automatically start unstacking and subsequently load the right value to PC. I've done some research on my own :)
@VAXHeadroom
@VAXHeadroom 3 жыл бұрын
There is a key piece of information here which the ARM documentation on the NVIC does NOT answer: Is a higher priority number more or less urgent? Thank you for including the answer in this video!
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
Great to know that.
@Molnihun96
@Molnihun96 2 жыл бұрын
Lower value means higher priority. Configurable values range from 0 to 15, while non-configurable high-priority interrupts can even have negative values. -3 being the highest priority. You can check these informations in the RM0090 reference manual under "table 61." ("External interrupt/event controller (EXTI)" section).
@parthshinde5966
@parthshinde5966 4 жыл бұрын
13:46 Isn't Stack Last-in-First-out? According to explanation here, it looks like registers are stacked inversely because top of the stack is popped first.
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 4 жыл бұрын
Cortex-M4 uses full descending stack by default.
@parthshinde5966
@parthshinde5966 4 жыл бұрын
@@embeddedsystemswitharmcort9051 yes that is true. You are correct. I had lack of conceptual knowledge
@rindaman9151
@rindaman9151 3 жыл бұрын
Can I Get The PPT?
@astaghfirullahalzimastaghf3648
@astaghfirullahalzimastaghf3648 2 жыл бұрын
@15:41 why he is saying that the program ISR (Interrupt Service Routine) or Interrupt Handler has the size of 32 bytes but demonstrate it in 32 bits? if 1 opcode is one byte(8bits), and 1 data line is 64 bits.. 1 bit of address line can have an instruction(opcode) + data =64 bits 4 bits of address line= 4*64 =256 bits or 1 byte.. 8 bits of address line= 2 bytes if 32 bits of address line= 8 bytes.. oh ok so i understand this ISR program requires 8 bytes of address line.. Or 32 address space
@Dads_Crown
@Dads_Crown Жыл бұрын
in intrupt calculation what is mean by 64
@emilyhuang2759
@emilyhuang2759 3 жыл бұрын
So what is preemption
@lingyili6489
@lingyili6489 3 жыл бұрын
In explain sram mapping, it states stack going down, heap up. That,s only one stack. When in MSP and PSP, how sram is configured?
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
MSP and PSP are configured by software during the booting process, specifically by startup.s.
@coderhex1675
@coderhex1675 3 жыл бұрын
in 17:21 there shuldn't be a pending state. I observed in my program. If you are pointing that this pending bit is flipping 1 to 0 so quickly when we enter ISR12 that we cannot observe this case, again there is no 1 to 0 switch. Could you provide me your proof?
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
This is an interesting question. The "Interrupt Set-pending Registers" and "Interrupt Clear-pending Registers" works in pairs to set or clear the pending state of an interrupt. You can find more information in Cortex -M4 Devices Generic User Guide.
@coderhex1675
@coderhex1675 3 жыл бұрын
@@embeddedsystemswitharmcort9051 sorry for my bad english but did you completelly understand what i am tying to tell you? If i couldnt, i can tell with other sentence. I appriceate your videos so i respect you a lot. Could you provide me the exact sentence in the document?
@creedo8301
@creedo8301 2 жыл бұрын
10:48 why in the address 0x00000064 does it contain the address 0x0800030D and not 0x0800030C ? can anyone help please
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 2 жыл бұрын
The least significant bit must be 1 to indicate that the processor is to run in Thumb mode. ARM Cortex-M only support Thumb instructions.
@Jarrod_C
@Jarrod_C 5 жыл бұрын
wait is there an error at 11:42 because the address of the pointer to the ISR is 30D but the address of the ISR is 30C? What is going on here?
@chimeraSTEM
@chimeraSTEM 5 жыл бұрын
The slide is correct. The address to jump to must have the least significant bit of the least significant bite set to 1 to indicate the processor is executing in THUMB mode. The video does explain this.
@syedmuhammadshayan9105
@syedmuhammadshayan9105 Жыл бұрын
If an interrupt is preempted why its active bit still stays 1
@mahmutbostan6080
@mahmutbostan6080 5 жыл бұрын
hi bro What is the maximum interrupt speed for stm32f767zi?
@MrKaviraj75
@MrKaviraj75 7 жыл бұрын
Is a robot reading the text?
@superiorphi5778
@superiorphi5778 5 жыл бұрын
yes, its to eliminate people potentially complaining about Prof Yifeng Zhu's accent
@romandavydov8684
@romandavydov8684 5 жыл бұрын
Robots everywhere these days....
@BillCipher1337
@BillCipher1337 4 жыл бұрын
@@superiorphi5778 his accent isnt even that bad ... :/
@tomhyhlik1788
@tomhyhlik1788 4 жыл бұрын
better robot than strong accent
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
KZfaq does not allow voice over an existing video. Do you folks know a good solution?
@DanielBaluta
@DanielBaluta Жыл бұрын
at 1:23 the phone analogy doesn't really work. If you pick up the phone before a call arrives then the sender will get a busy tone.
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 Жыл бұрын
You pick up the phone and hang it up if there is no incoming call.
@manhtieu6569
@manhtieu6569 3 жыл бұрын
Can you explan that why stacking and unstacking take 12 cycle , again tail chain take 6 cycle? Please ...
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 3 жыл бұрын
community.arm.com/developer/ip-products/processors/b/processors-ip-blog/posts/beginner-guide-on-interrupt-latency-and-interrupt-latency-of-the-arm-cortex-m-processors
@manhtieu6569
@manhtieu6569 3 жыл бұрын
thank you very much
@KirstaRunner
@KirstaRunner 6 жыл бұрын
Watch the video at 1.5 or 2.0 speed.
@khaledhumood7987
@khaledhumood7987 6 жыл бұрын
i emailed youtube to add 3 and 3.5 speeds
@petros4225
@petros4225 6 жыл бұрын
Sciencephille the AI? what are you doing here?
@TheRojo387
@TheRojo387 11 ай бұрын
That Cortex M-4 system must be big-endian, no doubt!
@igoragoli
@igoragoli 3 жыл бұрын
Please consider narrating the videos instead of using an automatic voice. Other than that, great video!
@embeddedsystemswitharmcort9051
@embeddedsystemswitharmcort9051 2 жыл бұрын
Noted!
@saturdaysequalsyouth
@saturdaysequalsyouth 4 жыл бұрын
Can't listen to this synthesized voice...
@Jonathan-ru9zl
@Jonathan-ru9zl Жыл бұрын
The automatic voice is unbearable please replace the audio
@khaledhumood7987
@khaledhumood7987 6 жыл бұрын
what was he saying??
@dontaskiwasbored2008
@dontaskiwasbored2008 Жыл бұрын
downvote for robot voice
Lecture 10: Interrupt Enable and Interrupt Priority
11:49
Embedded Systems and Deep Learning
Рет қаралды 57 М.
Lecture 15: Booting Process
9:35
Embedded Systems and Deep Learning
Рет қаралды 308 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 32 МЛН
Hardware interrupts
27:36
Ben Eater
Рет қаралды 589 М.
Microcontroller Interrupts | Embedded System Project Series #17
54:40
Ep 089: How to Set Up an Interrupt
25:35
Intermation
Рет қаралды 4,6 М.
Lecture 12: System Timer (SysTick)
10:57
Embedded Systems and Deep Learning
Рет қаралды 105 М.
Program, Interrupted - Computerphile
6:41
Computerphile
Рет қаралды 126 М.
EEVblog #496 - What Is An FPGA?
37:44
EEVblog
Рет қаралды 757 М.
01: ARM Cortex-M Instruction Set Architecture
14:43
JoeTheProfessor
Рет қаралды 143 М.
Signals. I spent 2 years to understand this part.
21:24
kimylamp
Рет қаралды 189 М.
The ARM University Program, ARM Architecture Fundamentals
44:25
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 553 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,3 МЛН
ПОКУПКА ТЕЛЕФОНА С АВИТО?🤭
1:00
Корнеич
Рет қаралды 3,7 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,6 МЛН