▒▒▒ ACCESS DENIED ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒

> TERMINAL SIZE ERROR
> INSUFFICIENT COLUMN WIDTH
>
> Are you seriously trying to view
> this site on a phone? In 2026?
>
> This site was built for 80 columns.
> Your device has the screen real
> estate of a postage stamp.
>
> Go find a real computer.
> Preferably one that weighs at
> least 5kg and has a CRT.
>
> NO CARRIER

Screen Replacement

2026-02-21


Overview

The original 10.4” TFT display (Sharp LQ10D016) in the Compaq Portable 486c is a common failure point. Electrolyte leakage from aging capacitors corrodes the delicate ribbon cables connecting the panel’s driver ICs, eventually destroying the display. No OEM replacement exists, and Sharp will not provide the original datasheet. This document covers how to replace the original panel with a modern 10.4” 640×480 TFT.

Original Display — Sharp LQ10D016

No official datasheet exists for the LQ10D016. The pinout was reverse-engineered by Beckenrandschwimmer on DOSReloaded, who painstakingly probed the video card output with an oscilloscope and various test patterns to map out each signal. This project would not have been possible without that work. The closest available datasheet is for the Sharp LQ10D011 — it shares the same 3-bit-per-channel color architecture, the same horizontal display start at clock 144, and identical timing characteristics. The LQ10D011 uses a 22-pin interface (CN1) while the Compaq’s LQ10D016 uses a custom 30-pin ribbon cable, but the signal types and timing are the same. Between the LQ10D011 datasheet and Beckenrandschwimmer’s oscilloscope work, we have a complete picture of the video interface. See LQ10D011 Datasheet (PDF).

Key characteristics of the original display:

ParameterValue
ModelSharp LQ10D016
Size10.4” diagonal
Resolution640×480
Color depth3-bit per channel (9-bit total, 512 colors)
BacklightHeated-cathode fluorescent tubes (HCFT)
Sync methodH-Sync + V-Sync (no Data Enable)
H-Sync display startClock 144
Video modes480 lines (60 Hz), 400 lines (70 Hz), 350 lines (70 Hz)
Pixel clock25.175 MHz

My Replacement — Sharp LQ104V1DG51

After an exhaustive search and lots of trial and error, I settled on a Sharp LQ104V1DG51 — a modern 10.4” 640×480 panel. See LQ104V1DG51 Datasheet (PDF). The original goal was to find a panel with a fixed horizontal display start at clock 144 - matching the Compaq’s video card timing - whether or not it had a Data Enable signal. That would have avoided building a custom delay circuit entirely. But no such panel existed, or if it did, it didn’t support the 400-line and 350-line DOS video modes.

The LQ104V1DG51 was the best compromise. It natively supports 480-line, 400-line, and 350-line modes - the display mode is selected by the polarity combination of the H-Sync and V-Sync signals, which is exactly how the Compaq’s video card signals the mode. This means all three DOS video modes work without any additional circuitry. The trade-off is needing the BLANK-to-DE delay circuit to handle the horizontal alignment.

ModeH-SyncV-Sync
480 linesNegativeNegative
400 linesNegativePositive
350 linesPositiveNegative

Beckenrandschwimmer successfully used a Sharp LQ10D421, and a third person used an LQ104V1DG11. The approach is the same for all of these.

Key Differences from the Original

Original (LQ10D016)Replacement (LQ104V1DG51)
ConnectorProprietary 30-pin (undocumented)Standard 31-pin TTL
Color depth3-bit/channel (512 colors)6-bit/channel (262,144 colors)
BacklightHCFT (heated cathode), 12V supplyCCFL (cold cathode), 5V supply
Data EnableNot requiredRequired (ENAB pin 27)
H-Sync display startClock 144Clock 104

Challenges

There are several issues to solve when swapping the display:

  1. Proprietary 30-pin connector — The Compaq uses a proprietary 30-pin ribbon cable to connect the video card to the display. There is no documentation for this connector — the pinout had to be reverse-engineered. The replacement display uses a standard 31-pin interface, so an adapter cable is needed to bridge the two.
  2. 40-pixel horizontal shift — The new display starts drawing 40 clock cycles earlier than the original, shifting the image left.
  3. No Data Enable signal — The Compaq’s video card doesn’t output a DE signal, but the new display requires one.
  4. Color depth mismatch — The video card outputs 3 bits per color; the new display expects 6-8 bits.
  5. Backlight incompatibility — Completely different inverter requirements.
  6. 70 Hz DOS mode — New displays may not handle the 400-line/70 Hz and 350-line/70 Hz modes used in DOS. The image will wrap/duplicate at the bottom (the display I found supports it).

Pin Mapping

The full pin-by-pin mapping between the old 30-pin display connector and the new 31-pin connector is documented in Compaq Display Pinout Mapping (PDF).

Key wiring notes:

Adapter Cable

The replacement display has a standard 31-pin TTL interface, but the Compaq’s video card outputs through its proprietary undocumented 30-pin ribbon cable — there’s no way to plug one into the other directly. Rather than hand-soldering 30 individual wires, I used a 40-pin to 31-pin TTL LVDS cable with a breakout board (eBay item 173579595077). I could have custom made one for exactly 30 pins we need, but this worked and is off the shelf. The 31-pin end plugs directly into the new display, and the breakout board on the other end has header pins that can be soldered to the Compaq’s original 30-pin ribbon cable connector. This bridges the proprietary Compaq interface to the standard display connector cleanly and reliably.

Adapter board

Full 40-pin connector pinout →

Data Enable / Horizontal Alignment Circuit

The new display requires a Data Enable (DE) signal and starts drawing at clock 104 instead of 144, causing a 40-pixel horizontal offset. The solution (originally devised by Beckenrandschwimmer on DOSReloaded) uses the BLANK signal from the graphics card’s RAMDAC as a delayed Data Enable.

The Problem

The Compaq’s Cirrus Logic video controller outputs standard VGA sync signals (H-Sync, V-Sync) and a BLANK signal from the RAMDAC. The video card uses a Brooktree Bt47x series RAMDAC (Bt471/476/478 family) — the BLANK* output is at pin 7 on the 44-pin PLCC package. This is a TTL-compatible signal that goes low during the blanking interval (see Tables 4-6 in the datasheet). See BT471 RAMDAC Datasheet (PDF).

The original display used H-Sync and V-Sync directly to know when to start drawing pixels, with a fixed horizontal display start at clock cycle 144 after H-Sync.

Modern replacement displays don’t use H-Sync for pixel positioning - they require a Data Enable (DE) signal that goes high during the active display period. The new display also expects pixel data to begin at clock cycle 104. Since the Compaq’s video card sends pixel data starting at clock 144, we need to delay the DE signal by exactly 40 clock cycles (approximately 1.58 µs at 25.175 MHz) to align the image.

DOS boot showing the horizontal shift caused by the H-Sync mismatch

RC Delay Approach

The circuit uses a simple RC (resistor-capacitor) delay network sandwiched between two inverter stages. The BLANK* signal from the RAMDAC is active-low during the blanking interval — when BLANK* is high, the display is in the active region (see Tables 4-6 in the Bt471 datasheet). It gets inverted, delayed through the RC network, then inverted again to produce a properly timed DE output.

RC delay schematic

The delay is determined by the RC time constant: τ = R × C. With a 10 kΩ trimmer pot and a 22 pF capacitor, the adjustable range covers the ~1.58 µs delay needed. Turning the trimmer shifts the image left or right on the display, pixel by pixel.

74AS02 NOR Gate Implementation

The SN74AS02N is a quad 2-input NOR gate IC. A NOR gate with both inputs tied together acts as an inverter (any high input → low output). We use two of the four available gates as the two inverter stages in the delay circuit. The other two gates are unused (inputs tied to GND per standard practice).

74AS02 wiring diagram — top/bottom pin views and logic diagram

The diagram above shows the physical wiring on the video card. The 74AS02 is soldered dead-bug style (upside down) directly onto the video card PCB. Key connections:

The “Advanced Schottky” (AS) variant is chosen for its fast propagation delay (~1.5 ns), which keeps the edges of the DE signal sharp at 25 MHz pixel clock speeds. Standard 74LS or 74HC variants would add too much propagation delay and edge degradation.

Components

PartValueNotes
ICSN74AS02NQuad 2-input NOR gate, two gates used as inverters
C122 pFTiming capacitor (150 pF also works but gives coarser adjustment)
R1Bourns 3006P-1-222LF (2.2 kΩ)Precision multi-turn trimmer pot — fine-tunes the delay to align the image horizontally (Mouser)
C_bypass220 nF ceramicDecoupling cap directly across IC VCC/GND pins

Calibration

  1. Boot the machine to a known pattern (a DOS text prompt works fine — the left edge of the C:\> cursor is a clean vertical reference)
  2. Adjust the trimmer slowly until the image is centered in the display with no black bar on either side
  3. The delay is approximately 1.58 µs for the 40-pixel offset at 25.175 MHz

My Implementation Notes

I added two trimmer pots instead of one to allow finer control over the signal. When I first protyped this, the signal wasn’t clean and finer tuning was required, but I kept both anyways. One pot adjusts the main RC delay for horizontal alignment, while the second pot fine-tunes the signal to get a clean, stable image. Both pots are visible in the breadboard and video card photos below.

For +5V and GND, I used a multimeter to probe the video card’s components to find suitable tap points with a solid +5V and GND connection near where the 74AS02 is mounted. The yellow 220 nF ceramic disc bypass cap is soldered directly across the IC’s VCC and GND pins (pin 14 and pin 7).

I placed the components down at the bottom where there is airflow from the case exhaust fan (after it’s installed).

Close-up of 74AS02 circuit on the video card

My PSU was already rebuilt, so I had a clean, stable 5V rail available to power the 74AS02 directly. This simplified my build compared to the DOSReloaded approach, where the author tapped 12V and regulated it down with an LM78L05 because his 5V rail had too much ripple.

If your 5V rail is noisy (common with original PSUs), follow the DOSReloaded approach:

Regardless of your 5V source:

Delay circuit prototyped on breadboard

Video card with 74AS02 and BLANK tap wires installed

Modified video card installed in the Compaq chassis

Backlight

The original HCFT backlight inverter is incompatible with the CCFL tubes in the new display. I used a modern dual CCFL inverter board (eBay item 405140078781) wired to the 12V supply from the original inverter board.

TODO: Wire the new inverter’s dimmer input to the Compaq’s front-panel brightness potentiometer. Currently brightness is not adjustable from the front panel.

TODO: Track down the exact inverter model number and datasheet, and take photos of the installed inverter board.

Note: The DOSReloaded build used a CCFL Driver 104PW201, which conveniently accepts a 10kΩ pot — matching the original. That approach gives front-panel brightness control out of the box.

Physical Mounting

The replacement LQ104V1DG51 is physically much smaller than the original LQ10D016 because it uses modern CCFL backlights instead of the bulky heated-cathode fluorescent tubes in the original. The slimmer profile means the new panel doesn’t fill the original display cavity in the case. I superglued the panel into the case to hold it securely in place.

TODO: Add photos of the display mounted in the case.

Results

VGA graphics mode test — 640×480, 16 colors

DOOM running on the restored Compaq

It’s not a vintage computing project until you run DOOM on it. I don’t make the rules - the retro community bylaws are very clear on this. No DOOM screenshot, no credibility.

Resources


← back to Compaq Portable 486c Restoration [ESC]