Dear all,
While going through different articles, datasheets and workshops, I have learned that in TM4C123G, the SSI0 perpheral is preconfigured as SSI through Port A pins 2-5 and requires no preconfiguration.
However, Im doing a project that uses SSI2 and SSI0 both. For SSI2, I have done the following configurations:
SysCtlClockSet(SYSCTL_SYSDIV_4 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI2);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOB);
GPIOPinConfigure(GPIO_PB4_SSI2CLK);
GPIOPinConfigure(GPIO_PB5_SSI2FSS);
GPIOPinConfigure(GPIO_PB6_SSI2RX);
GPIOPinConfigure(GPIO_PB7_SSI2TX);
GPIOPinTypeSSI(GPIO_PORTB_BASE, GPIO_PIN_4 | GPIO_PIN_6 | GPIO_PIN_7|GPIO_PIN_5);
SSIDisable(SSI2_BASE);
SSIClockSourceSet(SSI2_BASE, SSI_CLOCK_SYSTEM);
SSIConfigSetExpClk(SSI2_BASE, SysCtlClockGet(), SSI_FRF_MOTO_MODE_0,SSI_MODE_MASTER, 400000, 8);
SSIEnable(SSI2_BASE);
// now sending data thru SSI2
SSIDataPut(SSI2_BASE,0x40); //init command - cmd0
while(SSIBusy(SSI2_BASE));
.
.
.
And this is working fine. Now I want to know that are these set of configurations all necessary to be done for the SSI0 for Port PA2-5 or only a part of the above configs need to be done.