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.

TMS320C6748: As a slave receiving data stored in SPI_FLASH

Part Number: TMS320C6748

I have just started learning TMS320C6748 recently.I want to modify the SPI_FLASH program in STARTWARE to a slave program to store the received data in SPI_FLASH. When modifying the program, as I was just a beginner, I compared it with the chip manual and only changed the MASTER in the SPI mode settings to SLAVE. In addition, I deleted the settings related to CLK in the program. But currently, my program cannot receive data. I need your help to understand what modifications I should make to the program or which modules need to be set up.

  • 对应的寄存器位的配置按照下面TRM上的表格。
    28.2.6 Slave Mode Settings
    https://www.ti.com/lit/ug/spruh79c/spruh79c.pdf

    配置步骤按照28.2.19 Initialization章节。

  • 由于我只需要实现单向通信,我在28.2.7中找到了这句话:In slave mode with 3-pin option, CPU writes to SPIDAT0[15:0] or SPIDAT1[15:0] makes the slave ready to transmit. CPU writes to the configuration bits in SPIDAT1 (not writing to SPIDAT1[15:0]) do not make the slave ready to transmit. 我想知道SPIDAT1[15:0]是什么意思,以及TXBUF是一个寄存器么?我在CCS5.5中怎么查看他的状态?

  • SPIDAT1是一个32bit寄存器,SPIDAT1[15:0]表示TXDATA,具体可以查看TRM文档里的Figure 28-30. SPI Data Register 1 (SPIDAT1)。在ccs中输入寄存器地址就可以查看。SPI base address是0x01C4 1000 (spi0)和0x01F0 E000(spi1),寄存器offset地址在TRM文档Table 28-8. SPI Registers。