40x2 Edge triggered Interrupt using Pin 2 - A0

dalise

New Member
Hi all,

I think I know the answer to this but just wanting to see if A0 can be used as an edge triggered interrupt on the 40x2.

I have a square wave digital input and want to trigger on the edge only (not active low or active high) as this will continually trigger the interrupt.

INT 0,1,2 are currently allocated for other tasks so hoping there is a way without changing the base design.

thanks
dalise
 

hippy

Technical Support
Staff member
Only the HINTx pins can generate an interrupt on an edge but it is possible to arrange for a SETINT to interrupt when a pin has gone high or low and not have it continually interrupt.

For example, to detect rising edges on A.0 - When a SETINT for A.0 High activates you can set it to next interrupt on A.0 Low. When that occurs you can ignore that interrupt and set it to next interrupt on A.0 High.
 
Top