This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4c1294NCPDT launchpad 使用SSIDataPut函数时候CLK接口没有相对的波形出现



将ssi0初始化后,使用SSIDataPut函数。示波器观看CLK接口没有相对应的波形输出。请问这种问题出现在哪呢?

代码如下


SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);

GPIOPinConfigure(GPIO_PA2_SSI0CLK);
GPIOPinConfigure(GPIO_PA4_SSI0XDAT0);
GPIOPinConfigure(GPIO_PA5_SSI0XDAT1);


GPIOPinTypeSSI(GPIO_PORTA_BASE, (GPIO_PIN_2 | GPIO_PIN_5 | GPIO_PIN_4));

ROM_GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE, GPIO_PIN_3);
GPIOPinWrite(GPIO_PORTA_BASE, GPIO_PIN_3, GPIO_PIN_3);

SSIConfigSetExpClk(SSI0_BASE, 120000000,
SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 8000000, 8);

SSIEnable(SSI0_BASE);

while(SSIBusy(SSI0_BASE));

SSIDataPut(SSI0_BASE,0xff);
SSIDataPut(SSI0_BASE,0xff);
SSIDataPut(SSI0_BASE,0xff);