PIC MCU TUTORIALS #15 - External Interrupts (INT) & Interrupts in MPLAB (Absolute Beginner)

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 23

  • @Microesque
    @Microesque  2 роки тому +4

    Extra Note: At 26:33 instead of creating a software flag variable, you can just disable the enable bit of that interrupt and directly check the flag bit in your code without any interrupts (this is exactly the reason why flag bits set regardless of their enable bits; it's so you can poll the interrupt flags). You only need to create software flags if you need a part of your code executed asap in the interrupt routine, while some parts can tolerate being delayed.

  • @dualxsurvival155
    @dualxsurvival155 2 роки тому +2

    2 hours of sleep 12 hours of self taught half understood frankin code. Due today. You just saved 20% of my grade you beautiful bastard.

  • @rutexas7157
    @rutexas7157 Рік тому +2

    You are awesome! Crystal clear explanation!

  • @pankajkumarpatel2586
    @pankajkumarpatel2586 26 днів тому

    very good video and explain in technical with help of datasheet

  • @alejandrobanolescobar6160
    @alejandrobanolescobar6160 2 роки тому +3

    Thank You Man, a very useful vídeo

  • @fifaham
    @fifaham 6 місяців тому

    @27:07 I believe this will reduce power consumption and decrease the latency period for the ISR mechanism to respond to an external request - because of how IRQ works.

    • @Microesque
      @Microesque  6 місяців тому

      That depends. Most of the time, efficiency won't change since you'll enter and leave the interrupt routines the same number of times. Power consumption would only reduce if you also utilized low-power modes along with interrupts.
      As an extra note:
      Jumping to the interrupt routine takes 3-4 instructions. Checking which interrupt routine has been fired also takes many instructions. If you're using two interrupt routines at the same time, that also adds a bunch of instructions since there's only one set of "shadow registers" for this microcontroller. So technically, depending on the application, interrupts may even reduce the efficiency.

  • @bartoszjozwicki4541
    @bartoszjozwicki4541 Рік тому

    That is a very well explained tutorial, amazing work!

  • @Bretto311
    @Bretto311 Рік тому

    Awesome video series, I hope you continue to make more PIC programming videos!

    • @Microesque
      @Microesque  Рік тому

      Thanks👍I'm currently uploading for the debugging series, and there's only one more video left. After that, I'll continue on with this one again.

  • @tedbastwock3810
    @tedbastwock3810 8 місяців тому +1

    AMAZING content, thank you !!! 🙏

  • @smecmanca
    @smecmanca Рік тому

    Great explanation. Saluti from Italia

  • @badalnishant9203
    @badalnishant9203 7 місяців тому

    What a nice explaination you have done, do you have any other courses on advanced emebdded system.
    pls share .

    • @Microesque
      @Microesque  7 місяців тому

      Thanks 👍I don't have any courses or anything like that. This is kind of like a hobby I do for fun.

  • @ellerycadel
    @ellerycadel Рік тому

    Awesome tutorials! Do you have the config bits somewhere? I can't get the first example to work - it is not blinking at all.

    • @Microesque
      @Microesque  Рік тому

      Whoops... I should've included that too, my bad. It's the same config file I've been using in the series. I'll update the description shortly.

    • @ellerycadel
      @ellerycadel Рік тому

      @@Microesque Thank you so much! All of these tutorials have been great! You are explaining everything so well and in great detail!!!

    • @Microesque
      @Microesque  Рік тому

      @@ellerycadel Thanks 👍

  • @herrjonatan5436
    @herrjonatan5436 2 роки тому

    THANKS MAN

  • @kakashiroshi440
    @kakashiroshi440 2 роки тому

    Great explanation, but dark theme made it hard to see.