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.

SPI TMS320F240 bit stream length



Hallo,

Im using a the SPI  of the TMS320F240 as slave. I use it as slave and i would like to read the bit stream that a external Master sends to the TMS320F240

As a Test Pattern, the external Master sends 0x123456789ABCDEF. This is a bit stream of 60Bits (15 Bytes7.5 Bytes), at 1.14MBitps, After each bit stream there is a small Pause of ca 9microseconds.

The bit stream, looks like this (with zoom for each 12 Bites):

123

456

789

ABC

DEF

Should it be a problem for the SPI TMS320F240  to read this stream, as it is an 8 Bit Peripheral? Is it possible to receive this string? and then with software distribute in 8 Bit Variables?

Thank you for your Help!

  • Maria,

    There aren't many people who are still familiar with this device as it is very old and is being discontinued.  

    I am very familiar with our SPI which followed this one.  Based on that, I would not expect there to be any problems.  My thought is you would just have to read the data after each 8 bits to prevent it from being lost.  However, I do not have any experience with this peripheral.  I would recommend giving it a try as this will probably be faster than waiting on an answer from us.

    Kris

  • Thank you Kris,

    Yes, I've been traying for a while.  The TMS320F240 is part of a development board, which didnt give to much information about it. As the only acces is through funtions developed specifically for this development board and a I got recurrent errors, since im beginner, i just wanted to understand the meaning of "8 Bit Peripheral" and discard the possibility that the error were due to the lenght of the transmision (60 bits much more than 8 Bits). For  a moment i thought there should be a pause every 8 Bits, but as i read your post. I see the master the transmition can be this long (60 bits without pause) and the information will be received as long as it is read every 8 Bits. so the Pause is not necessary and i can focus to search an other causes of the errors.

    Thank you

    Maria

  • Maria,

    If you haven't looked at this already, I would recommend checking out the documentation we have available for the F240 SPI:

    http://www.ti.com/lit/ug/spru161d/spru161d.pdf

    Good luck!

    Kris