Hello All,
I have several peripheral SPI slaves on the same bus - some are 16 bit, some 8 bit (one is 24-bit - but shifting the 16-bit data works) -
If I change format on the fly - is it necessary to clock out what could have been there - for instance - going from 16-bits to 8 - I am noticing some
stale data being read by the 8-bit driver - it would appear to be left over from the previous transaction.
For instance - can I do this:
spiREG3->DAT1 = outb2 | 0x06FE0000; // transmit register address // FMT2 USED - Format 2 is 16 bits
and that is followed (by the appropriate set up here)
spiREG3->DAT1 = 0x00 | 0x05FE0000; // clock out data - Format 1 is used which is 8 bits
I thought that would work - but maybe more needs to be done when changing format on the same SPI bus.
Thanks,
John W.