Hello,
We have two pins to use as an interface between FPGA-TIVA.Actually for interrupt handling otherwisw before controller is up fpga is sending out its data.So we want to configure pins and probe them and se.The options we tried are
1).Port k pin 4
SYSCTL_RCGCGPIO_R |= (0x1 << 9); // Port k
GPIO_PORTK_DIR_R = 0X10;
GPIO_PORTK_DEN_R = 0X10;
GPIO_PORTK_DR4R_R = 0x10;
GPIO_PORTK_DATA_R=0X10;
2)port n pin 5
GPIOPinTypeGPIOOutput(GPIO_PORTN_BASE, GPIO_PIN_5); // PB3(2) -> EN_GATE
GPIOPadConfigSet(GPIO_PORTN_BASE, GPIO_PIN_5, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD);
GPIODirModeSet (GPIO_PORTN_BASE, 0x20, GPIO_DIR_MODE_HW );
GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_5, GPIO_PIN_5);
3)
MAP_GPIOPinWrite(GPIO_PORTN_BASE, GPIO_PIN_5, (MAP_GPIOPinRead(GPIO_PORTN_BASE, GPIO_PIN_5)));
but we are not succeeding .We need the initial state of pin and configured output state to be different .(probing to virw difference)
Help for solutions.
Thankingyou,
Krishnan