I a using the TM4C1294XL launchpad
i have the need to toggle very fast a 2 GPIO, so i chosed PE3 and PE2.
Problem is if i just toggle PE2, PE3 also toggles, and vice versa.
Is there any limitations that i am no aware or am i doing anytigh rong?
This is how i configure the ports and toggle them:
//Configure GPIO_E:
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOE);
SysCtlGPIOAHBEnable(SYSCTL_PERIPH_GPIOE);
//Configure port E2:
GPIOPinTypeGPIOOutput(GPIO_PORTE_AHB_BASE, GPIO_PIN_2);
GPIOPadConfigSet(GPIO_PORTE_AHB_BASE, GPIO_PIN_2, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_STD);
//Configure port E3:
GPIOPinTypeGPIOOutput(GPIO_PORTE_AHB_BASE , GPIO_PIN_3);
GPIOPadConfigSet(GPIO_PORTE_AHB_BASE, GPIO_PIN_3, GPIO_STRENGTH_8MA, GPIO_PIN_TYPE_STD);
//
HWREG(GPIO_PORTE_AHB_BASE + ((GPIO_PIN_2 << 2))) = 0;
while(1){
HWREG(GPIO_PORTE_AHB_BASE + ((GPIO_PIN_3 << 2))) = GPIO_PIN_3;
HWREG(GPIO_PORTE_AHB_BASE + ((GPIO_PIN_3 << 2))) = 0;
}
if(NewVal[0]-48==0){
UARTUpdate=0;