How to Blink LEDs with Timers and Interrupts in C (MSP430, Arduino)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 พ.ย. 2024

ความคิดเห็น • 38

  • @n0handles
    @n0handles 4 ปีที่แล้ว +10

    Just want to say I'm glad I stumbled on this series! Keep these coming!
    I'm a CS student myself, and I've been thinking about getting into embedded systems engineering. However my university doesn't offer any embedded systems courses. Thanks for the great introduction

  • @camilocienfuegos1531
    @camilocienfuegos1531 4 ปีที่แล้ว +4

    You are perfect educator. Please keep teach us what beginner need.
    Greetings from Turkey.

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว +1

      Thanks. I'll keep doing what I can.

  • @rjgonzalez8108
    @rjgonzalez8108 4 ปีที่แล้ว +22

    Do you have a video where you explain how to setup VSCode for embedded systems?

  • @aabdev
    @aabdev 4 ปีที่แล้ว +3

    Dear Jacob Sorber,
    Thanks a lot for the tutorial.
    1) What happens when an interrupt is triggered?
    2) What is the interrupt handling algorithm in AVR ARM PowerPC x86 MSP430 MIPS ?
    3) How does the microcontroller know where to return after handling an interrupt?
    4) Who saves the processor registers when interrupt happens and where?
    5) What code performs correct transfer to and from interrupt function?
    Regards,
    AB

  • @arturfil
    @arturfil 4 ปีที่แล้ว +6

    Really liking this video series, looking forward to the next!

  • @henryvoide3651
    @henryvoide3651 4 ปีที่แล้ว +2

    Professor Sorber, I have learned from your video presentations. I wish you had more of these videos about programming TI's MSP430 Microcontrollers using C language.
    Do you know any consultants for programming TI's MSP430 Microntrollers in Silicon Valley, CA?

  • @blaFERNANDOblablabla
    @blaFERNANDOblablabla 4 ปีที่แล้ว +3

    waiting for the next vid! awesome content.
    Saludos desde Veracruz, México.

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว

      Working on it. Thanks for watching.

  • @cuteisjustice8208
    @cuteisjustice8208 4 ปีที่แล้ว +4

    This video came right after I finished my Microcomputers course kek. Good video nevertheless.

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว

      Sorry to be late to the party.

  • @DipsankarMaity
    @DipsankarMaity 4 ปีที่แล้ว +3

    Who are you 😭? Why wasn't I recommended your channel earlier.

  • @hakimcherfi217
    @hakimcherfi217 3 ปีที่แล้ว +2

    14:05 "unless you work in the kernel"...
    Could you explain in a future video how a kernel works ? (What it is, how it is written, what to do with it,how to modify it...)
    Great channel BTW !!

  • @davidgrol3425
    @davidgrol3425 2 ปีที่แล้ว +1

    Why is clock rate set to 15.998976 instead 16.000000, is that specific arduino?

  • @sakshisingh8167
    @sakshisingh8167 3 ปีที่แล้ว +2

    PLEASE DO STM32F407VG DISCOVERY BOARD

  • @JohnCDSMB
    @JohnCDSMB 4 ปีที่แล้ว +1

    You're right, comparing children requests to polling. Are women requests comparable to interrupts? They don't depend on your actions, stop your activities at any moment and you're obliged to listen and serve them!

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว +2

      Wow. I'm definitely not touching that one. Glad you're having fun with the analogies, though. :)

    • @JohnCDSMB
      @JohnCDSMB 4 ปีที่แล้ว

      @@JacobSorber Well, let's say I have a lot of experience with both techniques. Congratulations for the way you teach, it's really great

  • @thetoolman01
    @thetoolman01 3 ปีที่แล้ว

    Trying to use this code and for some reason the CSKEY_H is undefined, any ideas on why this might happen, or how to find the key in the datasheet?

  • @yekaalohabtemichael5068
    @yekaalohabtemichael5068 4 ปีที่แล้ว +1

    Can you talk about bits minuplation please? I did lzw compression and was so comfusing. Reading no matter what the file is and encode it the be able to decode it aswell

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว +1

      Yeah, I've got one on bitfields in the works. Specifically, what sort of bit manipulation are you interested in?

    • @yekaalohabtemichael5068
      @yekaalohabtemichael5068 4 ปีที่แล้ว

      Really sorry didn't see your response. Bit field is very helpful. My project was, lets say you have a file no matter what the content is could be image,could be text so the program should compress it and decompress it. So the program should read the file as bits since the file could be anything. Thats what i was struggling with. The bitstream concept.
      However I don't want to pass without saying thank you tho. I love your teaching style. I am afraid you could get me hocked to embeded system.

  • @benjaminshinar9509
    @benjaminshinar9509 4 ปีที่แล้ว +2

    cosmic alpha particles.
    the bane and goto blame thing of cs.

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว

      Right up there with...it's possessed. :)

  • @cadillacescalade5428
    @cadillacescalade5428 ปีที่แล้ว

    Hi, what about using this towards a traffic light set up ? An at a certain time the lights go on a flash blink for a certain time an then back at original

  • @SuperCape
    @SuperCape 4 ปีที่แล้ว

    How do you handle interrupts in GNU/Linux x86?

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว +1

      On the x86, it's pretty similar. You register your ISR for the interrupt you want. But, this is generally done in the kernel, not by user programs. So, for examples, your best bet is to look at the source code for the operating system. I might do a kernel video one of these days, but it would be pretty involved. So, it probably won't be in the next few months.

  • @tseckwr3783
    @tseckwr3783 2 ปีที่แล้ว

    yes, dont get hung up using delay()...

  • @allisonscanlan4144
    @allisonscanlan4144 3 ปีที่แล้ว

    MSP430 @9:00

  • @gabrieleinvernizzi9631
    @gabrieleinvernizzi9631 4 ปีที่แล้ว

    On my MacBook I can’t find the port when I connect the arduino (I have a clone, the Elegoo Uno R3) with the cable, so I can’t upload the code, can someone help me?

    • @JacobSorber
      @JacobSorber  4 ปีที่แล้ว +1

      I would first try another device to determine if it's your computer or a broken Uno.

    • @gabrieleinvernizzi9631
      @gabrieleinvernizzi9631 4 ปีที่แล้ว

      @@JacobSorber Thanks, I'll try

  • @allisonscanlan4144
    @allisonscanlan4144 3 ปีที่แล้ว

    What does the

    • @JacobSorber
      @JacobSorber  3 ปีที่แล้ว +1

      It's a shift. It shifts the bits to the left. So, 1

  • @toastyPredicament
    @toastyPredicament ปีที่แล้ว

    I mean prefer

  • @thaskarthaskaran1425
    @thaskarthaskaran1425 4 ปีที่แล้ว

    Code for atmega 168