Hi
I am programming a prototype connected to my launchpad EK-TM4C123GXL board.
Prototype has five switch buttons. Three of them are connected to pins A2, A3 aNd A4, another one connected to D6 and last button is connected to C6 pin.
Port A and port D pins work fine, and when i push some button they trigger interrupt function. But pin C6 doesn't trigger the interrupt routine on a pin change.
I think that configuration pins are correct, but i don't know where the problem is with PC6 pin or port C.
My configuration code:
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOC); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD); GPIOPortIntRegister (GPIO_PORTA_BASE, PortAIntHandler); GPIOPortIntRegister (GPIO_PORTC_BASE, PortCIntHandler); GPIOPortIntRegister (GPIO_PORTD_BASE, PortDIntHandler); GPIOPinTypeGPIOInput(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4); GPIOPinTypeGPIOInput(GPIO_PORTC_BASE, GPIO_PIN_6); GPIOPinTypeGPIOInput(GPIO_PORTD_BASE, GPIO_PIN_6); GPIOPadConfigSet ( GPIO_PORTA_BASE , GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 , GPIO_STRENGTH_2MA , GPIO_PIN_TYPE_STD_WPU );// GPIOPadConfigSet ( GPIO_PORTC_BASE , GPIO_PIN_6 , GPIO_STRENGTH_2MA , GPIO_PIN_TYPE_STD_WPU ); GPIOPadConfigSet ( GPIO_PORTD_BASE , GPIO_PIN_6 , GPIO_STRENGTH_2MA , GPIO_PIN_TYPE_STD_WPU ); GPIOIntTypeSet(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4, GPIO_FALLING_EDGE);// GPIOIntTypeSet(GPIO_PORTC_BASE, GPIO_PIN_6, GPIO_FALLING_EDGE); GPIOIntTypeSet(GPIO_PORTD_BASE, GPIO_PIN_6, GPIO_FALLING_EDGE); GPIOPinIntEnable(GPIO_PORTA_BASE, GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4); GPIOPinIntEnable(GPIO_PORTC_BASE, GPIO_PIN_6); GPIOPinIntEnable(GPIO_PORTD_BASE, GPIO_PIN_6); GPIOPinIntClear ( GPIO_PORTA_BASE , GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 ); GPIOPinIntClear ( GPIO_PORTC_BASE , GPIO_PIN_6 ); GPIOPinIntClear ( GPIO_PORTD_BASE , GPIO_PIN_6 ); IntEnable (INT_GPIOA); IntEnable (INT_GPIOC); IntEnable (INT_GPIOD); IntMasterEnable();

