Tool/software: Code Composer Studio
Hello,
I'm having multiple TM4C123 launchpads. I've written a code in CCS to drive 4 leds using Port C pin 4,5,6,7.
The problem is using one launchpad all the 4 leds are working perfectly. But if I change the launchpad, the leds are not glowing.
I checked with multimeter, on the working launchpad I'm getting 3v3 voltage on port C pins, but on the other launchpad I'm getting 0V.
Here is the code:
int main(void)
{
SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5);
while(1)
{
GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, 0xFF);
// GPIOPinWrite(GPIO_PORTC_BASE, GPIO_PIN_4, GPIO_PIN_4);
SysCtlDelay(2000000);
GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_2|GPIO_PIN_3|GPIO_PIN_4|GPIO_PIN_5, 0);
SysCtlDelay(2000000);
}
}
Why does this happen??
Anything can be done to get the second launchpad pins working??
Regards
Praveen