▒▒▒ 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 10lbs and has a CRT.
>
> NO CARRIER

Screen Replacement

2024-10-18


Overview

Original 10.4” TFT (Sharp LQ10D016) was dead on arrival. Electrolyte leakage from aging caps corroded the ribbon cables to the driver ICs. Extremely common with these machines. No OEM replacement exists, Sharp won’t release the datasheet. Had to find a modern 10.4” 640×480 TFT and make it work.

Original Display: Sharp LQ10D016

No official datasheet for the LQ10D016. The pinout was reverse-engineered by Beckenrandschwimmer on DOSReloaded. Probed the video card output with an oscilloscope and test patterns to map every signal. This project wouldn’t have happened without that work. Closest available datasheet is the Sharp LQ10D011, same 3-bit-per-channel color architecture, same horizontal display start at clock 144, identical timing. The LQ10D011 uses a 22-pin interface (CN1) vs the Compaq’s custom 30-pin ribbon, but the signals and timing match. Between the LQ10D011 datasheet and Beckenrandschwimmer’s scope work, I had a complete picture. 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 a lot of searching and trial and error, I went with a Sharp LQ104V1DG51. See LQ104V1DG51 Datasheet (PDF). Originally I wanted a panel with a fixed horizontal display start at clock 144 matching the Compaq’s video card timing. That would have avoided the delay circuit entirely. No such panel exists, or if it does, it doesn’t support 400-line and 350-line DOS modes.

The LQ104V1DG51 was the best compromise. Natively supports 480-line, 400-line, and 350-line modes. Mode selection is via H-Sync/V-Sync polarity, which is exactly how the Compaq signals it. All three DOS modes work without extra circuitry. Trade-off: I need the BLANK-to-DE delay circuit for 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

Problems I had to solve:

  1. Proprietary 30-pin connector. No documentation. Pinout had to be reverse-engineered. New display uses standard 31-pin, so I needed an adapter cable.
  2. 40-pixel horizontal shift. New display starts drawing 40 clocks early, image shifts left.
  3. No Data Enable signal. Video card doesn’t output DE, new display requires it.
  4. Color depth mismatch. Video card outputs 3 bits per color, new display expects 6-8 bits.
  5. Backlight incompatibility. Completely different inverter requirements.
  6. 70 Hz DOS modes. Most new displays can’t handle 400-line/70 Hz and 350-line/70 Hz. Image wraps at the bottom. The panel I found supports it.

Pin Mapping

Full pin-by-pin mapping is in Compaq Display Pinout Mapping (PDF).

Key wiring notes:

Adapter Cable

New display has standard 31-pin TTL, Compaq outputs through a proprietary undocumented 30-pin ribbon cable. Can’t plug one into the other. Rather than hand-soldering 30 wires, I grabbed a 40-pin to 31-pin TTL LVDS cable with a breakout board (eBay item 173579595077). Could have custom made one for exactly 30 pins, but this was off the shelf and it works. 31-pin end plugs into the new display, breakout board side I soldered to the Compaq’s original ribbon connector.

Adapter board

Full 40-pin connector pinout →

Data Enable / Horizontal Alignment Circuit

New display needs a Data Enable (DE) signal and starts drawing at clock 104 instead of 144. That’s a 40-pixel horizontal offset. The fix (originally from Beckenrandschwimmer on DOSReloaded) uses the BLANK signal from the RAMDAC as a delayed Data Enable.

The Problem

The Compaq’s Cirrus Logic video controller outputs H-Sync, V-Sync, and a BLANK signal from the RAMDAC. Video card uses a Brooktree Bt47x series RAMDAC (Bt471/476/478 family). BLANK* is at pin 7 on the 44-pin PLCC package. TTL-compatible, active-low. See BT471 RAMDAC Datasheet (PDF).

Bt471 RAMDAC video output waveform and BLANK* truth table (Table 4 from datasheet)

BLANK* = 1 during active display (pixel data visible), BLANK* = 0 during blanking intervals and sync. That’s the signal we need. Invert and delay it to get Data Enable.

Original display used H-Sync and V-Sync directly for pixel positioning, fixed start at clock 144 after H-Sync. Modern displays want a DE signal that goes high during active display instead. My new display expects pixels at clock 104. Compaq sends them at 144. Need to delay DE by exactly 40 clocks (~1.58 µs at 25.175 MHz) to line things up.

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

RC Delay Approach

Simple RC delay network between two inverter stages. BLANK* from the RAMDAC is active-low during blanking; when high, display is in the active region (see truth table above). Invert it, delay through the RC network, invert again. Out comes a properly timed DE signal.

RC delay schematic

Delay is set by the RC time constant: τ = R × C. 10 kΩ trimmer pot and 22 pF cap covers the ~1.58 µs I need. Turning the trimmer shifts the image left or right, pixel by pixel.

74AS02 NOR Gate Implementation

SN74AS02N, quad 2-input NOR gate. Tie both inputs together and a NOR gate acts as an inverter. I use two of the four gates as the inverter stages. Other two are unused (inputs tied to GND per standard practice).

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

Physical wiring on the video card. The 74AS02 is soldered dead-bug style (upside down) directly onto the PCB.

Bt471/478 44-pin PLCC pinout, BLANK* is pin 7

Key connections:

Close-up of 74AS02 circuit on the video card Video card with 74AS02 and BLANK tap wires installed

Went with “Advanced Schottky” (AS) for the fast propagation delay (~1.5 ns). Keeps the DE edges sharp at 25 MHz pixel clock. Standard 74LS or 74HC would add too much delay and degrade the edges.

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

Used two trimmer pots instead of one. When I first prototyped this the signal wasn’t clean and I needed finer tuning, so I kept both. One pot for the main RC delay, second for fine-tuning. Both visible in the photos below.

For +5V and GND, I probed the video card with a multimeter to find solid tap points near where the 74AS02 sits. Yellow 220 nF ceramic disc bypass cap is soldered directly across VCC and GND (pin 14 and pin 7).

Placed everything near the bottom where the case exhaust fan pushes air.

My PSU was already rebuilt so I had clean 5V available. Simplified things vs the DOSReloaded approach where they tapped 12V and regulated down with an LM78L05 because the 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 Modified video card installed in the Compaq chassis

Backlight

Original HCFT inverter won’t work with the CCFL tubes in the new display. Wired in a modern dual CCFL inverter board (eBay item 405140078781) off 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

LQ104V1DG51 is much slimmer than the original because modern CCFL vs bulky heated-cathode tubes. Doesn’t fill the display cavity. Superglued it in. Not elegant, but it holds.

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]