home *** CD-ROM | disk | FTP | other *** search
/ BBS 1 / BBS#1.iso / document / vgadoc.arj / TRIDENT.DOC < prev    next >
Text File  |  1991-12-05  |  6KB  |  193 lines

  1.   Trident SuperVGA
  2.  
  3.   Trident 8800BR  512k   Only 128K banks.
  4.           8800CS  512k
  5.           8900    1M
  6.  
  7.           The Trident 8800 chips have a problem with 256 color modes,
  8.           as they always double the pixels output in 256 color mode.
  9.           Thus a 640x400 256 color mode (5Ch) actually uses a 1280x400
  10.           frame, requiring at least a multi sync monitor.
  11.           This problem is fixed on the 8900.
  12.  
  13.  
  14.  
  15.        100h (R/W?): Microchannel ID low
  16.        bit 0-7  Card ID bit 0-7
  17.  
  18.        101h (R/W?): Microchannel ID high
  19.        bit 0-7  Card ID bit 8-15
  20.  
  21.        3C3h (R/W): Microchannel Video Subsystem Enable Register:
  22.          bit 0  Enable Microchannel VGA if set
  23.  
  24.        3C4h index  Bh (R): Chip Version
  25.        bit 0-3  Chip ID
  26.                  1 = TR 8800BR
  27.                  2 = TR 8800CS
  28.                  3 = TR 8900
  29.            4-7  Reserved
  30.  
  31.        Note:  Writing to index Bh selects old mode registers.
  32.               Reading from index Bh toggles between old and new
  33.               mode registers.
  34.  
  35.        3C4h index  Ch (R/W): Power Up Mode Register 1
  36.  
  37.        3C4h index  Dh (R/W): Old Mode Control 2
  38.        bit 0-2  Emulation mode
  39.                   0=VGA, 3=EGA, 5=CGA,MDA,Hercules
  40.              4  Enable Paging mode if set
  41.  
  42.        3C4h index  Dh (R/W): New Mode Control 2
  43.                    Contains timing info
  44.        Note: The old/new Mode Control 1/2 registers are selected by
  45.              reading and writing the Chip version register (index Bh).
  46.  
  47.        3C4h index  Eh (R/W): Old Mode Control 1
  48.          bit 0  (8900 Only) CRTC Address bit 17 (Show from upper 512kb if set)
  49.            1-2  128kb Bank number (0-3)
  50.              3  16 bit interface if set
  51.  
  52.        3C4h index  Eh (R/W): New Mode Control 1
  53.        bit 0-3  64k Bank nr. For write ops. xor bank number with 2,
  54.                 for read ops use bank number directly.
  55.            4-7  Reserved
  56.        Note: The old/new Mode Control 1/2 registers are selected by
  57.              reading and writing the Chip version register (index Bh).
  58.  
  59.        3C4h index  Fh (R/W): Power-up Mode 2
  60.        bit 0-3  Switch settings
  61.              4  Bus type
  62.              5  I/O address 3xx or 2xx
  63.              6  Enable ON-Card ROM if set
  64.              7  16 bit ROM access if set
  65.  
  66.        3d4h index 1Eh (R/W): Module Testing Register
  67.          bit 2  Vertical interlace if set
  68.              5  CRTC starting address bit 16
  69.              7  (8900 Only) Host address bit 16.
  70.                 Enables 128k CRTC address if set
  71.  
  72.        3d4h index 1Fh (R/W): Software Programming Register  (8900 Only)
  73.        bit 0-1  Memory size  0=256k, 1=512k, 2=768k, 3=1M.
  74.  
  75.        3d4h index 1Fh (R/W): Scratch Register               (8800 Only)
  76.          bit 0  Paged memory mode in effect
  77.              1  Memory size  0=256k, 1=512k
  78.              2  Analog monitor attached
  79.              3  44.9 MHz oscilator present
  80.        Note: This register is set by software.
  81.  
  82.  
  83.  
  84.        3d4h index 22h (R): CPU Latch Read Back
  85.        bit 0-7  Data Latch value for current read plane.
  86.  
  87.        3d4h index 24h (R): Attribute State Read Back
  88.        bit 0-6  Reserved
  89.              7  Attribute Controller State
  90.                 If set the next write to 3C0h will go to the data
  91.                 register, if clear to the index register.
  92.  
  93.        3d4h index 26h (R): Attribute Index Read Back
  94.        bit 0-7  Attribute Index Register value
  95.  
  96.  
  97.  
  98.       46E8h (R):  Video Subsystem Enable Register
  99.          bit 3  Enable VGA if set
  100.  
  101.  
  102.  
  103.  
  104.   Bank selection:
  105.  
  106.     Trident VGAs can operate in 2 different modes:
  107.  
  108.     Old Mode, with a 128k window to display memory at A000h - BFFFh
  109.     and New Mode, with a 64k window to display memory at A000h - AFFFh.
  110.     Old/New mode is selected by reading/writing the Chip Version Register
  111.     (3C4h index 0Bh).
  112.     Each mode has its own registers at 3C4h index 0Dh and 0Eh.
  113.  
  114.   ID Trident VGA:
  115.  
  116.     port[$3c4]:=14;
  117.     old_value:=port[$3c5];
  118.     port[$3c5]:=0;
  119.     value:=port[$3c5] and 15;
  120.     port[$3c5]:=old_value;
  121.  
  122.     if value=2 then TRIDENT VGA  !!!
  123.  
  124.  
  125.   ID which Trident:
  126.  
  127.     portw[$3c4]:=11;     {Force old definitions}
  128.     if port[$3c5]>=3 then TRIDENT_8900 !!!
  129.                      else TRIDENT_8800 !!!
  130.  
  131.  
  132.   Video Modes:
  133.     50h  T    80   30  16  (8x16)
  134.     51h  T    80   43  16  (8x11)
  135.     52h  T    80   60  16  (8x8)
  136.     53h  T   132   25  16  (8x14)
  137.     54h  T   132   30  16  (8x16)
  138.     55h  T   132   43  16  (8x11)
  139.     56h  T   132   60  16  (8x8)
  140.     57h  T   132   25  16  (9x14)
  141.     58h  T   132   30  16  (9x16)
  142.     59h  T   132   43  16  (9x11)
  143.     5Ah  T   132   60  16  (9x8)
  144.     5Bh  G   800  600  16  planar
  145.     5Ch  G   640  400 256  packed
  146.     5Dh  G   640  480 256  packed
  147.     5Eh  G   800  600 256  packed           (Undocumented on 8800)
  148.     5Fh  G  1024  768  16  planar
  149.     60h  G  1024  768   4                   8900 Only
  150.     61h  G   768 1024  16  planar
  151.     62h  G  1024  768 256  packed           8900 Only
  152.  
  153.  
  154.     ZyMOS POACH51 modes:
  155.  
  156.     60h  G   960  720  16  planar
  157.     61h  G  1280  640  16  planar
  158.     62h  G   512  512 256  packed
  159.     63h  G   720  540  16  planar
  160.     64h  G   720  540 256  packed
  161.     6Ah  G   800  600  16  planar
  162.  
  163.  
  164.   Everex Viewpoint use Everex modes.
  165.  
  166.  
  167.   Bios extensions:
  168.  
  169. ----------1000-------------------------------
  170. INT 10 - VIDEO - SET VIDEO MODE
  171.  
  172.   ....
  173.  
  174. Return: AH = Status of call:  (Trident Super VGA Chips)
  175.  
  176.                     Trident 8800            Trident 8900
  177.              00h   Succesfull                do
  178.              80h   Fail. Wrong switch        do
  179.              81h   Insufficient Video        do
  180.                    Memory.
  181.              82h   The 36MHz crystal        Mode not supported
  182.                    cannot support the
  183.                    mode
  184.              83h   The 40MHz crystal        Mode not supported
  185.                    cannot support the
  186.                    mode.
  187.              84h   The 44.9MHz crystal      Mode not supported
  188.                    cannot support the
  189.                    mode.
  190.              85h   Dead or no crystal
  191.              86h                            Wrong CRTC base for dual screen
  192.              87h                            Text mode not supported
  193.