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
https://github.com/artfulbytes/nsumo_...
🌍 Find me here
GitHub - https://github.com/artfulbytes
Website - https://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.
Auf dieser Seite können Sie das Online-Video Microcontroller Interrupts | Embedded System Project Series #17 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Artful Bytes 18 Februar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 21,255 Mal angesehen und es wurde von 692 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!