bitbang spi receive(software spi/64)
Posted: Mon May 27, 2013 8:37 am
it might be something that may be somewhat useful, this flowchart only works with SOFTWARE SPI/64 as its alot slower than hardware spi,
clock = b0
sdi = b1
chip select = b2 it can work with any bit type automaticly from 0-31 bits because when chip select line goes low is shifts the data in msb first to the left, when chip select line goes high it shifts back to the right one place and updates the byte pid, can send 1-31 bits, a data packet complete is determined when chip select goes high
here is a matrix software spi macro send example that works in 8 bit packets here is a bit banged send of 8 bytes both sends work, and are direct connections with 16f1938 chips,
b0-b0,b1-b1,b2-b2
here is a video of it working with software spi from flowchart above sending data to second receive chip http://youtu.be/uRjklYU5ruQ
clock = b0
sdi = b1
chip select = b2 it can work with any bit type automaticly from 0-31 bits because when chip select line goes low is shifts the data in msb first to the left, when chip select line goes high it shifts back to the right one place and updates the byte pid, can send 1-31 bits, a data packet complete is determined when chip select goes high
here is a matrix software spi macro send example that works in 8 bit packets here is a bit banged send of 8 bytes both sends work, and are direct connections with 16f1938 chips,
b0-b0,b1-b1,b2-b2
here is a video of it working with software spi from flowchart above sending data to second receive chip http://youtu.be/uRjklYU5ruQ