Electronic Circuits and Projects Forum


Quick MikroC interrupt question

Results 1 to 3 of 3
Reply to Thread
  1. #1
    Dalaran
    Dalaran is offline

    Default Quick MikroC interrupt question

    What is the identity used to call the interrupt service routine in MikroC?
    Code:
    void interrupt my_isr(void){
    }
    That I used in MPLAB is not working.

    Thanks.

  2. #2
    Mr RB
    Mr RB is offline
    Code:
    void interrupt()
    {
    
    }
    should work fine.

    Did you download all the MikroC code examples for your EasyPIC6? They may already be in your MikroC Pro directory.

    It is REALLY worthwhile, there are very simple C examples of every hardware peripheral etc. There are also interrupt examples for each fo the timers.
    Last edited by Mr RB; 9th January 2010 at 08:01 AM.
    Roman Black - PICs and electronics. Author of BTc PIC-sound encoder, Shift1-LCD project, the TalkBotBrain talking PIC controller, LiniStepper open-source microstepping motor driver, the Black Regulator 2-transistor SMPS, and probably some other stuff; www.RomanBlack.com

  3. #3
    makri
    makri is offline
    Hello

    Interrupt handling is very easier in CCSC, I am using both Mikroc and CCSC. Before Using interrupt() function in Mikroc, you have to enable GIE and the particular setting need for your interrupt.

    makri

    Linux and Microcontroller Tips

Reply to Thread

Similar Threads

  1. mikroC PRO Question
    By Dalaran in Microcontrollers
    Replies: 8
    Latest: 4th January 2010, 03:05 PM
  2. Just a quick question for most of you!
    By iONic in Electronic Projects Design/Ideas/Reviews
    Replies: 15
    Latest: 10th November 2007, 03:45 AM
  3. quick interrupt question
    By evandude in Microcontrollers
    Replies: 2
    Latest: 11th August 2004, 08:59 PM
  4. quick question - pd
    By Kane2oo2 in General Electronics Chat
    Replies: 4
    Latest: 15th March 2004, 08:55 PM
  5. Quick Question
    By Cyclone in General Electronics Chat
    Replies: 4
    Latest: 30th March 2003, 08:20 PM