hello team,
im working with TMS570LS0432 ..using the spi module..can you please let me know what is the maximum number of bytes that the spi buffer can hold.
thanks in advance.
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.
hello team,
im working with TMS570LS0432 ..using the spi module..can you please let me know what is the maximum number of bytes that the spi buffer can hold.
thanks in advance.
Hi Pavithra,
There are 3 separate SPI instances on the LS0432 MCU. One of these is a multi-buffered SPI with 128 buffers, which means that it can hold up to 128 16-bit words (or 256 bytes).
The other 2 SPI instances are "standard" SPI modules. These implement a double-buffering scheme for both transmit and receive functions. This scheme is described in the TRM (spnu517a) starting from page 847 in section 21.2.2.
For the receive function, you have two buffers called SPIBUF and RXBUF, plus the actual receive shift register. Only SPIBUF is memory-mapped and a first-in-first-out scheme is implemented using these buffers, as explained in the TRM.
Similarly, the transmit function buffering is implemented using the SPIDAT0/DAT1, TXBUF and the actual transmit shift register.
Regards, Sunil