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.

24 bit SPI on 3137

Other Parts Discussed in Thread: HALCOGEN

Hi,

How can I use HALCoGen to let me do a 24 bit SPI write?

Looking at HALCoGen and the SPI data formats section -> by having a 16 bit character length for Data format 0 and an 8 bit character length for Data format reg 1 it might give me a 24 bit wite.
 
It looks like I should be able to use the CSHOLD bit in the SPI transmit data register to keep the CS low for the next transaction. Ref manual page 1290 - http://www.ti.com/lit/ug/spnu499a/spnu499a.pdf

Any help appreciated

Cheers
Calum
  • Hi Calum,

    There are 4 data format registers (SPIFMT[3:0]), but you can use one of them selecting in DFSEL[1:0]. You cannot combine SPIFMT[1] and SPIFMT[1] to form 24bit data length. The maximum data length is 16bits.

    Regards,

    QJ