Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hello ,
I am writing a program to toggle a switch with external interrupt ( XINT1 ) and i have enabled the PULL_UP on GPIO_INPUT(pin 18) , but what i am observing is that on choosing RISING_EDGE_INTERRUPT when I toggle switch from open state (HIGH STATE) to close state (GROUND STATE) it cause interrupt (BUT IT IS A TRANSITION FROM LOW TO HIGH STATE and RISING EDGE MEAN A TRANSITION FROM LOW TO HIGH)
and reverse is happening on choosing the FALLING_EDGE_INTERRUPT (transition from LOW TO HIGH STATE CAUSING INTERRUPT.)
I WANT TO KNOW WHY THESE IS DOING INVERTED FUNCTION?
DOES TI HAVE PURPOSELY MADE IT LIKE THIS?
/****************************************************************************************************************************/
IN MY FILE THIS IS DEFINED :
typedef enum
{
GPIO_INT_TYPE_FALLING_EDGE = 0x00, //!< Interrupt on falling edge
GPIO_INT_TYPE_RISING_EDGE = 0x04, //!< Interrupt on rising edge
GPIO_INT_TYPE_BOTH_EDGES = 0x0C //!< Interrupt on both edges
} GPIO_IntType;