Part Number: TM4C123GH6PM
Hi all,
I am trying to connect 2 of tm4c123 launchpad using uart1 module on the both. the application i use is so simple, pressing switch on one launchpad >> turn led on on the other launchpad.
the problem is that i configured the settings such that it will interrupt on the falling edge for sw1 and sw2 of launchpad (PF0, PF4) but i found that the interrupt still occurring on the falling edge of PF1, PF2, PF3.
here is the port f initialization:
void PORTF_Init(void){
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOF) ;
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOF)) ;
GPIO_PORTF_LOCK_R = 0x4C4F434B ;
GPIO_PORTF_CR_R |= 0x01 ;
GPIOPinTypeGPIOInput(GPIO_PORTF_BASE, GPIO_PIN_0|GPIO_PIN_4) ;
GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3) ;
GPIOPadConfigSet(GPIO_PORTF_BASE, GPIO_PIN_0|GPIO_PIN_4, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU) ;
GPIOIntTypeSet(GPIO_PORTF_BASE, GPIO_INT_PIN_0|GPIO_PIN_4, GPIO_FALLING_EDGE) ;
GPIOIntRegister(GPIO_PORTF_BASE, PORTF_isr) ;
GPIOIntEnable(GPIO_PORTF_BASE, GPIO_INT_PIN_0|GPIO_INT_PIN_4) ;
}
any one can help ?
thanks,
Sarea