bitbang spi receive(software spi/64)

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
brandonb
Posts: 438
Joined: Mon Aug 29, 2011 12:26 am
Location: arizona
Has thanked: 175 times
Been thanked: 173 times

bitbang spi receive(software spi/64)

Post 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 298 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 294 times
here is a bit banged send of 8 bytes
comm send.fcf
(16 KiB) Downloaded 292 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

Post Reply