⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clock.txt

📁 比较详尽的VGA端口寄存器的文档
💻 TXT
📖 第 1 页 / 共 2 页
字号:


ICS90c64
Startech ST49c064

20pin mask-programmable video and memory clock generator
Pins:
   1  i  Clock input. Typically 14.318 MHz
   2  i  MA2. Memory clock select 2
   3  i  External clock input (EXCLK)
   4  i  A1. Video clock select 1
   5  i  A0. Video clock select 0
   6  i  Latch inputs (A0-A3, MA0-MA2) on rising edge
   7  i  A2. Video clock select 2
   8  i  A3. Video clock select 3
   9  i  MA0. Memory clock select 0
  10  o  Digital ground
  11  i  MA1. Memory clock select 1
  12  o  MCLK. Memory clock output
  14  i  MCLK output enable
  15  i  Analog VCC
  16  o  Analog ground
  18  i  DCLK output enable
  19  o  DCLK. Video clock output
  20  i  Digital VCC


ST49c064   -?       -?
ICS9064    -?
AV9064              -?
VCLK 0:  30.000   30.000
VCLK 1:  77.250   77.250
VLKC 2:  EXCLK    EXCLK
VCLK 3:  80.000   80.000
VCLK 4:  31.500   31.500
VCLK 5:  36.000   36.000
VCLK 6:  75.000   75.000
VCLK 7:  50.000   50.000
VCLK 8:  40.000   40.000
VCLK 9:  50.000   50.000
VCLK A:  32.000   32.000
VCLK B:  44.900   44.900
VCLK C:  25.275   25.275
VCLK D:  28.322   28.322
VCLK E:  65.000   65.000
VCLK F:  36.000   36.000
MCLK 0:  33.000   41.612
MCLK 1:  49.218   37.500
MCLK 2:  60.000   49.128
MCLK 3:  30.500   44.296
MCLK 4:  41.612
MCLK 5:  37.500
MCLK 6:  49.128
MCLK 7:  44.296



IC Designs ICD2061,ICD2061A
ICS 9161
Diamond DCS2824
The ICD2062 appears very similar

16 pin user programmable video and memory clock generator.
Pins:
   1  i  SEL0/CLK. In programming mode the clock input, in normal mode selects
         the clock together with SEL1.
   2  i  SEL1/DATA In programming mode the data input, in normal mode selects
         the clock together with SEL0.
   3  i  AVDD. +5V Analog
   4  i  OUTDIS-. Output disabled if low.
   5     Ground.
   6  i  Reference crystal (typically 14.31818MHz)
   7  o  Crystal out
   8  o  Memory Clock output
   9  o  Video Clock output
  10  o  Error Output, Low if an error occured in the serial programming
  11  i  Feature Clock input
  12  i  INIT0. Selects initial state
  13  i  VDD. +5V
  14  i  INIT1. Selects initial state
  15  i  INTCLK
  16  i  PWRDWN

The initial frequencies are selected by INIT0 and INIT1:
  INIT0  INIT1    MREG    REG0    REG1    REG2
    0      0     32.500  25.175  28.322  28.322
    0      1     40.000  25.175  28.322  28.322
    1      0     50.350  40.000  28.322  28.322
    1      1     56.644  40.000  50.350  50.350
Note: some versions might have different power on values.

The Memory Clock output is controlled by the MREG register.
The Video Clock output is controlled by REG0-2 and the Feature Clock:
   INTCLK   SEL1   SEL0     Video Clock:
     x       0      0       REG0
     x       0      1       REG1
     0       1      0       Feature Clock
     1       1      0       REG2
     x       1      1       REG2
x = Don't care.

There are 6 24bit registers:
  REG0    Video Clock Register 1
  REG1    Video Clock Register 2
  REG2    Video Clock Register 3
  MREG    Memory or I/O Timing Register
          bit  0-6  Q Counter. Actual Q value is 2 higher (Ie. 2..129)
               7-9  Post VCO divider (M). Divide output clock by
                     0: 1, 1: 2, 2: 4, 3: 8, 4: 16, 5: 32, 6: 64, 7: 128
             10-16  P Counter. Actual P value is 3 higher (Ie. 3..130)
             17-20  Index. Selects the VCO range (in MHz):
                     0: 50.0-51.0  1: 51.0-53.2   2: 53.2-58.5   3: 58.5-60.7
                     4: 60.7-64.4  5: 64.4-66.8   6: 66.8-73.5   7: 73.5-75.6
                     8: 75.6-80.9  9: 80.9-83.2  10: 83.2-91.5  11: 91.5-100.0
                     12-15: 100.0-120.0
                    For the Video Clocks (REG0-2):
                       14 turns off VCLK and 15 sets VCLK to MCLK
             21-23  Selects the register: 0: REG0, 1: REG1, 2: REG2, 3: MREG
          Output clock is (Pre*Ref*(P/Q))/M
          Where Pre is the prescale factor, usually 2 but can be set to 4 on
          the ICD2061A (REG0-2 only) in the control register. Ref is the
          reference clock typically 14.31818MHz.
          The
  PWRDWN  Divisor for Power-Down mode.
          bit 17-20  Powerdown divisor. When in Power down mode 1 the Memory
                     Clock is set to the reference crystal/the value below.
                      1: 32, 2: 30, 3: 28, 4: 26, 5: 24, 6: 22, 7: 20, 8: 18
                      9: 16, 10: 14, 11: 12, 12: 10, 13: 8, 14: 6, 15: 4
                     Power on default is 8 I.e. divide by 18.
              21-23  Always 4 to select Power down register
  CNTL    Control Register
          bit    12  (not 2061) P Counter Prescale (REG0). If set REG0 uses a
                       prescale factor (Pre) of 4, if clear Pre = 2
                 13  (not 2061) P Counter Prescale (REG1). If set REG1 uses a
                       prescale factor (Pre) of 4, if clear Pre = 2
                 14  (not 2061) P Counter Prescale (REG2). If set REG2 uses a
                       prescale factor (Pre) of 4, if clear Pre = 2
                 16  Duty Cycle Adjust. If set causes the clock high period to
                     be 1ns shorter than normally.
                 18  Timeout Interval. Defines the timeout period for clock
                     selection and VCO settle. Set for twice normal timeout.
                 19  MUXREF. Selects the clock to output on VCLKOUT during
                     frequency changes. Set for MCLK, clear for f(ref).
                 20  Power-Down Mode. Set for Power-Down Mode 2 (Xtal
                     oscillator shutdown), clear for Power-Down Mode 1
                     (MCLKOUT = PWRDWN Divisor).
              21-23  Always 6 to select Control register
All undefined bits must be set to 0.


To program a clock value:
    CLK   DATA
     1      1  !repeat these two 6 times
     0      1  !

     0      0
     1      0
     0      0    !Start bit
     1      0

     1    ~data    ! Repeat for each of 24 bits, starting with
     0    ~data    ! the least significant
     0     data    ! data is the data bit
     1     data    ! ~data is the inverse data bit

     1      1
     0      1    !Stop bit
     1      1



Sierra SC11412 Programmable dual clock generator.
The SC11412 has a 20bit command word. The chip is controlled by 3 control pins
One pin selects either programming mode (1) or operating mode (0).
The two other pins

Pins:
  ?  i  Program/Run. When high the chip is in programming mode, when low in
        run mode.
  ?  i  Clksel0/Data. If run mode the low bit of the two clock select bits. In
        programming mode the data line. Typically driven from bit 2 of the
        Misc Output register at 3C2h.
  ?  i  Clksel1/Clk. If run mode the high bit of the two clock select bits. In
        programming mode the clock line. Typically driven from bit 3 of the
        Misc Output register at 3C2h.

Command word:
Bit    0  Selects the clock to program. 0: Memory Clock, 1: Pixel clock
       1  Enable output driver 0 for programming, 1 for reading ?
       2  Enable VCO (0?)
       3  External frequency programming mode (0?)
     4-5  Divider (D). 0: /1, 1: /2, 2: /4, 3: /8
    6-12  N. Multiplier (3 - 127)
   13-19  M. (2 - 127)
The resultant clock is N/(M* 2^D) *Quarts Freq (typically 14.318MHz).
The frequency before the 2^D factor is applied must be between 45 and 100MHz

To program the chip use the following sequence:
  Prog/Run   Clock    Data
     1         0        0

     1         0      data     ! Repeat for each of the 20 data bits, starting
     1         1      data     ! with bit 0.

     0         1        0      ! Use 0 1 0 to select the Pixel clock
A delay of a few microseconds between each step might be needed.



ICS 2595 Programmable Clock generator.
The ICS2595 uses 5 control pins for selecting and programming 16 clocks

The ICS2595 has a 20 bit control word:
Bit   0  Start bit. Must be 0.
      1  R/W Control. 0: Write, 1: Read
    2-6  Location. Selects the clock to reprogram.
   7-14  N. Multiplier. App 256 - 465?. Stored as 257 less, i.e 256 is stored
          as 255, 257 as 0 and 465 as 208.
     15  EXTFREQ. 0 to disable external clock
  16-17  Divider (D). 0: /1, 1: /2, 2: /4, 3: /8
  18-19  Stop bits, both 1.
The resulting clock is calculated as: basefreq * N/(46 *2^D)

  CLK0  CLK1  CLK2  CLK3  CLK4
    0     0     0     0     0
    0     0     0     0     1
    0     0     0     0     0
    1     0     0     0     1
    1     0     0     0     0

    0     0   data    0     1   !Repeat for each bit of the control word,
    0     0   data    0     0
    0     0   data    1     1   ! starting with bit 0.
    0     0   data    1     0

    0     0     0     0     0




Other Clock chips:

MX8602                (Used on MXIC cards)

ICD2042ASC            (Used on Compaq QVision)

HM8694P               (Used on HMC cards)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -