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.

C55x5 CSL question(s)

 

Hello!

I'm using the SPI module of the CSL for CC5515 for the first time.

I had quite some problems to get it running and still have a few questions:

  • Why does SPI_INIT set PPMODE of EBSR to mode 5? I need PPMODE 1. Why does the CSL reset my setting to 5? It should at least give me an option to select another one, or read the current setting and modify it only, when it is not valid.
  • How should I use the CSL when I want to adress 2 SPI slaces (at locations CS0 and CS1)? I see no straightforward way to do this, without accessing registers from my application or calling the spi_config every time before an SPI transfer.
  • Why is there no method implemented for bidirectional spi transfers? Only pure write and read are available.

Are there peripheral source code examples  for CC5505/5515 which don't make use of the CSL? I found only a few, like for example i2c, but none for SPI, DMA, ...

Is there a *complete* register include file available from TI?

 

Best regards and thanks in advance,

Kai

  • The EBSR is a way to program the peripheral signals to route to I/O pins. This is a flexible feature for applications. The CSL is an example of how to use the feature. You can adapt and modify the CSL example to meet your application. All register include files are in CSL's inc folder with file name starts with cslr_* by individual peripherals.

    Regards.

  •  

    You mean the CSL is not ment to be used as a universal library to program the peripherals of the CC55xx?

    The things I mentioned are not a limitation of the spi example included in the examples directory of the CSL, but from the CSL itself.

     

    Aren't there simpler and easier to read "source code examples" available, especially for SPI?

     

  • It is a good idea to add the programmable aspect into future CSL. Note taken.

    Regards.

  •  

    Aren't there simpler and easier to read "source code examples" available?

    I'd like to find something with the coding style of  most things coming from spectrum digital: By programming the registers directly.

     

    The CSL has many strange delay functions in it's code. Is there a technical reason for that?
    Example for such a strange delay loop:        for(delay = 0; delay < 100; delay++);

    This slows down SPI transfers a lot.

     

    Best regards,

    Kai