27- Interrupts, part 2: Peripheral Interrupt | mikroC Pro for PIC Tutorial

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

КОМЕНТАРІ • 53

  • @StudentCompanion
    @StudentCompanion  4 роки тому +1

    If you found this video useful, please give it a thumbs up 👍 and subscribe to the channel. Also, let me know what topics you want me to cover in future videos by commenting below.
    By simply liking the video or a short comment like Thanks, helps this video in UA-cam algorithm to be found by others. It helps us a lot.

  • @keshenanaidu7160
    @keshenanaidu7160 7 років тому +5

    Great. The best and simplest yo understand interrupt tutorial. Keep ut up guys

  • @manmadha9013
    @manmadha9013 7 років тому +2

    Thank you for your tutorials in youtube,we are getting cleared many doubts from those tutorials.

  • @tota896
    @tota896 7 років тому +5

    Thank you. Great tutorial

  • @naveengreen1
    @naveengreen1 4 роки тому +1

    thanks for your tutorial, but can we call a function with lcd and eeprom write in external interupts, it shows me reenterence is not allowed, caan you guide me....

    • @StudentCompanion
      @StudentCompanion  4 роки тому

      Hi. It's not a good idea to write functions inside an interrupt service routine. Just set a flag variable when an interrupt occurs than in your main code, check if that flag is true, then call your functions.
      Please read this discussion: forum.mikroe.com/viewtopic.php?f=88&t=24108

  • @duclairtenez4046
    @duclairtenez4046 6 років тому +1

    Hello. I am on a pcb design projet with my team. I have issues triggering interruptions with uart. I saw yours with pic18f but me I am using pic16. Pls is there any link in which I can find a good tutorial? I have been trying it for long now but non of my code are working

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      Can you give more information? The PIC you are using, compiler, and the exact problem. What you are trying to achieve. With mikroC the steps are more or less the same for PIC16 and PIC18. This video should help you.

    • @duclairtenez4046
      @duclairtenez4046 6 років тому +1

      @@StudentCompanion I am using 16f877a with mikroc pro. I want to trigger an interruption when it receive a character on it rx pin

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      You didn't explain what issues you are facing. The procedure should be more or less the same as in this video

    • @duclairtenez4046
      @duclairtenez4046 6 років тому +1

      Here is my code,
      int flag = 0;
      void interrupt() {
      if (PIR1.RCIF) { // test the interrupt for uart rx
      flag=1;
      } // end if (PIR1.RCIF)
      } // end interrupt
      void main () {
      INTCON.GIE = 1;
      INTCON.PEIE = 1;
      PIE1.RCIE = 1; //enable interrupt.
      PIR1.RCIF = 0; .
      Uart1_Init(19200);
      Uart1_Write_text("good tene but contiunue");
      uart1_write (13);
      while(1) { // Begin endless loop
      if (flag) {
      Uart1_Write_text("good tene");
      flag = 0;
      } // end if (flag)
      } // end while
      } // end main
      it compiles with no problem in mikroc but the interrupt function does not work
      when i simulate with proteus.

    • @StudentCompanion
      @StudentCompanion  6 років тому +1

      How are you testing in Proteus to conclude that it's not working? Are you sending something to your PIC? How? How is your connection? What is connected to your PIC Tx and Rx pins?

  • @manmadha9013
    @manmadha9013 7 років тому +1

    If we can make this application with 32 bit microcontroller pleaase provide that information sir thank you

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +manmadha gorjana which information? We can only assist you with the code you have. Unfortunately we can't do everything for you. We won't have time to attend to each request.
      We advised to use a 32bit because of the task you are doing. 8-bit won't have enough resources for that.

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion it's ok sir

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +manmadha gorjana you are welcome!

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion i am writing code for my project if i have any doubts further, please provide me your contact information for connecting you (mail or WhatsApp number), thank you sir.

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +manmadha gorjana you can ask your questions here on UA-cam or in the Forum on our website. We don't reply on private emails or whatsapp on matter related to tutorials. Forum: www.studentcompanion.co.za/forums/

  • @manmadha9013
    @manmadha9013 7 років тому +1

    Ok sir

  • @manmadha9013
    @manmadha9013 7 років тому +1

    sir kindly help me to write code for the project "PENDRIVE TO PENDRIVE DATA TRANSFER" using PIC18f4550 and VDIP2 Module and 20x4 lcd

    • @StudentCompanion
      @StudentCompanion  7 років тому +1

      +manmadha gorjana i don't think you'll be able to achieve that with an 8-bit (PIC18F4550). Pendrive functions are best handled in USB host not slave. PIC18F4550 can only be used as USB slave. You'll need a 32bit microcontroller to achieve that.

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion sir we are using a vdip2 module which can handle two pendrives .and by using pic microcontroller we have to send the proper commands to vdip2 module using UART to transfer the data

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion but i need to access the each file in the pendrive so i need help in that

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion i have the firm ware manual of vdip2 in that so many commands are there but i am not a good programmer so i am not able to understand those commands

    • @manmadha9013
      @manmadha9013 7 років тому +1

      Student Companion kindly provide me your e-mail id i can send those documents then you can help me

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

    Blink_ interrupt function not isr... That is normal function not interrupt isr

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

    thanks man Great Tutorial.