Hello,
I'm trying to access a Flash Memory chip in SPI Legacy ( Motorola) mode.
my Problem is that i need to keep the FSS Pin asserted as long as the transmission is ongoing.
here is an example i used for a Microchip µC:
FRAM_CS_IO = 0; // Assert chip
_Send(FRAM_CMD_RDSR); // Send Command
Dummy = _Get(); // Get Status register contents
FRAM_CS_IO = 1; // deassert chip
// Ti Setup: MAP_SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0); MAP_GPIOPinConfigure(GPIO_PA2_SSI0CLK); MAP_GPIOPinConfigure(GPIO_PA3_SSI0FSS); MAP_GPIOPinConfigure(GPIO_PA4_SSI0XDAT0); MAP_GPIOPinConfigure(GPIO_PA5_SSI0XDAT1); MAP_GPIOPinTypeSSI(GPIO_PORTA_BASE, (GPIO_PIN_2 | GPIO_PIN_3 | GPIO_PIN_4 | GPIO_PIN_5)); MAP_SSIConfigSetExpClk(SSI0_BASE, g_ui32SysClock, SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, (g_ui32SysClock/24), 8); MAP_SSIEnable(SSI0_BASE); // Requesting Status Register from Flash: MAP_SSIDataPut(SSI0_BASE, FLASH_CMD_RDSR); ii = 0; /* Wait for the data to be transmitted out of the SSI0 by checking on * the busy status from the SSI controller*/ while(MAP_SSIBusy(SSI0_BASE)); /* Flush the Receive FIFO as the data shifted in is not a valid * response from the slave yet */ while(MAP_SSIDataGetNonBlocking(SSI0_BASE, &getResponseData)); /* Send the polling request to see if the slave responds when it is * ready with the response packet */ MAP_SSIDataPut(SSI0_BASE, sendDummyData); MAP_SSIDataGet(SSI0_BASE, &getData[ii]);