Hello
I have been followed many links but I do not have clear understanding on Bit-banging SPI communication.
I studied some tutorials and I believe below steps need to send data on SPI bus
1. We need to Initialize SPI Bus
2. We need to set the CS pin low to begin communication
3. We need to set the MOSI pin to a 1 or a 0,
4. We need to set the clock high so data is transmitted by the master and received by the slave
5. We Read the state of MISO to receive the first bit of data from slave
6. We Set CLK Low, so data can be sent on the next rising edge
7. We repeat this process
8. We Set the CS pin High to stop transmission.
I do not understand step 3 and step 4 Is there someone wo can help me to understand these steps
I have been followed many links but I do not have clear understanding on Bit-banging SPI communication.
Code:
MISO - Master In Slave Out
MOSI - Master out Slave In
CLK - Clock
CS - Chip select
1. We need to Initialize SPI Bus
2. We need to set the CS pin low to begin communication
3. We need to set the MOSI pin to a 1 or a 0,
4. We need to set the clock high so data is transmitted by the master and received by the slave
5. We Read the state of MISO to receive the first bit of data from slave
6. We Set CLK Low, so data can be sent on the next rising edge
7. We repeat this process
8. We Set the CS pin High to stop transmission.
I do not understand step 3 and step 4 Is there someone wo can help me to understand these steps
Last edited: