Skip to content

DigitalOsc guides

74HC165 Reads the Wrong Switches: Capture Parallel Load Before Clock

DigitalOsc editorial team · Updated 21 November 2026

A serial bit stream can faithfully shift the wrong snapshot. Check when the 74HC165 loads its parallel inputs before changing bit order in software.

Identify the register and capture controls

TI documents the SN74HC165 as a parallel-load shift register. Confirm its load, clock, inhibit, serial input and output functions for the exact package. A 74HC595 is an output shift register and its latch procedure is not interchangeable. Record the actual logic levels at the switch inputs, including pull-ups or pull-downs, rather than assuming a pressed switch always means a high bit.

Keep the parallel pattern fixed first

Choose a known static input pattern and verify its wiring in an appropriate safe low-voltage setup. Avoid toggling switches during the first capture. Start with an ordinary slow read loop so you can distinguish the parallel-load interval from the following shift clocks. A pattern such as alternating fixed high and low inputs makes mapping errors easier to notice, but confirm the part’s actual input order from its documentation.

Observe load and clock together

Put one suitable input on the parallel-load control and the other on clock. Trigger on the documented load transition and record the ensuing burst. If clocks occur before a valid load or the load remains active when shifting is expected, the output may not represent the intended snapshot. A valid-looking clock train alone does not prove that the input state was ever captured.

Move to serial output with the limitation stated

For a repeatable fixed pattern, compare clock and serial output in a second capture and relate it to the verified loading sequence. Two channels cannot prove all three control/data signals during a unique intermittent event; use more suitable acquisition if that evidence is required. Check output selection and bit order before changing the application. An electrically correct transaction still does not debounce switches or prove the software interpreted their intended meaning.

Choose a handheld for this question

Two simultaneous inputs help with the relationship described here; the FNIRSI 2C53P advertises two channels, 50 MHz and up to 250 MSa/s. Check the actual acquisition mode, capture length and probes. A single-channel OT3 cannot capture two nodes in one event.

DigitalOsc links to Payverza as the retailer. Confirm the exact probes, accessories, current price and delivery before purchase. This is a proposed low-voltage workflow, not an independent hardware test; a battery-powered case does not establish isolated inputs.

Sources and scope

Examples are illustrative, not measured results. Follow the exact device and probe documentation for pinout, voltage, reference and timing limits. Recheck specifications for the version you actually own.