Hello,
Dev board: EK-TM4C1294XL
Tiva™ C Series TM4C1294 Connected
LaunchPad Evaluation Kit
I'm trying to configure Port A Pins 0 - 7 to be used as GPIO pins for an LCD Driver. However, I cannot seem to configure Port A Pin 0 correctly. When the port clock is turned off, the pin still reads 3.3V. When the port clock is turned on and the pin is set to low, the voltage is 1.89V (spec says 0.4V Max for Vlow). All the other pins read close to 0V, apart from PA0.
I have checked through the datasheet, and there's no special mention of PA0 being used for anything else. Here is an outline of the code I'm using (I'm using the driverlib API):
Why is PA0 not behaving like the other pins?
#define DBUS GPIO_PORTA_AHB_BASE #define DB0 GPIO_PIN_0 #define DB1 GPIO_PIN_1 #define DB2 GPIO_PIN_2 #define DB3 GPIO_PIN_3 #define DB4 GPIO_PIN_4 #define DB5 GPIO_PIN_5 #define DB6 GPIO_PIN_6 #define DB7 GPIO_PIN_7 #define DBALL (DB0 | DB1 | DB2 | DB3 | DB4 | DB5 | DB6 | DB7) #define CTLPORT GPIO_PORTB_AHB_BASE #define RS GPIO_PIN_4 #define EN GPIO_PIN_5 void setupLCD(void) { SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); //enable Port A clock SysCtlDelay(100); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB); //enable Port B clock SysCtlDelay(100); GPIOPinTypeGPIOOutput(DBUS, DBALL); //enable databus as outputs SysCtlDelay(100); GPIOPinTypeGPIOOutput(CTLPORT, RS | EN); GPIOPinWrite(DBUS, DBALL, 0); }