Hello evryone,
I am using a TM4C1294 launchPad, and i try to send a Signal with SSI peripheral from my computer to another devices, i wrote the Code for SPI and i tray to see the signal about a Oscilloscope but i see that no signal can send, can someone look my code and maeby see something that i not see.
Thank you
This is a SPI part from my code
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI2);
GPIOPinConfigure(GPIO_PD3_SSI2CLK);
GPIOPinConfigure(GPIO_PD2_SSI2FSS);
GPIOPinConfigure(GPIO_PD1_SSI2XDAT0); // SSInXDAT0 functions as SSInTX
GPIOPinConfigure(GPIO_PD0_SSI2XDAT1); //SSInXDAT1 functions as SSInRX
GPIOPinTypeSSI(GPIO_PORTD_BASE, GPIO_PIN_0 | GPIO_PIN_1 | GPIO_INT_PIN_2 | GPIO_PIN_3 );
SSIConfigSetExpClk(SSI2_BASE, SysCtlClockGet(), Polarity,
SSI_MODE_MASTER, 1000000, length);
//
// Enable the SSI0 module.
//
SSIEnable(SSI2_BASE);
SSIDataPut(SSI2_BASE, data);
regards
Khatib