Disabeling interrupt
Posted: Wed Oct 05, 2011 2:45 pm
Hi All,
I want to use the INT-interrupt on port RB0 of 16F887A. But I want both high-to-low and low-to-high interrups.
Is the next set up possible:
1) enable INT interrupt on high-to-low with macro HtL.
2) if interrupt occursin macro HtL I increase a counter, disable the interrupt and enable a new interrupt on low-to-high with macro LtH,
3) the same for this macro HtL, increse a counter, disable the interrupt and start HtL intterupt again.
Kind reagrds
Jan Lichtenbelt
I want to use the INT-interrupt on port RB0 of 16F887A. But I want both high-to-low and low-to-high interrups.
Is the next set up possible:
1) enable INT interrupt on high-to-low with macro HtL.
2) if interrupt occursin macro HtL I increase a counter, disable the interrupt and enable a new interrupt on low-to-high with macro LtH,
3) the same for this macro HtL, increse a counter, disable the interrupt and start HtL intterupt again.
Kind reagrds
Jan Lichtenbelt