Page 1 of 1

bitbang spi receive(software spi/64)

Posted: Mon May 27, 2013 8:37 am
by brandonb
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
comm receive.fcf
(16.23 KiB) Downloaded 299 times
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
spi sending test for receive.fcf
(7 KiB) Downloaded 295 times
here is a bit banged send of 8 bytes
comm send.fcf
(16 KiB) Downloaded 293 times
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