SPI, fix level on MOSI when using MISO

Jorgen
Posts: 51
Joined: Fri Dec 09, 2022 11:39 am

SPI, fix level on MOSI when using MISO

Postby Jorgen » 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

MicroController
Posts: 1733
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: SPI, fix level on MOSI when using MISO

Postby MicroController » Thu Sep 12, 2024 9:08 pm

I think you shouldn't see any movement on MOSI during the read phase of a half-duplex transaction.

Who is online

Users browsing this forum: ok-home and 84 guests