Hi All,
I am working with TM4C129x device and I am trying to set the logic level of PortN lines using GPIOPinWrite function and observe that GPIO_DATA register of port n is not being updated and Logic level of GPIO is not changed. Please find the snippet of the code.
if (SysCtlPeripheralReady(SYSCTL_PERIPH_GPION))
{
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_2);
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_5);
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_2, 1);
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_5, 1);
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_3);
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_3, 1);
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_4);
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_4, 1);
}
With this code, when Register map for Port N is monitored in CCS, i see that the data written is being updated for GPIODIR direction register but not for GPIODATA register.
I have used GPIOInterrupt example for Launchpad kit and customized the code for our hardware.
Software configuration:
CCSV6
tirtos_tivac_2_00_01_23
TivaWare_C_Series-2.1.0.12573c
Has anybody faced such issue?
Please let me know if anybody has faced such an issue with GPIOPinWrite.
Thanks and regards,
Gupta