B4R Tutorial Shift Registers (Serial In Parallel Out - Parallel In Serial Out)

Similar threads

B4A Code Snippet [B4X] Bytes To File
B4R Code Snippet Base64 decoding
B4R Code Snippet 74HC595 Shift Register for multiple output
B4R Tutorial HC 05 Classic Bluetooth
B4R Tutorial [tool] External Serial Connector

hatzisn

Well-Known Member
Licensed User
This is a very useful tutorial by the guy in dronebotworkshop which opened new horizons for me since I didn't know there were two kinds of shift registers (actually four). Enjoy:

 
Last edited:

tigrot

Well-Known Member
Licensed User
This is a very useful tutorial by the guy in dronebotworkshop which opened new horizons for me since I didn't know there were two kinds of shift registers (actually four). Enjoy:

Of course you can use this technology to implement simple port expanders. Personally I don't use them any more and I prefer MCP23017/MCP23S17 solution, because it is almost infinite regarding expansion. And no messy parallel output during register load.
 

hatzisn

Well-Known Member
Licensed User
Of course you can use this technology to implement simple port expanders. Personally I don't use them any more and I prefer MCP23017/MCP23S17 solution, because it is almost infinite regarding expansion. And no messy parallel output during register load.
I checked it on YouTube and components pinouts app. They are impressive. I am not familiar at all with the SPI protocol but I have some basic knowledge of the I2C. Given the 127 separate addresses a simple multiplication gives you 2032 ports. I didn't understand though if through the resisters you have access to all 127 addresses or only in the ones described in the datasheet. I suppose it is the second but after a long day my head is starting misbehaving. Nevertheless a big thank you for the knowledge you gave us all. According to your knowledge is SPI or I2C protocol faster?
 
Last edited:
Top