Enhanced Graphics Adapter

From Wikipedia, the free encyclopedia

Jump to: navigation, search
Screenshot of Arachne using the 640×350 graphics mode. The screenshot contains 14 colors.
Screenshot of Arachne using the 640×350 graphics mode. The screenshot contains 14 colors.

The Enhanced Graphics Adapter (EGA) is the IBM PC computer display standard specification located between CGA and VGA in terms of graphics performance (that is, color and space resolution). Introduced in 1984 by IBM for its new PC-AT, EGA produced a display of 16 colors at a resolution of up to 640×350 pixels. The EGA card included a 16 kibibyte ROM to extend the system BIOS for additional graphics functions and included the Motorola MC6845 video address generator.

Each of the 16 colors could be assigned a unique RGB color code via a palette mechanism in the 640×350 high-resolution mode; EGA let you choose the displayed colors out of a total of 64 palette colors (two bits per pixel for red, green and blue). EGA also included full 16-color versions of the CGA 640×200 and 320×200 graphics modes; only the 16 CGA/RGBI colors are available in these modes. The original CGA modes are also present, though EGA isn't 100% hardware compatible with CGA. EGA can drive an MDA monitor by a special setting of switches on the board; only 640×350 high-res is available in this mode.

EGA cards used the PC ISA bus, and were available starting in 8-bit versions. The base IBM EGA card came with 64 kibibytes of video memory installed, actually just enough to handle monochrome high-resolution graphics (but allowing for full color in the 640×200 and 320×200 modes). Eventually, most EGA cards and clones would come with a full 256 KiB of memory. A few third-party EGA clones (notably the ATI Technologies and Paradise boards) featured a range of extended graphics modes (e.g. 640×400, 640×480 and 720×540), as well as automatic monitor type detection, and sometimes also a special 400-line interlace mode for use on CGA monitors.

The EGA standard was made obsolete by the introduction of VGA by IBM in April 1987 with the PS/2 computer line. Utilities such as VGA2EGA helped late adopters to view VGA images without upgrading hardware and were particularly good at transferring flesh tones reasonably accurately into the 16-color format.

See also Professional Graphics Controller, a much more powerful graphics adapter with an equally short marketing life.

Contents

EGA Color Table
EGA Color Table

The EGA palette allows all 16 CGA colors to be used simultaneously, and it allows each of these colors to be selected from a total of 64 colors (two bits each for red, green and blue.) This also allows the CGA's alternate brown color to be used without any additional display hardware. The later VGA standard built on this by allowing each of the 64 colors to be further customized.

The full 64-color EGA palette
The full 64-color EGA palette

When selecting a color from the EGA palette, two bits are used for the red, green and blue channels. This allows each channel a value of 0, 1, 2 or 3. To select the color magenta, the red and blue values would be medium intensity (2, or 10 in binary) and the green value would be off (0). When calculating the intended value in the 64-color EGA palette, the binary number of the intended entry is of the form "rgbRGB" where a lowercase letter is the least significant bit of the channel intensity and an uppercase letter is the most significant bit. For magenta, the most significant bit in the red and blue values is a 1, so the uppercase R and B placeholders would become 1. All other digits are zeros, giving the binary number 000101 for the color magenta. This is 5 in decimal, so setting a palette entry to 5 would result in it being set to magenta. All the color values for the default colors are listed in the table on the right.

Default EGA 16-color palette
(set up to match the standard CGA colors)
Color rgbRGB Decimal
0 — black (#000000) 000000 0
1 — blue (#0000AA) 000001 1
2 — green (#00AA00) 000010 2
3 — cyan (#00AAAA) 000011 3
4 — red (#AA0000) 000100 4
5 — magenta (#AA00AA) 000101 5
6 — brown (#AA5500) 010100 20
7 — white / light gray (#AAAAAA) 000111 7
8 — dark gray / bright black (#555555) 111000 56
9 — bright blue (#5555FF) 111001 57
10 — bright green (#55FF55) 111010 58
11 — bright cyan (#55FFFF) 111011 59
12 — bright red (#FF5555) 111100 60
13 — bright magenta (#FF55FF) 111101 61
14 — bright yellow (#FFFF55) 111110 62
15 — bright white (#FFFFFF) 111111 63

Pin numbers (looking at socket):

Pin assignments
Pin Name Function
1 GND Ground
2 SR Secondary Red (Intensity)
3 PR Primary Red
4 PG Primary Green
5 PB Primary Blue
6 SG Secondary Green (Intensity)
7 SB Secondary Blue (Intensity)
8 H Horizontal Sync
9 V Vertical Sync

Type Digital, TTL
Resolution 640h x 350v x 16c, other modes available
H-freq 15.7/21.8 kHz
V-freq 60 Hz
Colors 16/64

  • Mueller, Scott (1992) Upgrading and Repairing PCs, Second Edition, Que Books, ISBN 0-88022-856-3
Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.