SPI, fix level on MOSI when using MISO
Posted: Thu Sep 12, 2024 9:39 am
Is it possible to fix the level on MOSI when reading lots of data using MISO?
Ii is possible to use FULL DUPLEX and transmit on MOSI an array with all elements set to 0 or 1. The array has to have a size at least being the same as the array used for saving the data read on MISO. This is a waste of memory.
It would be better to for example set one of two flags fixing the MOSI level to 0 or 1.
I have looked for such an option, but I have not found it.
Does it exist or is there a trick to that effect?
Regards,
Jorgen
Ii is possible to use FULL DUPLEX and transmit on MOSI an array with all elements set to 0 or 1. The array has to have a size at least being the same as the array used for saving the data read on MISO. This is a waste of memory.
It would be better to for example set one of two flags fixing the MOSI level to 0 or 1.
I have looked for such an option, but I have not found it.
Does it exist or is there a trick to that effect?
Regards,
Jorgen