Hi is it possible to create one interrupt for both (falling and rising )edge of a pin?
Yes.. it is possible to get interrupt on both rising and falling edges of a signal on GP input pin. In the PINT_ASSIGN register, map the same PORT in two fields. Then configure one slot for rising edge interrupt and other slot as falling edge interrupt.
e.g. suppose you want to configure PA_04 pin interrupts on both edges.
PINT0_ASSIGN = 0x00000000; (B0MAP = B2MAP = 0 = PA.L)
PINT0_EDGE_SET = 0x00100010;
PINT0_INV_SET = 0x00100000;
PINT0_INV_CLR = 0x00000010;
PINT0_MSK_SET = 0x00100010;
Retrieving data ...