We have 2 devices on the SSP0 but, one needs the usual 8 bit (byte) data transfers, but the other needs a 12 bit transfer (for which we configure SSP0 to send 16 bits). Since we talk to one device followed by talking to the other, we are constantly re-configuring. The device that used the 16 bits seems to be dropping data sometimes. When I inserted a delay before reconfigure to 16 bits, the data seems to have cleaned up. But the delay was 3 instructions. I wanted to find out if this is an issue and the proper way to address it is a delay.
Thanks for any advice.
Hello Piero Generale,
Could you please share your code on how are making the re-configuration of the peripheral? Also, may I ask why are you sending 16 bits if the device needs 12 bit transfer? As you can see in the following table, you can select a data size of 12-bit.
Best Regard,
Victor.