Video Signal Conversion Systems —CGA/EGA to VGA, RGB to VGA Guide

Author: Kongto Technology

Keywords: CGA to VGA converter, EGA to VGA converter, RGB to VGA, video signal conversion system


1. Overview of Signal Conversion Scenarios

Industrial video signal conversion is essential when upgrading legacy CNC displays to modern LCD monitors. This guide covers the three most common conversion scenarios:

Conversion TypeInput SignalOutput SignalPrimary Challenge
CGA to VGADigital TTL 15kHzAnalog RGBHV 31kHzDigital-to-analog + scan rate doubling
EGA to VGADigital TTL 22kHzAnalog RGBHV 31kHzDigital-to-analog + scan rate conversion
RGB to VGAAnalog RGBS/RGBHVAnalog RGBHV (standard VGA timing)Sync separation + timing normalization

2. CGA to VGA Conversion

2.1 Technical Details

CGA (Color Graphics Adapter) was introduced by IBM in 1981 and outputs 4-bit digital TTL signals at 15.75kHz horizontal frequency. To display CGA output on a modern VGA monitor:

  1. DAC conversion: Translate 4-bit TTL digital signals (0V/5V) to analog RGB signals (0-0.7V)
  2. Line doubling: Double the horizontal scan rate from 15.75kHz to 31.5kHz (VGA standard)
  3. Frame buffer scaling: Scale 320x200 or 640x200 resolution to 640x480 or 800x600
  4. Sync generation: Generate standard VGA H-Sync and V-Sync signals

2.2 Implementation

Kongto Technology JTX-CVR-001 converter handles all four steps automatically. Installation requires only connecting the CGA output cable to the converter input and the VGA output to the LCD display.

3. EGA to VGA Conversion

3.1 Technical Details

EGA (Enhanced Graphics Adapter) outputs 6-bit digital TTL signals at 21.85kHz. EGA conversion is similar to CGA but with:

  • 6-bit color depth (64 colors vs. CGA's 16 colors)
  • Higher horizontal frequency (21.85kHz vs. 15.75kHz)
  • 640x350 native resolution

4. RGB to VGA Conversion

4.1 RGBS vs RGBHV

Many FANUC systems output analog RGB signals with composite sync (RGBS) rather than separate H/V sync (RGBHV). VGA monitors require separate sync signals. The conversion process:

  1. Sync separation: Extract horizontal and vertical sync pulses from the composite sync signal using a dedicated sync separator IC
  2. Signal conditioning: Clean up sync edges and adjust pulse widths to VGA specifications
  3. Impedance matching: Ensure 75Ω source impedance on all output lines

5. CGA DB9 Pinout Table

The standard CGA connector uses a 9-pin D-sub (DB9) female connector on the display adapter. Below is the complete pinout:

PinSignal NameDescriptionVoltage Level
1GNDGround0V
2GNDGround0V
3RedRed video signal (digital TTL)0V / 5V TTL
4GreenGreen video signal (digital TTL)0V / 5V TTL
5BlueBlue video signal (digital TTL)0V / 5V TTL
6IntensityIntensity / brightness control bit0V / 5V TTL
7ReservedReserved (not used on standard CGA)N/A
8H-SyncHorizontal sync signal at 15.75kHz0V / 5V TTL
9V-SyncVertical sync signal at 60Hz0V / 5V TTL

6. EGA DB9 Pinout Table

The EGA connector also uses a 9-pin D-sub (DB9) but with a different signal assignment than CGA:

PinSignal NameDescription
1GNDGround
2Red (high)Red video signal, high-intensity bit
3Red (low)Red video signal, low-intensity bit (primary red)
4Green (high)Green video signal, high-intensity bit
5Green (low)Green video signal, low-intensity bit (primary green)
6Blue (high)Blue video signal, high-intensity bit
7Blue (low)Blue video signal, low-intensity bit (primary blue)
8H-SyncHorizontal sync signal at 21.85kHz
9V-SyncVertical sync signal at 60Hz

Note: EGA uses 2 bits per color channel (high/low) enabling 64 total colors (6-bit color depth), unlike CGA which uses a single bit per channel plus an intensity bit for 16 colors.

7. Common Troubleshooting Table

When installing CGA/EGA-to-VGA converters, the following issues are frequently encountered:

SymptomCauseSolution
No display / blank screenIncorrect input signal type selected; converter not receiving power; loose DB9 connectionVerify DIP switch settings match your CGA/EGA standard; check 12-36VDC power input; reseat DB9 connector and tighten screws
Flickering imageHorizontal frequency mismatch; inadequate power supply ripple rejectionConfirm the converter's auto-sync range covers your monitor's scan rate; use a regulated power supply (ripple < 50mV)
Wrong colors displayedTTL signal polarity reversed; incorrect intensity bit mapping; resistor ladder DAC mismatchCheck CGA/EGA jumper settings (some boards swap intensity and blue); verify 74LS series driver ICs are functioning
Image too dark or too brightAnalog RGB voltage levels out of range; contrast trimmer misadjustedUse a trimmer potentiometer on the converter board to adjust RGB gain; typical analog RGB should be 0.7V p-p at 75Ω
No sync / rolling imageComposite sync not separated correctly; sync polarity incorrectVerify sync separator IC (e.g., LM1881) is receiving clean input; check that H-Sync and V-Sync are not swapped
Ghosting / blurry textPoor shielding on input cable; excessively long cable runReplace with shielded twisted-pair cable; keep cable length under 1.5 meters for TTL signals

8. Cable Specifications Table

Proper cabling is critical for reliable signal transmission. Use the following specifications when building or selecting converter cables:

Signal TypeRecommended Cable TypeMax LengthShielding Requirements
CGA TTL (Digital RGBI)9-conductor shielded cable, 24 AWG stranded1.5 meters (5 ft)Overall braid shield ≥ 85% coverage; drain wire connected to GND at source end
EGA TTL (Digital 6-bit RGB)9-conductor shielded cable, 24 AWG stranded1.5 meters (5 ft)Overall foil + braid shield; individual twisted pairs for each color channel recommended
Analog RGBS75Ω coaxial (RG-59 or equivalent) for each RGB channel + separate sync wire5 meters (16 ft)Individual coaxial shields per channel + overall jacket shield
Analog RGBHV (VGA)Standard VGA cable (3+4 coax + control wires)10 meters (33 ft)Double shielding (foil + braid) on each coax; ferrite core on both ends for runs > 5m
DB9 Breakout / AdapterIDC ribbon cable with DB9 hood or solder-cup DB9 connectors0.3 meters (1 ft)Not required for short adapters; use twisted-pair ribbon for runs > 0.3m
Power (12-36 VDC)2-conductor 18 AWG stranded, polarized connector3 meters (10 ft)No shielding required; use twisted pair to reduce EMI coupling

9. Installation Steps

Follow these steps to properly install your CGA/EGA-to-VGA converter system:

  1. Identify your source signal type —Determine whether your machine outputs CGA (15.75kHz, 4-bit TTL), EGA (21.85kHz, 6-bit TTL), or analog RGBS. Check the machine's service manual or inspect the video connector pinout. Most FANUC 6/11/15 series use CGA; FANUC 0/16/18/21 series may use analog RGBS.
  2. Power down all equipment —Turn off and disconnect power to both the CNC machine and the replacement LCD monitor. Never connect or disconnect video cables while equipment is powered on, as this can damage the TTL driver ICs.
  3. Connect the converter input —Attach the DB9 male connector from the machine's video output to the DB9 female input on the converter board. Tighten the thumbscrews firmly (0.3-0.5 Nm torque). If your machine uses a different connector (e.g., 6-pin Molex), use the appropriate adapter cable.
  4. Connect the converter output —Plug a standard VGA cable (male-to-male) from the converter's VGA output port to the LCD monitor's VGA input. Ensure the cable is fully seated and the thumbscrews are tightened. If the LCD monitor only accepts DVI-D or HDMI, use an active VGA-to-DVI/HDMI adapter.
  5. Apply power to the converter —Connect a 12-36VDC power supply to the converter's power input terminal. Observe correct polarity (center-positive for barrel jacks; check markings for screw terminals). The converter's LED indicator should light up within 2 seconds.
  6. Power on and verify operation —Power on the LCD monitor first, then the CNC machine. The converter should automatically detect the input signal timing and output a stable VGA image. If no image appears within 10 seconds, use the calibration buttons (if present) to cycle through preset modes, or check the troubleshooting table in Section 7.

10. Comparison of Conversion Solutions

ParameterJTX-CVR-001 (CGA)JTX-CVR-002 (EGA)JTX-CVR-003 (RGB)
Input SignalCGA TTL 15kHzEGA TTL 22kHzRGBS analog
Output SignalVGA 640x480@60HzVGA 640x480/800x600@60HzVGA 640x480/800x600@60Hz
Color Depth8-bit per channel8-bit per channel8-bit per channel
Operating Temp-20°C to +70°C-20°C to +70°C-20°C to +70°C
Power12-36 VDC12-36 VDC12-36 VDC
MTBF50,000 hours50,000 hours50,000 hours
PriceCNY 850CNY 880CNY 750

Contact Kongto Technology at [email protected] for product inquiries.