Borg Shift Register PCB V1.2

This shift register PCB can be assembled in two ways, either with a 74165 to get 8 inputs or with a 74595 to get 8 outputs. It can be connected to an SPI bus using additional lines for loading and storing the data. Multiple boards can be cascaded. The limit is only the driving capability of the clock, load and store output.

 

Schema, production files in the format needed for Seeed Studio.

Usage

The boards can be connected to a chain, input and output boards can be mixed. Connect the controller to P1 of the first board. Then Connect P2 to P1 of the next board using a 1:1 cable, and so on. On the last board set the jumper J1 to feed back the data from the last PCB to the controller. The inputs/outputs are on P3 and P4.

All data is always shifted through all registers no matter if they are inputs or outputs. So if the chain consists of an input shift register followed by an output shift register alwyas 16 bits have to be shifted through. The first bit sent ends up in output 8, the 8th bit in output 1, the following 8 bit will be stored in the input register and have no effect. The first 8 bit read from the register come from the output register and can be ignored. The next 8 bit contain the inputs, input 8 first and input 1 last.

Initializing

  1. Configure /MR, SHCP, DOUT, /PL and STCP as output, DIN as input.
  2. Set /MR and STCP low, set SHCP and /PL to high.
  3. Set /MR high.
  4. Set STCP high.

Shifting

  1. Set /PL low, then high again to load the inputs.
  2. Set DOUT to the value of the next bit to be sent.
  3. Set SHCP low.
  4. Read DIN.
  5. Set SHCP high again to shift the registers.
  6. Repeat from step 2 until all bits have been shifted.
  7. Set STCP low, then high again to store the outputs.

Using SPI

To use the shift register PCB with SPI make the following connections:

ControllerShift Register PCB
GNDGND
VCCVCC
GPIO 1/MR
SCKSHCP
MOSIDIN
MISODOUT
GPIO 2/PL
GPIO 3STCP
-NC1
-NC2

Connectors

P1: Control Input

1 GNDPower ground.
2 VCCPower supply. HC: 2.0V - 5.5V. HCT: 4.5V - 5.5V.
3 /MRMaster reset of 74595, low active.
4 SHCPShift the register on the rising edge.
5 DINSerial data input to the shift register.
6 DOUTSerial data out.
7 /PLLoad inputs into shift register, low active.
8 STCPStore shift register in output registers on the rising edge.
9 NC1Not connected, just fed through to P2 and P4.
10NC2Not connected, just fed through to P2 and P4.

P2: Control Output

1 GNDPower ground.
2 VCCPower supply output.
3 /MRFed through from P1.
4 SHCPFed through from P1.
5 DOUTSerial data out from the shift register.
6 DINFed through to DOUT on P1.
7 /PLFed through from P1.
8 STCPFed through from P1.
9 NC1Fed through from P1.
10NC2Fed through from P1.

P3: Input/Output

1 GNDPower ground.
2 VCCPower supply output.
3 1Input/output 1.
4 2Input/output 2.
5 3Input/output 3.
6 4Input/output 4.
7 5Input/output 5.
8 6Input/output 6.
9 7Input/output 7.
108Input/output 8.

P4: Power

Some extra power pins and the "not connected" pins for free use.

1 GNDPower ground.
2 GNDPower ground.
3 VCCPower supply output.
4 VCCPower supply output.
5 NC1Not connected 1.
6 NC1Not connected 1.
7 NC2Not connected 2.
8 NC2Not connected 2.

J1: Data Feedback

Jumper J1 connects DOUT on P2 with DIN on P2. It has to be set on the last board in the chain to feed back the serial data to the controller. On all other boards it must not be set. In Position 1-2 it feeds back the output voltage of Q7 directly. In Position 2-3 it feeds back the output voltage of Q7 reduced by the level translator D1/D2/R1.

Assembly

D1, D2, and R1 are optional, they are only needed if a level translator for the DOUT feedback pin is needed, and only on the last PCB in the chain.

Bill of Materials for Outputs

Ref.CountDescription
-1Borg Shift register PCB
U1174HC595
U2, U30not used
P1, P2, P3310 pin IDC connectors.
P4110 pin screw terminal, 5mm spacing.
J11Jumper
C11100nF block capacitor.
D113.3V Z-diode (optional)
D21BAT43 or 1N4148 (optional)
R111k resistor (optional)

Bill of Materials for Inputs

Ref.CountDescription
-1Borg Shift register PCB
U10not used
U2174HC165
U3110k resistor network, 8 resistors with common pin.
P1, P2, P3310 pin IDC connectors.
P4110 pin screw terminal, 5mm spacing.
J11Jumper
C11100nF block capacitor.
D113.3V Z-diode (optional)
D21BAT43 or 1N4148 (optional)
R111k resistor (optional)

Note: Standard configuration of U3 is as pull up resistors. It can be mounted as pull down, then the common pin goes into the GND pad next to U3.

Revisions