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.

tms570 spi

Other Parts Discussed in Thread: HALCOGEN, TMS570LS0714

我用的tms570ls0714,我需要使用spi4,该如何配置?我使用halcogen使能spi4模块后,向spiREG4->DAT1中写数据,通过示波器测量spi4clk引脚,没有波形,一直是低电平。

  • 您可以对照一下例程 C:\ti\Hercules\HALCoGen\v04.07.00\examples\TMS570LS09x_07x

    example_spi_Master_Slave.c 是基于SPI1和SPI2的
  • tms570ls0714没有spi2.我测量spi1有sclk信号。同样的配置,spi4没有sclk信号输出。
  • 请您看一下

    e2e.ti.com/.../374653


    SPI4 signals are available as default functions only on the 337BGA package. No multiplexing configuration is necessary to use these dedicated terminals as SPI4 signals.

    On the 144QFP package, SPI4 signals are only available as alternate functions on assigned terminals. This requires multiplexing control registers' configuration. Configuration is also required for functional inputs, as this controls aspects of the I/O buffer such as pull enable/disable and pull direction.

    Consider the N2HET1[5] / SPI4SOMI / N2HET2[12] on pin 31. The function is selected using PINMMR5[16, 17, 18]. By default PINMMR5[16] is set causign N2HET1[5] to be the function selected. This means that all aspects about the I/O buffer on pin 31 are controlled by N2HET1. For example, N2HET1 terminals are pulled down by default, by virtue of the reset value of the HETPSL register.

    For a SPISOMI function, you typically require a pull-up on this input function. So it is better to choose the SPI4SOMI function on this pin 31 to get the pulls (and other I/O aspects) controlled by SPI4 registers.
  • 现在sclk,cs,simo信号都有了,但是somi信号一直为高电平,这是为什么?谢谢!