Microcontroller Interrupts | Embedded System Project Series #17

SdĂ­let
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

Komentáƙe • 21

  • @reinasama904
    @reinasama904 Pƙed 5 měsĂ­ci

    Beautiful series! Everytime I come back to these videos I appreciate them even more, thank you man!

  • @furkanozata6775
    @furkanozata6775 Pƙed 10 měsĂ­ci +2

    Your explanations in the videos are pretty clear and understandable. Thanks a lot. 👏👏👍

  • @raghunathpalla8928
    @raghunathpalla8928 Pƙed 9 měsĂ­ci +1

    Pretty much well explained, amazing content about interrupts.

  • @contarr2801
    @contarr2801 Pƙed rokem +2

    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.

    • @artfulbytes
      @artfulbytes  Pƙed rokem +1

      Glad you found it useful. Yes studying a simpler microcontroller can help you better understand how more complicated computer work.

  • @tidlywidly4402
    @tidlywidly4402 Pƙed 9 dny

    You are the best.

  • @syeddanialahmed9353
    @syeddanialahmed9353 Pƙed 15 dny

    Great content 💕💕

  • @tedelctro6849
    @tedelctro6849 Pƙed rokem +1

    good job you are doing great !

  • @artfulbytes
    @artfulbytes  Pƙed rokem

    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.

  • @johanliebert2048
    @johanliebert2048 Pƙed rokem +1

    hop hop hop nice content parked

  • @connectme2karthik
    @connectme2karthik Pƙed 4 měsĂ­ci

    Nice video series. It would be great if you can make one series on embedded Linux operating system based on yocto framework.

    • @artfulbytes
      @artfulbytes  Pƙed 4 měsĂ­ci

      I might be heading in that direction for a future project, will see:)

  • @xesemesa12345678
    @xesemesa12345678 Pƙed 2 měsĂ­ci

    One question if the IVT is in the flash how can you change the ISR?

    • @artfulbytes
      @artfulbytes  Pƙed 2 měsĂ­ci

      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.

  • @madhusudhanan9278
    @madhusudhanan9278 Pƙed 2 měsĂ­ci

    Hey, which linux do you use and what is the name of that embedded system IDE name? -Thank you!

    • @artfulbytes
      @artfulbytes  Pƙed 2 měsĂ­ci

      Hi, Ubuntu Linux and the IDE is Code composer studio.

  • @nfjeldberg
    @nfjeldberg Pƙed rokem

    Please show us how to mount a flamethrower!

  • @zameerahmed1775
    @zameerahmed1775 Pƙed 8 měsĂ­ci

    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