Microcontroller Interrupts | Embedded System Project Series #17
VloĆŸit
- Äas pĆidĂĄn 23. 07. 2024
- I explain how microcontroller interrupts work by mixing theory with a code example. For fun, I let ChatGPT generate my code example. I also add some functions in my project that lets me add new GPIO interrupts more easily. Finally, I bump the clock speed of my microcontroller from 1 MHz to 16 MHz, not because I need to, but because I can.
0:00 Outline
3:12 Why polling is bad
9:40 How does interrupts work?
20:30 Interrupt advantages
21:38 ChatGPT code example
25:56 Interrupt vector table
28:47 Disassembly of ISR
30:36 GPIO interrupts in my project
38:25 PORT1 and PORT2 ISRs
42:30 Test my code
44:25 Fix my code
46:43 Commit 1
47:27 Increase clock speed
53:25 Commit 2
#embeddedsystems #cprogramming #microcontroller
đ Links related to this video
github.com/artfulbytes/nsumo_...
đ Find me here
GitHub - github.com/artfulbytes
Website - www.artfulbytes.com
đšâđ» About me
Hi and welcome. I'm Niklas, an embedded systems engineer from Sweden. On this channel, I make practical videos about embedded systems or, in general terms, about building and programming hardware. - VÄda a technologie
Beautiful series! Everytime I come back to these videos I appreciate them even more, thank you man!
Your explanations in the videos are pretty clear and understandable. Thanks a lot. đđđ
Pretty much well explained, amazing content about interrupts.
Thank you for such a good educational video! I am lerning the subject, which called "Operating System" and this explanation about microcontrollers interruption gave me much clear vision on how pc works.
Glad you found it useful. Yes studying a simpler microcontroller can help you better understand how more complicated computer work.
You are the best.
Great content đđ
good job you are doing great !
There is a mistake in the code at 50:55. It should be:
BCSCTL1 = CALBC1_16MHZ;
DCOCTL = CALDCO_16MHZ;
I shouldn't or them. I notice and fix this in my next video.
hop hop hop nice content parked
hop hop
Nice video series. It would be great if you can make one series on embedded Linux operating system based on yocto framework.
I might be heading in that direction for a future project, will see:)
One question if the IVT is in the flash how can you change the ISR?
The addresses of the entries in the IVT are fixed*, but the entries themselves (ISR addresses) can be changed. *Technically, some architectures also allow you to relocate the IVT.
Hey, which linux do you use and what is the name of that embedded system IDE name? -Thank you!
Hi, Ubuntu Linux and the IDE is Code composer studio.
Please show us how to mount a flamethrower!
đłđŽđ„
Ur an awesome & exceptional artist cum programmer cum hardware engineer ??? ....The IIT's in India need you .
I need some help from you
Can we get together & start a company . There are lots of oppurtunities in India ............. we can focus on Iot / bluetooth products and sell them in the international market. The dev/qa labour cost is very cheap in India .................
Love to hear from you