Hey guys,I was just wondering at how long it takes for shiftin to complete one cycle (as in one cycle being the command reading in one byte). I have 20 inputs, therefore needing 3 4021 chips (8*3 > 20).Realistically, I could do with the shiftin being <10ms so that I can call a shiftin every 10ms.
Also, while shiftin is happening, is the arduino able to do other things?
digitalWrite(ssPin, LOW); // if you need CS with the part you are using. can also direct port manipulation for more speedincomingByte = SPI.transfer(0); // where 0 is data that will get clocked out on MOSI pin while data is clocked in on MISO pin at the same time.digitalWrite(ssPin, HIGH);
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16