Embedded_Geek
Full Member level 6
While reading flash do we have to send dummy bytes in order to bring the data to the MISO line, or sending the command is enough?
Thanks in advance,
Ajish Gopal R
Thanks in advance,
Ajish Gopal R
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yes as slaves pins are in tristate you have to send dummy bytes to it.. but they are not recognised by slaves...
**broken link removed**
**broken link removed**
its common for all devices..
Yes slaves cannot have or trigger clock and are dependent on master...
I know that the slave depends on the MASTER for the clock.
But why is that the dummy bytes are required only while reading from slave?
The device reads and writes data in edges of the clock, unless there is a clock there can be no data transfer in the SPI lines and the clock can only be provided by the master so what you do is send a dummy byte to provide the necessary clock and the data are transferred from the eeprom to the mcu during that clock edges, the data that you send to the slave during that dummy write are ignored, only the data send from the slave to the master are important in this phase.
Alex