PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Oct 25, 2013 10:29 pm |
|
|
Quote: | ext_int_edge(H_TO_L);
enable_interrupts(INT_RA3);
The H_TO_L condition appear that it does not work and every button push work as it was 2 actions.
|
The ext_int_edge() function doesn't work with INT_RA. It only works with #int_ext.
How to detect only the falling edge:
You can read the input pin inside the #int_ra routine, and if it's at a low
level, then you have detected the falling edge. Then perform your action.
Don't do anything if you read the signal as a high level, because it means
the interrupt was caused by the rising edge (L to H). |
|