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.

请教CC2538 SPI的问题

Other Parts Discussed in Thread: CC2538, Z-STACK

Hi All

        我在做CC2538  SPI实验时, 发现一些问题

        1)  数据手册第425页, IOC_CLK_SSI_SSI0  和  IOC_CLK_SSIIN_SSI0 这两个寄存器有什么区别, 文章中也没有看到详细介绍.

        2)  如果配置从机 就需要把MOSI CLK FSS配置成输入, 我找到  IOC_CLK_SSI_SSI0 和IOC_SSIFSSIN_SSI0可以把 CLK和FSS配置成输入,但是找不到能配置MOSI为输入的寄存器. 同样我也找不到能把MISO配置成输出的寄存器.

        3)我往SSIDR寄存器中写数据,数据都进入FIFO中,但是操作什么可以使得FIFO中的数据发送出来呢?

        4)另外IOC_Pxx_SEL 寄存器 配置的值SSI0 TX_SER OUT是什么意思?

希望有工程师能帮忙解答,谢谢

  • #define IOC_CLK_SSI_SSI0 0x400D410C // Selects one of the 32 pins on
    // the four 8-pin I/O-ports (port
    // A, port B, port C, and port D)
    // to be the SSI0 CLK.

    #define IOC_CLK_SSIIN_SSI0 0x400D4118 // Selects one of the 32 pins on
    // the four 8-pin I/O-ports (port
    // A, port B, port C, and port D)
    // to be the SSI0 CLK_SSIN.

    你可以参考Z-Stack Home 1.2.2a关于CC2538 SPI的实现。