techie
Advanced Member level 3
SPI bus question
I am implementing the SPI bus in software. Can someone pls verify the psuedo code below. Somehow my code is not working.
I am implementing the SPI bus in software. Can someone pls verify the psuedo code below. Somehow my code is not working.
Code:
CS = 0
loop 8 times
{
output bit on SI
CLK = 1
read bit on SO
CLK = 0
}
CS = 1;