﻿ How to Build a Register Circuit with a 74HC165 Chip

# How to Build a Register Circuit with a 74HC165 Chip In this project, we will build a register circuit using a 74HC165 chip.

The 74HC165 register is a parallel-load, serial-out register.

What this means is this. The 74H165 is an 8-bit register. Parallel-loading means that all the 8 bits can be loaded all together at one time. This is contrast to serial loading, in which only one bit can be shifted in at a time. So parallel loading allows us to input all 8 bits together during one clock cycle, while serial loading only allows 1 bit to be shifted in during a clock cycle.

So the 74HC165 allows parallel loading on the input side and on the output side shifts bits out serially, meaning one at a time.

So, in recap, it shifts in all data at one time and shifts the data out one a time.

Parallel loading, in ways, can be viewed as simpler, because you can shift all the data in at one time.

If you connect the serial data output of a 74HC165 to a serial load, parallel output chip such as a 74HC595, you can have a parallel-in, parallel-out register. Thus, you can shift data in parallel and see the result parallel pretty much instaneously if you have a fast clock signal to the serial-in, parallel-out chip.

However, we won't build this type of circuit here.

We just simply show how a parallel-load, serial-out register works, which is what the 74HC165 chip is.

It is a serial shift register, so each bit is shifted in 1 bit at a time until all the bits are shifted in. This is in contrast to a parallel shift register, in which all 8 bits are shifted in at the same time.

The 74HC165 has 2 output pins. These are QH and QH. QH gives us the outputs from H to A. It's not in the order from A to H, as you might think, but it's from H to A. QH is the opposite logic state from each output of QH. So whatever QH is, QH is the opposite. Therefore, it forms a toggle circuit.

Whenever the LED at QH is on, the LED at QH is off. And whenever the LED at QH is off, the LED at QH is on.

Even though this is not the real purpose of the circuit, it simply shows to demonstrates how the register works.

The real use of it, though, would be parallel-to-serial conversion.

### Components Needed

• 74HC165 CMOS Register Chip
• 9 Pushbuttons
• 9 1KΩ resistors
• 2 470Ω resistors
• Green LED
• Red LED
• Clock source

The 74HC165 chip is a parallel-load, serial out register chip. 8 bits can be input all at once to this register.

The 74HC165 chip can be obtained very inexpensively (under \$0.50) and it's available from a number of different online retailers. One place to find is at Tayda Electronics at the following link: 74HC165 CMOS Register IC.

The datasheet for the 74HC165 is shown at the following link: 74HC165 Register Datasheet.

The 74HC165 is a 16-pin chip.

The pinout for the 74HC165 is shown below. The 74HC165 works from voltage anywhere from 2V-6V. So we feed 5V into VCC, pin 16 and we connect GND to power ground.

The 8 data input pins are A-H. These are pins 11, 12, 13, 14, 6, 5, 4, and 3.

Pin 1 is the SH/LD pin. This is the shift/load pin. This pin must be HIGH in order for input to be shifted into register. If this pin is LOW, data cannot be shifted in.

Pin 2 is the Clock (CLK) pin. A clock signal must be input into this pin in order for the register to work. Data is shifted in on the rising edge of a clock signal.

Pin 12 is the Clock Inhibit pin. We simply tie this pin LOW.

Pins 7 and 9 are the output pins. Pin 9 is QH. Pin 7 is QH These are the serial outputs that arise from the parallel data that we input. The serial output that arises from QH is in the order of what's input in from H to A, in that order. What we put into inputs H to A gets output serially at QH. QH is the exact opposite in logic state of the inputs H to A. So if B is HIGH at QH, it will be LOW at QH. Every output will alwyas be the opposite logic state.

### How the Circuit Works

Being that we have a clock signal, we have the CLK INH pin LOW, and we have SER LOW, the only thing else we have to do is input the data we want to on the 8 data inputs and press down on the SH/LD pin. This clocks in data to the 74HC165 register.

The data then comes out at the QH pin, pin 9, in the order of H to A.

QH will always be in the opposite logic state for each output from H to A.

What you will see in this circuit is that whenever the LED at QH is on, the LED at QH is off. And vice versa. Whenever the LED at QH is off, the LED at QH is on.

So it forms a toggle circuit, so to speak, as long as QH isn't all on or off.

Again, this is not the purpose of the register. The real function would be either for parallel-serial conversion of data or to form a parallel-in, parallel out circuit. But this circuit goes to show how a parallel-load, serial-out register works.

And this is how a 74HC165 register operates.

Related Resources