The SPI available on TMS320F28335 is used to communicate with a FRAM memory and it is configured to transmit words 8 bit.
This configuration is required to transmit a set of short command (8 bit).
When I write to / read from the FRAM the related message is composed as follows:
- 8 bit command (WRITE/READ)
- 24 bit address
- N * 8 bit data (send/received)
Since I read / write sequence of 16bit words, maybe useful switch the word length from 8 bit to 16 bit to reduce the overhead of the transmission.
Simply change the SPICCR.SPICHAR value from 0x7 to 0xF (and then back to 0x7 at operation completion)?
I performed this update (without force the SPI in reset state) and all seams work properly, but I'm not sure if I could have some side effect.
Thanks for your advice