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.

[TMS320F28069]SPI Communication with 8bit Slave

Other Parts Discussed in Thread: TMS320F28069, ADS1298

Hello. My name is Kim, a user of TMS320F28069

I`am trying to communicate my MCU with ADS1298(ECG Analog Front-end).

However, I wonder it works that the SPI communication between them.

Because TMS320F2806x series use 16bit SPI Communication  but ADS1298 do not only  use SPI Communication but also It acts like a slave.

 

Isn`t it work?

And Anyone give me a clear way to solve this problem?

 

 

Kim

  • Kim,

    The F2806x SPI is 16-bit capable, but the SPICCR register allows you to configure the number of bits per character so you can configure SPI to work with 8-bit data.  The SPI interface also supports master and slave modes.  Please see the technical reference manual for more information: http://www.ti.com/lit/pdf/SPRUH18

    -Tommy

  • tlee, sorry to open an old post, but I can't find the answer. 

    I have the f28069 and I need to use it for an 8bit SPI master communication. 

    If I set the SPICCR for 8 bit communication, do I still have to left shift by 8 bits whatever I'm putting in the SPITXBUF and remove the first 8 bits of whatever I'm getting from the SPIRXBUF? 

    Sorry for asking but I can't test it (don't have an oscilloscope) or a fully working code, and there are no example and detailed information about this. 

    Thanks