Hi there,
For a given SPI device following two SPI opcodes/instructions, there is a requirement to deselect the device (with nCSx=1) for a delay of 100ns to complete the SPI transaction. Instead of wasting a transmit buffer to shift out a dummy byte with no chip-select selected (with all nCS=1), I would like to use the WDELAY field.
According to TRM spnu499c, the WDELAY field definition is:
Delay in between transmissions for data format x (x= 0,1,2,3).Idle time that will be applied at the end of the current transmission if the bit WDEL is set in the current buffer |
So let say I have the following sequence in my TX_BUFFER[]:
Buffer n+0: WDEL=0, CS_HOLD=1, BUF_LOCK=1, CS=111110b Buffer n+1: WDEL=1, CS_HOLD=0, BUF_LOCK=1, CS=111110b Buffer n+2: WDEL=0, CS_HOLD=1, BUF_LOCK=1, CS=111110b
Will the above sequence works to satisfy the 100ns requirement?
Thank you!