Hi,
How does the uController know when write the first bit in the FIFO? Does the first bit correspond to the value of MISO when edge of SSIOClk goes from 0 to 1?
In this exemple, FIFO is it 0111 or 0110?
Thank you for taking time.
Steven
Assuming you are talking about SSI communication, it depends on the mode of the transfer. Documentation about the mode selection can be found in the data sheet for the part you are working with.
I have tried to find but I havn't. I read some documentation about SSI transfer data (FIFO to SSIO register) . Unfortunatly, there wasn't any document about how was writing data from MISO in FIFO memory.
Would you mind to guide me to the right document?
Thank you
This is all documented in the Synchronous Serial Interface (SSI) section of the lm3s9b96 datasheet. What may be confusing you is that MISO and MOSI are called SSITx and SSIRx in the datasheet. Each mode shows exactly what edge data is sampled on, so that you can chose the format that you need.
Don't forget, depending on whether your device is master or slave, which pins represent MISO and MOSI are swapped.
If you are the master then MOSI is SSITx, and MISO is SSIRx. If you are slave, the MOSI is SSIRx, and MISO is SSITx.
Thank you every one. In fact, I was confusing wise MISO and SSIRX. Your explain helped me a lot.
Have a nice week.