MikroC Pro for PIC Interrupts lesson

Home Forums MikroC Pro for PIC Tutorial Discussions MikroC Pro for PIC Interrupts lesson

Viewing 3 reply threads
  • Author
    Posts
    • #4071
      Avatarseverus snape
      Participant

      I don’t understand why  we set interrupt on rising edge?

    • #4072
      Bitahwa BinduBitahwa Bindu
      Keymaster

      What exactly you don’t understand? A binary signal changes from low (0) to high (1) or from high (1) to low (0). If you set an interrupt on a button, you can decide whether it’s gonna be on rising edge when the signal is low to high or from trailing edge when the  signal is from high to low.

      You decide based on your unique application, what would work better for you.

    • #5667
      Avatarddjoumetio
      Participant

      greetings , please i do have a lot of difficulties making this program run correctly. i had it modified but i still have a problem , cause i can send ON at times and it sets a port high but when i send OFF is doesn’t set the same port low.

       

    • #5671
      Bitahwa BinduBitahwa Bindu
      Keymaster

      Your question is very broad, we can’t guess what exactly is wrong if you don’t provide enough information, like what you mean by difficulties, your code, what you are getting and what you are expecting, the PIC you are using, how you are testing, etc.

      This topic is about interrupts, I don’t know if you have problems with interrupts in your code as well, if yes explain clearly your problems.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
Select your currency
ZARSouth African rand
EUR Euro