What is the identity used to call the interrupt service routine in MikroC?
That I used in MPLAB is not working.Code:void interrupt my_isr(void){ }
Thanks.
What is the identity used to call the interrupt service routine in MikroC?
That I used in MPLAB is not working.Code:void interrupt my_isr(void){ }
Thanks.
should work fine.Code:void interrupt() { }
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
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