Frequency Calculation
Horizontal frequency and vertical frequencies calculation are done by using one 10-bit up counter. After
power is on, the SYNC processor calculates the vertical frequency first (H/V bit = ”0”). A 31.25KHz clock
counts the time interval between two VSYNC pulses, then sets the FRDY bit and generates an INT1 inter-
rupt (if IEN_S bit is “1”). The software can either use interrupt or polling the FRDY bit to read the correct
vertical frequency. After reading the REG#16H, the FRDY bit is cleared to “0”, counter is reset and H/V bit is
set. The SYNC processor starts to count horizontal frequency. The horizontal frequency calculation is done
by counting the HSYNC pulses in 8.192 ms. Like the vertical frequency, the horizontal frequency can be
read when the FRDY bit is set or INT1 occurs. After reading the REG#16H, the FRDY, INT_S and H/V bits
are cleared. The SYNC processor starts to calculate the vertical frequency again, and so on.
The relationships between counter value and frequency are:
Hfreq = (counter value
×
122.07) Hz
Vfreq = ( 31250 / counter value) Hz
The frequency range:
Hfreq range: 122.07 Hz to 124.8 kHz; Resolution: 122.07Hz
Vfreq range: 30.5 Hz to 31.25 kHz
If counter overflowed, the OVF1 bit will be set to “1”. The counter keeps on counting until it overflowed
again. The OVF2 bit and FRDY bit will be set when counter overflowed twice. This is designed for finding the
vertical frequency bellows 15.25Hz. The program should check REG#17H before reading REG#16H.
Polarity Detect/Control
The polarities of HSYNC and VSYNC are automatically detected and are shown in the H_POL and
V_POL bits. The polarities of HSO and VSO are controlled by the HOP and VOP bits. For example, set
HOP bit to ”1”, the HSO pin always outputs positive horizontal sync signal, whatever the HSYNC input’s
polarity is.
Free-running Sync Signal
The self-generated sync signals are output from HSO and VSO pins if SELF bit is “1”. Three kinds of
frequencies are provided:
(1) Hfreq = 8MHz/125 = 64.0kHz, Vfreq = Hfreq/1024 = 62.5Hz.
(2) Hfreq = 8MHz/167 = 47.9kHz, Vfreq = Hfreq/640 = 74.9Hz.
(3) Hfreq = 8MHz/257 = 31.1kHz, Vfreq = Hfreq/512 = 60.8Hz.
The output polarities are controlled by the HOP and VOP bits.
The pulse width of HSO is 2us and VSO is four HSO cycles. The timing relationship is shown in the
following:
2us
HSO
VSO
50
Summary of Contents for Diamand Scan 71
Page 9: ... 6 Diamand Scan 71 ...
Page 70: ...10 Monolithic triple 13 5nS CRT driver 67 ...
Page 71: ...68 ...
Page 72: ...69 ...
Page 73: ...70 ...
Page 102: ...99 SCHEMATIC DIAGRAMS 1 Video Board ...
Page 103: ...100 2 Main Board ...