Matrix keypads save pins in label printers, scene controls, and audio controllers. Individual keys may work while two diagonal keys produce two phantom coordinates. If the fault follows a specific geometry, verify whether scanning preserves each row–column pair before changing the reference or debounce. Clock cadence cannot recover coordinates removed by aggregation.
Two correct bitmaps can lose the pairing between rows and columns
One key identifies one row and column. A simplified scanner may first find all active rows and then all active columns. One press at row 1, column 2 is unique. Pressing row 1 column 1 and row 2 column 2 lights two rows and two columns. Forming all possible pairs gives four candidates, including two unpressed keys.
Pressing the other diagonal yields the same aggregate masks. Repeating this scan cannot restore the missing associations. The information is already lost before debounce. A priority rule cannot recover the actual pairing, though the product may reject ambiguity if permitted.
Per-row sampling preserves column information for each row, letting the diagonals become distinguishable. This does not guarantee arbitrary rollover. With no per-key isolation, three closures can create a conductive path that appears as the fourth corner in some scan topologies. Distinguish lost pairing in aggregation from electrical ghosting, and specify both limitations.
Estimate how much timing can change the result
Suppose an active 8 MHz reference directly runs a counter and one ideal scan uses 8,000 cycles. Ignoring scheduling, changes in clock, and uneven scanning, the period is 1 ms. At +30 ppm it is about 0.999970 ms, roughly 0.03 µs shorter. Both scans still lose diagonal identity if they aggregate the same two rows and two columns.
If per-row records exist and only the first read after switching a row is wrong, compare settling and sample position. Pull-ups, trace and input capacitance, pin transition order, and sample timing can all matter. A later valid reading does not establish oscillator failure. Extra idle time at the end of a scan may leave the switch-to-sample interval unchanged.
| Bench observation | Check first | Not yet established |
|---|---|---|
| Both diagonals produce the same aggregate masks | Whether aggregation loses the pairing | Oscillator failure or a clock solution |
| With per-row readings, three pressed corners produce a fourth | Isolation and conductive path | Arbitrary rollover from per-row scanning |
| Only first sample after a row change fails | Settling and actual sample point | A longer full scan necessarily fixes it |
| Raw keys are correct but the UI repeats | Release, auto-repeat, and event handling | A phantom matrix closure |
Prepare repeatable acceptance checks
Test actual key sets independently of the display. Use an owned isolated low-voltage unit without controls, locks, or actuators connected. Label a two-row, two-column block by coordinates. Test four singles, two keys in a row, two in a column, both diagonals, and four three-corner combinations. Record press order, reverse order, overlap, holds, and individual release. Verify which coordinates were not pressed.
Record raw, debounced, and reported states. Keep per-row bitmaps, debounced coordinates, and press and release events from the same scan and adjacent scans. Stable false raw keys are an input problem. A correctly detected held key may repeat because of an intentional event setting rather than a new closure.
Change one condition at a time. Compare the first sample with a later sample on the same row while keeping keys and reference fixed. For combination-specific issues, verify isolation or a supported ambiguity policy. For a new oscillator, keep matrix and firmware constant, verify the actual reference, full scan interval, and per-row settling, then repeat the combinations. Do not combine firmware and hardware changes into one verdict.
A manual press may not produce a verified simultaneous hold. Record missing overlap and do not pass that trial. Separate transition-only faults from persistent ghosting, and log the longest number of affected scans.
Specify the oscillator and keypad independently
If a design takes a 3.3 V, CMOS, 8 MHz active reference, SCTF's 2C-series SX2M8.000B10F20TNN is a candidate with those nominal values and a four-terminal surface-mount package. It identifies no original printer part and is not a substitute for a passive crystal. Confirm order code, land pattern, enable state, receiver threshold, initial tolerance, and stability conditions. The +30 ppm used above is a model assumption.
Require a repeatable key combination table. For single-key products, define whether a simultaneous press is rejected, held, or prioritized and how normal scanning returns. For two-key shortcuts, list supported and conflicting pairs. Match harness mapping and isolation as well as dimensions and pin count.
Frequently asked questions
Will going from 10 ms to 20 ms debounce remove extra keys? It may suppress transient entries or miss short presses. A stable false bitmap will simply take longer to accept. Inspect the hold interval first.
If single-key scans are twice as slow as expected, should we use a faster oscillator? Trace the actual reference, divider, and whether the reading covers one row or a full scan. Verify intended frequency, amplitude, and startup before changing any part.
