Quick MikroC Interrupt ?

Discussion in 'Programmer's Corner' started by Dalaran, Jan 8, 2010.

  1. Dalaran

    Thread Starter Active Member

    Dec 3, 2009
    168
    0
    What is the identity used to call the interrupt service routine in MikroC?

    Code ( (Unknown Language)):
    1. void interrupt my_isr(void){
    2. }
    That I used in MPLAB is not working.

    Thanks.

    edit: my bad wrong forum, should be uC.
     
  2. SgtWookie

    Expert

    Jul 17, 2007
    22,182
    1,728
    See the mikroC Manual.
    In the version I downloaded in August 2008, it's in the mikroC Language Reference under mikroC Specifics, on page 36.
     
  3. Tahmid

    Active Member

    Jul 2, 2008
    344
    25
    Hi,
    You got it wrong.
    It should be:
    Code ( (Unknown Language)):
    1. void interrupt(){
    2. // your interrupt handling code here
    3. }
     
Loading...