Hello. I am having a problem with this right now. Using mikroc, while debugging, I am seeing that the interrupt condition is being met, but the program is not entering the interrupt function. What could be causing this?
void pin5_interrupt ()
{
if (INTCON.INTF==1)
{
INTCON.INTF=0;
//GPIO.F0=1;
//Vdelay_ms(dim_delay+offset_delay);
GPIO.F0=0;
delay_ms(1000);
}
GPIO.F0=1;
}
void interrupt(void){
}
Delay_ms()
for(i = 0; i < 10; i++){
Delay_ms(100);
}
void My_Delay_2sec(void)
{
Delay_ms(2000);
}
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
A | Spwm in mikroc | Programming & Languages | 6 | |
how to put characters in an array | Programming & Languages | 1 | ||
Heart rate code working mikroc pic -- and question | Microcontrollers | 7 | ||
pic mikroc heart rate monitor question | Programming & Languages | 1 | ||
D | MikroC EasyPic6 - Debug help | Programming & Languages | 1 |
by Jake Hertz
by Duane Benson
by Jake Hertz
by Jake Hertz