2007-05-30 05:15 AM
2007-04-30 03:25 AM
Hi to all,
does is it possible to set an interrupt on gpio signal both in rising and falling edge mode? I have to realize a recognizer of generic device inserted, then, start a test on this device when this one is inserted, while, if the device is not inserted, no test be performed. Thanks to all, Bassof2007-05-01 02:49 AM
Hi Bassof,
I tried this a little while ago; I was not able to configure the pin to trigger an XTI for both edges. What I did was: Configure the pin for the expected edge (whether rising or falling) and configure for the next logical edge in the XTI ISR ( to be ready for the opposite edge to come). [edit:] To make things clear, if you expect, the first time, a rising edge, then when the XTI is triggered, configure the pin for the falling edge before clearing the interrupt, and the next time (when you meet the falling edge and service the interrupt again), configure for the rising edge to come. This way, I sort of triggered the XTI routine for both edges. You could also sample the pin level (0 or 1) in the XTI routine, just to make sure. If anyone has another idea, do not hesitate to share! Best regards, Jp [ This message was edited by: tech on 01-05-2007 19:36 ]2007-05-30 05:15 AM
Hi Bassof,
The XTI does not handle both Rising and Falling edge. There is only one XTI trigger register to select polarity as falling or rising edge. It could be handled by software and you modify the XTI Trigger polarity in the XTI ISR.