Hi, I have some problem setting the PD7 as simple I/O pin. In my program, I need to use both PD6 and PD7 pins as output I/O pins.
With the same setting, I can output high or low at PD6 pin, not with PD7.
Here is how I set up both pins:
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_6);
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_7);
Here is how I drive both pins:
set high
ROM_GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_6, GPIO_PIN_6);
ROM_GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_7, GPIO_PIN_7);
set low
ROM_GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_6, 0);
ROM_GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_7, 0);
Do I need to do some special setting for the PD7?
Thanks!!