Other Parts Discussed in Thread: EK-TM4C123GXL
Simply, I'm trying to Interface nrf24l01+ (Wireless module) module through SSI0 (SPI), and it works perfectly. on PINS (PA 2 PA3 PA4 PA5)
When I try to switch to a different SSIn, for example, use SSI1 (SPI) on PINs (PD0 PD1 PD2 PD3) It never works?!!
Am I missing something special for SSIx which is not required for SSI0?
The following is the code related to the initialization of the SSIx I'm using for both cases 0 and 1
if(SSI_BASE == SSI0_BASE){ SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); GPIOPinConfigure(GPIO_PA2_SSI0CLK); // The following PIN is for CS, any PIN may be used since we're Master GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, GPIO_PIN_3); GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_3, GPIO_PIN_3); // end of CS code GPIOPinConfigure(GPIO_PA4_SSI0RX); GPIOPinConfigure(GPIO_PA5_SSI0TX); GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_5|GPIO_PIN_4|GPIO_PIN_2); }else if(SSI_BASE == SSI1_BASE){ SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI1); SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD); GPIOPinConfigure(GPIO_PD0_SSI1CLK); // The following PIN is for CS, any pin may be used since we're Master GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_1); GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_1, GPIO_PIN_1); // end of CS code GPIOPinConfigure(GPIO_PD2_SSI1RX); GPIOPinConfigure(GPIO_PD3_SSI1TX); GPIOPinTypeSSI(GPIO_PORTD_BASE, GPIO_PIN_3|GPIO_PIN_2|GPIO_PIN_0); }