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.

TMS570LS0432: mibspi configuration for tms570ls0432 launchpad

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN

Hi,

I am using mibspi peripheral. I want to set the SPCLK frequency as 5MHz and CS frequency as 250kHz. I am new to hercules, could you please help me with the settings I should be doing on Halcogen. I saw the demo videos that are on the site. But the baudrate that I set for data format doesn't match with what I see on oscilloscope. Thanks in advance

  • Hello,

    You can use HALCoGen to set SPI Clock frequency. This can be done from SPIx->SPIx Data Format Tab. In "Baudrate (KHz)" text field enter 5000 and this will set SPI Clock to 5MHz.

    CS is not a periodic signal. In master mode, each chip select signal is used to select a specific slave. In slave mode, the chip select signal is used to enable and disable the transfer. So, we can't speak about setting CS to be periodic. When SPI Master start a transfer (and if CS is used) then CS is activated first to select the slave. Then clock and transfer is started. When transfer ends then CS is deactivated.

  • Yes this worked for me. I am trying to use an external ADC that is 16 bit and needs 18 clock cylces for a spi transaction. What should my configurations for spi look like.

    Thanks,

    Aditi

  • Hello,

    Configuring SPI depends on the protocol used by Slave. Thе protocol is supposed to be described in the datasheet of the ADC.