Hi,
I'm making a circuit and i am using RB0/INT as my interrupt port. When i set it to high it runs my interrupt routine. This works 100%. What i need to do is while i am running my interrupt routine if RB0/INT goes high again stop the interrupt routine and start it again.
My interrupt routine has an LED on for 10 seconds and when the RB0/INT goes high i want to reset my counter and keep the LED on for another 10 seconds (start the count again). Like a retriggerable timer. When on 48Khz the LED goes off for 0.5ms or less. I am setting INTCON.INTF = 0 ; at the start of my interrupt routine to do this. When set at 4Mhz it works. I have tested this with a multimeter, and i cannot see it drop on the 4Mhz only on the 48khz.
Any ideas?
Thanks,
Marc
I'm making a circuit and i am using RB0/INT as my interrupt port. When i set it to high it runs my interrupt routine. This works 100%. What i need to do is while i am running my interrupt routine if RB0/INT goes high again stop the interrupt routine and start it again.
My interrupt routine has an LED on for 10 seconds and when the RB0/INT goes high i want to reset my counter and keep the LED on for another 10 seconds (start the count again). Like a retriggerable timer. When on 48Khz the LED goes off for 0.5ms or less. I am setting INTCON.INTF = 0 ; at the start of my interrupt routine to do this. When set at 4Mhz it works. I have tested this with a multimeter, and i cannot see it drop on the 4Mhz only on the 48khz.
Any ideas?
Thanks,
Marc