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.

6455的mcbsp如何配置为SPI?



请问如何将mcbsp配置为SPI,寄存器的值设定为如下:

void SPI_Init(void)
{
    MCBSP_SPCR = 0x00000000;

    WAIT_FOR_2_CLK;
    
    /* Config MCBSP */
    MCBSP_PCR = 0x00000203;
    MCBSP_RCR = 0x000100A0;
    MCBSP_XCR = 0x000100A0;
    MCBSP_SRGR = 0x201E0050;

    MCBSP_SPCR = 0x3001081;
    WAIT_FOR_2_CLK;
}

请帮忙解答一下,谢谢!