US20020005840A1 - Method and apparatus for detection of a video display device - Google Patents

Method and apparatus for detection of a video display device Download PDF

Info

Publication number
US20020005840A1
US20020005840A1 US09/239,501 US23950199A US2002005840A1 US 20020005840 A1 US20020005840 A1 US 20020005840A1 US 23950199 A US23950199 A US 23950199A US 2002005840 A1 US2002005840 A1 US 2002005840A1
Authority
US
United States
Prior art keywords
output
video
display device
video driver
resistance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
US09/239,501
Other versions
US6819305B2 (en
Inventor
David J. Wicker
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quarterhill Inc
Bank of New York Mellon Trust Co NA
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Assigned to CONEXANT SYSTEMS, INC. reassignment CONEXANT SYSTEMS, INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: WICKER, DAVID J.
Priority to US09/239,501 priority Critical patent/US6819305B2/en
Application filed by Individual filed Critical Individual
Assigned to CREDIT SUISSE FIRST BOSTON reassignment CREDIT SUISSE FIRST BOSTON SECURITY INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CONEXANT SYSTEMS, INC.
Assigned to CONEXANT SYSTEMS, INC., BROOKTREE CORPORATION, BROOKTREE WORLDWIDE SALES CORPORATION, CONEXANT SYSTEMS WORLDWIDE, INC. reassignment CONEXANT SYSTEMS, INC. RELEASE OF SECURITY INTEREST Assignors: CREDIT SUISSE FIRST BOSTON
Publication of US20020005840A1 publication Critical patent/US20020005840A1/en
Publication of US6819305B2 publication Critical patent/US6819305B2/en
Application granted granted Critical
Assigned to BANK OF NEW YORK TRUST COMPANY, N.A. reassignment BANK OF NEW YORK TRUST COMPANY, N.A. SECURITY AGREEMENT Assignors: CONEXANT SYSTEMS, INC.
Assigned to CONEXANT SYSTEMS, INC. reassignment CONEXANT SYSTEMS, INC. RELEASE BY SECURED PARTY (SEE DOCUMENT FOR DETAILS). Assignors: THE BANK OF NEW YORK MELLON TRUST COMPANY, NATIONAL ASSOCIATION
Assigned to CONEXANT SYSTEMS, INC., THE BANK OF NEW YORK MELLON TRUST COMPANY, NATIONAL ASSOCIATION reassignment CONEXANT SYSTEMS, INC. CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: BANK OF NEW YORK TRUST COMPANY, N.A.
Assigned to WI-LAN INC. reassignment WI-LAN INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CONEXANT SYSTEMS, INC.
Assigned to WI-LAN INC. reassignment WI-LAN INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: CONEXANT SYSTEMS INC.
Assigned to QUARTERHILL INC. reassignment QUARTERHILL INC. MERGER AND CHANGE OF NAME (SEE DOCUMENT FOR DETAILS). Assignors: QUARTERHILL INC., WI-LAN INC.
Assigned to WI-LAN INC. reassignment WI-LAN INC. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: QUARTERHILL INC.
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G1/00Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data
    • G09G1/06Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows
    • G09G1/14Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows the beam tracing a pattern independent of the information to be displayed, this latter determining the parts of the pattern rendered respectively visible and invisible
    • G09G1/16Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows the beam tracing a pattern independent of the information to be displayed, this latter determining the parts of the pattern rendered respectively visible and invisible the pattern of rectangular co-ordinates extending over the whole area of the screen, i.e. television type raster
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G1/00Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data
    • G09G1/28Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using colour tubes
    • G09G1/285Interfacing with colour displays, e.g. TV receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/04Diagnosis, testing or measuring for television systems or their details for receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/4143Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a Personal Computer [PC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/44Receiver circuitry for the reception of television signals according to analogue transmission standards
    • H04N5/46Receiver circuitry for the reception of television signals according to analogue transmission standards for receiving on more than one standard at will
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/641Multi-purpose receivers, e.g. for auxiliary information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/642Multi-standard receivers
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G1/00Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data
    • G09G1/06Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows
    • G09G1/14Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows the beam tracing a pattern independent of the information to be displayed, this latter determining the parts of the pattern rendered respectively visible and invisible
    • G09G1/16Control arrangements or circuits, of interest only in connection with cathode-ray tube indicators; General aspects or details, e.g. selection emphasis on particular characters, dashed line or dotted line generation; Preprocessing of data using single beam tubes, e.g. three-dimensional or perspective representation, rotation or translation of display pattern, hidden lines, shadows the beam tracing a pattern independent of the information to be displayed, this latter determining the parts of the pattern rendered respectively visible and invisible the pattern of rectangular co-ordinates extending over the whole area of the screen, i.e. television type raster
    • G09G1/165Details of a display terminal using a CRT, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G1/167Details of the interface to the display terminal specific for a CRT
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/43615Interfacing a Home Network, e.g. for connecting the client to a plurality of peripherals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network
    • H04N21/43632Adapting the video or multiplex stream to a specific local network, e.g. a IEEE 1394 or Bluetooth® network involving a wired protocol, e.g. IEEE 1394
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Definitions

  • the present invention relates generally to video signals and, more particularly, to a method and apparatus for detecting whether a video output is connected to a monitor or other device.
  • RGB color space conversion is performed because computers and televisions generally use different “color spaces” for representation and storage of video color data.
  • a color space is a mathematical representation of a set of colors.
  • Computers typically use the RGB (Red, Green, Blue) color space, while televisions use color spaces based on luminance and chrominance values (the YUV and YCbCr color spaces, for example).
  • the RGB color space is a digital format widely used in computer graphics and imaging. Red, green and blue are the primary additive colors; components of these primary colors can be combined to form any desired color.
  • the RGB color space is the most prevalent choice for computer graphics frame buffers (the memory used to hold images for display) because computer monitors use red, green and blue phosphors to create the desired color. Consequently, using the RGB color space simplifies the architecture and design of the system.
  • RGB color space is not always the best choice when dealing with display of “real world” images.
  • the human eye does not always perceive color as a simple addition of red, blue and green, but rather, sometimes as color difference signals.
  • processing an image in the RGB color space is not very efficient.
  • all three RGB values must be read from the frame buffer, the intensity or color calculated and the modifications performed, and the new RGB values calculated and written back to the frame buffer.
  • broadcast and television standards generally use color spaces employing luminance and chrominance video signals.
  • Luminance refers to the black-and-white information in the video signal and chrominance, or chroma, refers to the color information in the video signal.
  • the YUV, YIQ and YCbCr color spaces are luminance and chrominance based.
  • the YUV color space is the basic analog format used under the NTSC (National Television Standards Committee) composite color video standard, which is used in North America and other parts of the world, as well as under the PAL (Phase Alternation Line) and SECAM (Sequential Couleur Avec Memoire) standards, which are used in Europe and elsewhere.
  • the YUV space is comprised of luma (Y) and chroma (U and V) components.
  • the luma component is made up of portions of all three RGB color signals, and the chroma components are color difference signals developed by subtracting the luma component from the blue signal (U) and from the red signal (V).
  • the YUV format is also advantageous in that a black and white display can be driven with just the Y component.
  • Y has a range of zero to 255, U a range of zero to ⁇ 112 and V a range of zero to ⁇ 157.
  • the YIQ and YCbCr color spaces are derived from the YUV color space and are optionally used by the NTSC composite color video standard.
  • the “I” stands for “in-phase” and the “Q” for “quadrature”, which is the modulation method used to transmit the color information.
  • I and Q are modulated (one modulator is driven by the subcarrier at sine phase; the other modulator is driven by the subcarrier at cosine phase) and added together to form the composite chrominance signal.
  • Y has a range of zero to 255
  • I has a range of zero to ⁇ 152
  • Q has a range of zero to ⁇ 134.
  • the YCbCr color space is a digital component format developed as part of Recommendation ITU-R BT.601 during the development of a worldwide digital component video standard. It is essentially a scaled and offset version of the YUV color space.
  • Y is defined to have a nominal range of 16 to 235; and Cb and Cr are defined to have a range of 16 to 240, with 128 equal to zero.
  • the horizontal scan rate is the number of horizontal lines drawn per second by the electron beam.
  • the horizontal scan rate of a computer monitor is often twice as fast as that of a television monitor.
  • the horizontal scan rate of a computer monitor is typically in the range of 24 to 65 kHz (24,000 to 65,000 horizontal lines drawn per second); and workstations used in business and industry may have horizontal scan rates exceeding 100 kHz.
  • the horizontal scan rate of a television monitor by contrast, is only about 15 kHz (15,000 horizontal lines drawn per second).
  • Television broadcast standards specify exact horizontal scan rates that must be strictly adhered to; the NTSC horizontal scan rate is 15.75 kHz and the PAL horizontal scan rate is 15.625 kHz.
  • a VGA Video Graphics Array, a widely used computer display standard
  • a computer scans out a video display in a “noninterlaced” fashion. That is, all of the lines in a frame are scanned out sequentially, one right after the other. The entire image is drawn on the screen in one pass from top to bottom.
  • a television display uses an “interlaced” format.
  • Each frame of video is scanned out as two fields that are separated temporally and offset spatially in the vertical direction.
  • Each field is drawn on the screen consecutively and in alternating fashion—first one field, then the other.
  • an image is drawn in two top-to-bottom passes: the first pass draws the “odd” lines (the first field) and the second pass draws the “even” lines (the second field). It follows that the number of lines in a field is one-half the number of lines in a frame.
  • NTSC there are 262.5 lines per field (525 lines per frame)
  • PAL there are 312.5 lines per field (625 lines per frame).
  • An interlaced television display format is utilized because of the relatively slow frame rate of a television, which as mentioned above, is approximately 30 Hz.
  • a television screen updated at only 30 frames per second will cause noticeable flicker, that is, the image will begin to fade before the next one is drawn on to the screen. Flicker is similar to the effect produced by an old fluorescent light fixture.
  • the field update rate is 60 fields per second. At this higher rate, the eye blends everything together into a smooth, continuous motion.
  • the RGB pixel data after being converted into the YUV, YCbCr or YIQ color space, must be encoded into a composite color video waveform recognizable by the television.
  • the composite waveform contains a number of specifically placed and timed video and control signals. These include the active video signal; the color burst waveform; the horizontal and vertical sync pulses; and the horizontal and vertical blanking intervals.
  • the active video signal contains the encoded luminance and chrominance data for the image that is to be displayed on the screen.
  • the color burst waveform provides the decoder with a reference for decoding the chrominance information contained in the active video signal.
  • the horizontal and vertical sync pulses are control signals that signal to the decoder the start of new horizontal lines and new frames.
  • the blanking intervals signal the decoder to shut off the electron beam while it is being retraced from the right edge to the left edge of the display, or from the bottom to the top of the display.
  • Each of these signals is combined into one composite video waveform that is transmitted to the television on a one-wire connection.
  • the composite video waveform must be encoded in strict accordance with the applicable broadcast standard, such as NTSC or PAL. These standards specify important timing parameters such as the horizontal and vertical sync pulse widths, the rise and fall times of the pulses, and the position and number of cycles in the color burst. These timing parameters should not be substantially altered while encoding the waveform. Numerous problems can result from even slightly inaccurate timing. Errors in the pulse widths can lead to picture break up. Errors in the rise and fall times can make it difficult for the television receiving equipment to lock to the signals.
  • Waveform 100 adhering to the NTSC standard is illustrated in FIG. 1.
  • Waveform 100 includes a horizontal blanking interval 102 that extends between active video signals 104 and 106 (only portions of signals 104 and 106 are illustrated.
  • the duration of waveform 100 including one complete active video signal for one horizontal line of video and one horizontal blanking interval, is 63.555 ⁇ s. Stated another way, a horizontal sync pulse occurs once every 63.555 ⁇ s.
  • Active video signals 104 and 106 contain the luminance and chrominance display information for adjacent horizontal lines of video N and N+1.
  • the luminance is the monochrome component of the signal containing brightness and contrast information
  • chrominance is the color component, containing hue and saturation information.
  • the hue and saturation values are transmitted on a color subcarrier wave located within a specific frequency band (3.58 MHz) of the luminance signal. By arranging scanning frequencies to be rigidly tied to the color subcarrier frequency, the hue and saturation components of the chrominance signal are recoverable from the luminance signal.
  • the active video signals range in amplitude from 100 IRE (white) to 7.5 IRE (black).
  • An IRE unit is an arbitrary unit used to describe the amplitude characteristics of a video signal. One IRE corresponds to approximately 7.14 mV.
  • the duration of the active video signal under NTSC is 52.66 ⁇ s.
  • the active video signal starts 9.40 ⁇ s after the falling edge of the horizontal sync pulse.
  • the video signal is at the blank level so as not to display the electron beam as it sweeps back from the right to the left side of the screen.
  • the duration of blanking interval 102 is approximately 10.9 ⁇ s.
  • horizontal sync pulse 108 and color burst waveform 110 are defined within blanking interval 102 .
  • Horizontal sync pulse 104 signals the beginning of a new horizontal scan line. It is the maximum negative excursion of the composite waveform; approximately ⁇ 40.0 IRE.
  • sync pulse 108 has rigidly defined parameters.
  • the falling edge of the horizontal sync pulse signals to the decoder that a new horizontal line is starting, and the rising edge signals that the color burst waveform is coming.
  • the flat portion 112 of the waveform positioned between the end of active video signal 104 and the beginning of sync pulse 108 is at the blanking level (O IRE) and is often referred to as the “front porch.” It has a duration of 1.50 ⁇ s.
  • Color burst waveform 110 follows horizontal sync pulse 108 .
  • Color burst waveform 110 serves as a reference for the chrominance signals that are phase modulated and encoded in the active video signal (at the subcarrier frequency of 3.58 MHz). It consists of a nine-cycle sine wave at the subcarrier frequency and at a specific phase.
  • the decoder determines the proper color of the active video from the phase relationship between the color burst waveform and the modulated chrominance signals.
  • Color burst waveform 110 starts 5.3 ⁇ s after the horizontal sync pulse falling edge and ends 7.82 seconds after the sync pulse falling edge.
  • Color burst waveform 110 is positioned on a portion 114 of waveform 100 that extends from the rising edge of horizontal sync pulse 108 to the beginning of active video signal 106 .
  • This portion of waveform 100 is often referred to as the “back porch.”
  • Back porch 114 is at the blanking level and has a duration of 4.39 ⁇ s.
  • the portion 116 of back porch 114 extending between the rising edge of horizontal sync pulse 108 and the start of color burst waveform 110 is sometimes referred to as the “breezeway” and has a duration of 0.5 ⁇ s. This time slot gives the decoder time to recover and prepare for detection of the color burst waveform.
  • the final component of the composite waveform is the vertical sync, which is not illustrated in FIG. 1.
  • the vertical sync occurs every 525 lines for NTSC, as a sequence of pulses, and signals the decoder that a new frame is about to begin.
  • FIG. 2 is a table that sets forth important timing parameters for NTSC and other common video broadcast formats. These parameters include the subcarrier frequency, the color burst waveform starting and ending times, the width and frequency of the horizontal sync (HSYNC) pulse, the starting time of the active video signal and the timing of the active video image center; and the length of the front porch.
  • FIG. 3 is a table that lists constant values that are dependent on the video output format. These values include the target active lines per output field (ALO); total lines per output field (TLO); the active time per output line (ATO); and the total time per output line (TTO)
  • flicker can also be taken into account.
  • a computer-generated image there are frequently abrupt transitions from one scan line to the next. Even at the NTSC scan rate of 60 Hz, the human eye can detect these transitions and scan lines may be seen flashing individually every 1/30 of a second.
  • Vertical or flicker filtering is a technique employed to remove flicker from computer-generated video displayed on a television.
  • a vertical filter averages adjacent scan lines to soften the transition between dark and light lines and to produce lines with less sharply defined contrasts.
  • One common filter for example, produces a television line by adding one quarter of the current line, two quarters of the previous line and one quarter of the line before that. This is called a “1-2-1” or a “ ⁇ fraction (1/4) ⁇ - ⁇ fraction (1/2) ⁇ - ⁇ fraction (1/4) ⁇ ” filter.
  • Horizontal scaling has traditionally been achieved by adjusting the number of pixels encoded into the active video signal such that for a given clock rate, the pixels exactly fill the viewable image area of the television.
  • the video data must also fit within the time allotted by the applicable broadcast standard for the active video signal. Under the NTSC standard, for example, the video data can occupy a maximum of 52 ⁇ s.
  • overscan reduces the actual display time to 44-50 ⁇ s.
  • the number of pixels encoded into the composite video waveform is scaled or adjusted to fit within the viewable area. This process is also known as sample rate conversion.
  • An incoming horizontal resolution of 800 pixels, for example, must be scaled down to 640 pixels prior to encoding in order to yield an active video signal having a length of 47 ⁇ s at a clock rate of 13.5 MHz.
  • the simplest form of horizontal downscaling is pixel dropping, in which (m) out of every (n) pixels is thrown away.
  • pixels dropping is a crude method of scaling that tremendously impacts resolution and invariably introduces artifacts (blemishes, noise and other physical disruptions) into the image.
  • Another approach for accomplishing scaling is through interpolation or averaging of adjacent pixels.
  • Various algorithms for interpolation scaling are well known in the art. Scaling via interpolation or averaging improves the video quality relative to simple pixel dropping, but still involves a loss of resolution and artifact generation.
  • Video quality generally depends on the complexity of the algorithm used. Significant amounts of hardware and/or memory are required to implement the more complex algorithms.
  • the present invention is directed toward a detection device that can be provided to enable a video device such as, for example, a video encoder to detect the presence of a monitor at one or more of its output ports.
  • a termination resistance is provided at each output driver of each output port.
  • a current level is driven by the output driver and the resultant voltage is compared to a reference voltage.
  • the reference voltage is chosen such that it lies between a maximum and minimum resulting voltage depending on whether the output is terminated to a monitor.
  • the output of the comparator provides an indication of whether a monitor is connected to the output port of the video driver.
  • an apparatus for detecting the presence of a display device at the output of a video driver includes a terminating resistance connected between the output of the video driver and a ground level; an output connector coupled to the output of the video driver and configured to accept connection of a display device; and a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output; wherein an output current from the video driver results in a voltage level at the first input of the comparator, the voltage level varying depending on whether or not the display device is connected to the output connector, thereby causing the output of the comparator to indicate whether the display device is connected.
  • the apparatus further includes a second terminating resistance connected between an output of a second video driver and a ground level; a second output connector coupled to the output of the second video driver and configured to accept connection of a display device; a second comparator, having a first input connected to the output of the second video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from the second video driver results in a voltage level at the first input of the second comparator, the voltage level varying depending on whether or not the display device is connected to the output of the second video driver, thereby causing the output of the second comparator to indicate whether the display device is connected; a third terminating resistance connected between an output of a third video driver and a ground level; a third output connector coupled to the output of the third video driver and configured to accept connection of a display device; and a third comparator, having a first input connected to the output of the third video driver and a third input connected to a reference voltage signal, and an output,
  • an apparatus for detecting the type of a display device connected at the output of a video device having three video drivers includes a circuit associated with each of the video drivers for detecting the presence of a display termination at each of the video driver outputs, each circuit including: a terminating resistance connected between the output of the video driver and a ground level, an output connector coupled to the output of the video driver and configured to accept connection of a display device, and a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from the video driver results in a voltage level at the first input of the comparator, the voltage level varying depending on whether or not a display device input is connected to the output connector, thereby causing the output of the comparator to indicate whether the display device is connected; and means for detecting the comparator output of each circuit to determine whether a display device is connected to each associated video driver and to thereby determine the type of display device connected to the
  • a method for determining whether a display device is connected at the output of a video driver includes providing a terminating resistance at the output of the video driver, independently of whether a display device is connected, driving a current level at the output of the video driver, and comparing a resultant voltage at the output of the video driver with a reference voltage level to determine whether a display device is connected to the output of the video driver.
  • a method for detecting the type of a display device connected at the output of a video device having three video drivers includes driving a current level at the output of each of the three video drivers, the outputs each coupled to an output connector and a terminating resistance; measuring a voltage level at the output of each of the three video drivers; comparing the measured voltage level to a reference voltage level, wherein the reference voltage level is between a first voltage level resulting from the current across the terminating resistance, and a second voltage level resulting from the current across a combination of the terminating resistance and a resistance of a display device connected to the output connectore; and determining the type of display device connected based on the results of the comparing for each of the three video drivers.
  • FIG. 1 is a diagram of an NTSC-formatted composite video waveform
  • FIG. 2 is a table listing timing parameters for various video output formats
  • FIG. 3 is a table listing constant values that are dependent on the video output format
  • FIG. 4 is a functional block diagram of a device for converting video formats according to the present invention.
  • FIG. 5 a is a more detailed diagram of the encoder portion of the device of FIG. 2
  • FIG. 5 b is a detailed block diagram of a waveform timing and control portion of FIG. 5 a;
  • FIG. 6 is a table that summarizes external data pin assignments for multiplexed pixel input to the device of FIG. 4;
  • FIG. 7 is a table that summarizes external data pin assignments for non-multiplexed pixel input to the device of FIG. 4;
  • FIGS. 8 a - 8 b are tables depicting a register bit map for the device of FIG. 4;
  • FIGS. 9 a - 9 f are tables summarizing the function and content of the registers depicted in FIGS. 8 a - 8 b;
  • FIGS. 10 a - 10 b are tables summarizing the register settings for RGB 640 ⁇ 480 or 800 ⁇ 600 input and NTSC or PAL composite video output;
  • FIGS. 11 a - 11 b are tables summarizing the register settings for YCrCb 640 ⁇ 480 or 800 ⁇ 600 input and NTSC or PAL composite video output;
  • FIG. 12 is a diagram showing the frequency response of an upsampler incorporated in the encoder of FIG. 5 a ;
  • FIG. 13 is a diagram showing the frequency response of a low pass filter incorporated in the encoder of FIG. 5 a.
  • FIG. 14 is a schematic diagram of a circuit that can be used to implement the monitor detection feature according to one embodiment of the invention.
  • FIG. 15 is an operational flow diagram illustrating a process for determining whether a monitor is connected to the video output pin according to one embodiment of the invention.
  • FIG. 16 is a schematic diagram illustrating an example implementation of the detection device to detect the type of monitor to connect at the output of a video driver such as that found in encoder 220 according to one embodiment of the invention.
  • a functional block diagram of a device 200 for generating television-compatible video signals from YCrCb or RGB pixel data streams is set forth in FIG. 4.
  • Device 200 accepts input formats from 640 ⁇ 480 to 800 ⁇ 600 resolution, and supports worldwide video standards including NTSC-M (North America, Taiwan, Japan), PAL-B,D,G,H,I (Europe, Asia), PAL-M (Brazil), PAL-N (Uruguay, Paraguay) and PAL-Nc (Argentina).
  • device 200 is embodied in an 80-pin PQFP (Plastic Quad Flat Pack) package. As will be described in detail below, device 200 achieves horizontal scaling of input pixel data through modification of the encoder clock frequency.
  • Pixel data is input to device 200 from a computer video source such as a graphics controller at input demultiplexer (“DEMUX”) 202 .
  • the pixel data is provided to demultiplexer 202 on external pins P[23:0] at specific timing intervals and at an input pixel clock rate CLKI.
  • the timing intervals and clock rate will be discussed in detail below in connection with timing block 210 .
  • the input pixel clock rate CLKI is normally the same as the encoder clock rate CLK (the rate at which encoder 220 encodes pixels).
  • Demultiplexer 202 accepts input pixel data formatted in either the RGB or YCrCb color spaces. In YCrCb mode, demultiplexer 202 can accept either 24-bit 4:4:4 data or 16-bit 4:2:2 data can be input. In RGB mode, either 15-bit 5:5:5, 16-bit 5:6:5 or 24-bit RGB can be input. Pixel data may be input two pixels at a time, in multiplexed fashion, clocked in on both the rising and falling edges of CLKI. In this mode, demultiplexer 202 receives pixel input on twelve external pins P[11:0]. FIG. 6 is a table that summarizes the external data pin assignments P[11:0] for multiplexed pixel input.
  • red data is designated R 0 -R 7
  • green data is designated G 0 -G 7
  • blue data is designated B 0 -B 7
  • Y data is designated Y 0 -Y 7
  • Cr data is designated Cr 0 -Cr 7
  • Cb data is designated Cb 0 -Cb 7 .
  • data may be input to demultiplexer 202 one pixel at a time, clocked in on the rising edge of CLKI. In this non-multiplexed mode, demultiplexer 202 receives pixel input on twenty-four external pins.
  • FIG. 7 is a table that summarizes data pin assignments P[23:0] for non-multiplexed pixel input.
  • multiplexed Y, Cr and Cb data is input on eight external pins (P[11:4]).
  • the Cr and Cb data is input on the rising edge of CLKI, and the Y data is input on the falling edge of CLKI.
  • a Cb/Y/Cr/Y sequence begins with the first active pixel.
  • multiplexed Y, Cr and Cb data is input on twelve external pins, P[11:0]. All Cr data and half of the Cb data is input on the rising edge of CLKI, and all Y data and the remaining half of the Cb data is input on the falling edge of CLKI.
  • 4:4:4 YCrCb data is input to demultiplexer 202 , it is sub-sampled to 4:2:2 format before being fed to flicker filter/scaler 206 .
  • Sub-sampling is the process of sampling some pixel data (Cr and Cb) at a lower rate than other pixel data (Y). In the 4:2:2 format, for every two (Y) samples, one (Cb) sample and one (Cr) sample is taken.
  • non-multiplexed 24-bit RGB pixel data or 24-bit YCrCb pixel data is supplied to demultiplexer 202 , the pixel data is input one pixel at a time on the rising edge of CLKI utilizing twenty-four external pins.
  • Device 200 includes various registers for storage of important parameters, control and operating information.
  • FIGS. 8 a - b set forth a preferred register name and bit address map for device 200 . As shown in FIGS. 8 a - b , the registers occupy 8-bit (D 7 -D 0 ) addresses 6 C-D 8 . This is only one possible arrangement for the storage of the various operating parameters. Other register arrangements or storage methods could be utilized.
  • FIGS. 9 a - f define the function and content of the registers shown in FIG. 8 a - b . The registers depicted in FIGS. 8 - 9 are discussed in detail throughout this specification.
  • Register IN_MODE[2:0] defines the format of the pixels that are input to device 200 .
  • the settings of register IN_MODE[2:0] and the corresponding input pixel formats are as follows: IN MODE[2:0] Input Pixel Format 000 24-bit RGB multiplexed 001 16-bit RGB multiplexed 010 15-bit RGB multiplexed 011 24-bit RGB non-multiplexed 100 24-bit YCrCb multiplexed 101 16-bit YCrCb multiplexed 111 24-bit YCrCb non-multiplexed
  • Timing block 210 interfaces with the graphics controller of the computer or other source that is generating and delivering pixel data to demultiplexer 202 .
  • Timing block 210 generates the control signals HSYNC (horizontal sync output), VSYNC (vertical sync output), BLANK (composite blanking control) and FIELD (field control output). These control signals, along with the pixel input clock rate, are supplied by timing block 210 to the computer graphics controller and indicate to the controller when and when not to input pixel data to demultiplexer 202 .
  • the pixel input clocking rate CLKI is the same as the encoder clock rate CLK generated by clock generator 218 .
  • the HSYNC control signal provides the graphics controller with horizontal pixel synchronization information for the input pixel data. It is a pulse two CLK cycles in duration whose leading edge indicates the beginning of a new line of pixel data.
  • the period of the pulses, or the number of clocks per line between successive sync edges, is represented by the register H_CLKI.
  • H_CLKI For NTSC 640 ⁇ 480 or 800 ⁇ 600 output, H_CLKI is, respectively, 784 or 880 clocks.
  • H_CLKI is, respectively, 944 or 960 clocks.
  • Register H_BLANKI represents the number of clock pulses between the HSYNC leading edge and the first active pixel.
  • H_BLANKI is, respectively, 126 or 66 clocks.
  • H_BLANKI is, respectively, 266 or 140 clocks.
  • H_BLANKI clock cycles after the leading edge of HSYNC, the first active pixel is presented to device 200 .
  • the next H_ACTIVE pixels (640 or 800) are accepted as active pixels and used in constructing the output video waveform.
  • the VSYNC control signal provides the graphics controller with frame synchronization information for the pixel input data. It is a pulse one horizontal line time in duration whose leading edge indicates the beginning of a frame of input pixel data.
  • the period of the VSYNC pulses, or the number of vertical input lines per frame, is stored in the V_LINESI register.
  • V_LINESI is, respectively, 600 or 735 lines;
  • V_LINESI is, respectively, 625 or 750 lines.
  • the first line of data should be presented to device 200 V_BLANKI lines after the leading edge of VSYNC.
  • V_BLANKI is, respectively, 75 or 86 lines; for PAL 640 ⁇ 480 or 800 ⁇ 600 output, V_BLANKI is, respectively, 90 or 95 lines.
  • the next V_ACTIVEI lines (480 or 600) are accepted as active lines and used in construction of the output video waveform.
  • the BLANK control signal specifies to the graphics controller when input pixels should be blanked. Pixel blanking is generated based on the active area defined by the H_BLANKI, H_ACTIVE, V_BLANKI and V_ACTIVEI registers.
  • the FIELD control signal specifies to the graphics controller when to generate even and odd fields.
  • timing block 210 of the HSYNC, VSYNC and BLANK control signals is preferred. This is the “master” mode of operation of device 200 . It should be noted, however, that device 200 may operate in a “slave” mode wherein the HSYNC, VSYNC and BLANK signals are provided externally by a computer graphics controller or other device. A SLAVE input to device 200 is provided for selection of this mode. Operating in slave mode is not preferred because if the graphics controller does not properly time the HSYNC and VSYNC inputs, the output image will lose lock with the input. If the device is run in master mode, any timing errors that occur can be absorbed to some extent by FIFO 208 .
  • Color space conversion block 204 receives RGB or YCrCb pixel input data from demultiplexer 202 and converts it to the YUV color space. This conversion process is well-known to those of ordinary skill in the art; see Background section above and Keith Jack, “Video Demystified,” pages 39-61 for further detail.
  • the color-space-converted pixel data is next processed by flicker filter/vertical scaler block 206 .
  • Block 206 converts the lines of input pixel data to an appropriate number of output lines for producing a full-screen image on the television receiver.
  • Block 206 performs both overscan compensation, to ensure that the image is 100% in the vertical viewable area of the screen, and vertical filtering, to reduce the effects of picture flicker due to the interlacing of the output image.
  • the amount of flicker filtering is programmable, as the process trades off vertical resolution in order to reduce flicker.
  • block 206 filters only the vertical resolution; horizontal scaling is achieved by adjusting the encoder clock rate. No additional horizontal processing is performed on the input pixels. This allows the full horizontal resolution of the input pixels to be output. Suitable flicker filtering and vertical scaling techniques are discussed in Jack, “Video Demystified”, pages 392-394.
  • FIFO First-In First-Out shift register 208 .
  • FIFO 208 stores the YUV pixel data input by scaler 206 and releases it to encoder 220 in sequential, interlaced fashion at the encoder clock rate. Essentially FIFO 208 absorbs any differences between the input pixel clock rate and the encoder clock rate. The function and operation of FIFOs is well known to those of ordinary skill in the art.
  • Video encoder 220 receives YUV pixel data from FIFO 208 at an encoder clock rate that is generated by clock generator 218 .
  • the encoder clock frequency is sufficient to encode all input pixel data into the active video portion of the composite waveform, without alteration or physical scaling of the pixel data.
  • Crystal oscillator 214 Phase-locked loop (PLL) 216 and clock generation block 218 generate the encoder clock.
  • Crystal oscillator 214 is chosen so that the precise line rate required for television broadcast signals can be achieved. It must be within 50 ppm of the maximum desired clock rate for NTSC operation and 25 ppm for PAL operation, across a temperature range of 0° C. to 70° C. A 13.5 MHz crystal is sufficient both for NTSC and PAL video standards.
  • PLL 216 locks and synchronizes the clock to the horizontal sync rate, and has a frequency resolution sufficient to generate the precise color subcarrier frequency.
  • the encoder clock generated by block 218 is the frequency at which pixels incoming from FIFO 208 are encoded into a composite video waveform.
  • the active video portion of the composite waveform is limited to a duration of approximately 52 ⁇ s.
  • prior art encoders have utilized an encoder clock operating frequency of 13.5 MHz.
  • 640 pixels of data can be encoded during the duration of the viewable portion of the active video signal. Any incoming horizontal pixel resolutions exceeding 640 pixels, however, will not fit into the viewable portion of the active video signal at the encoding rate of 13.5 MHz.
  • clock generator 218 alters the clock rate (i.e., increases it) based on the incoming horizontal resolution so that all pixels are encoded within the viewable portion of the active video signal. Rather than being scaled through physical alteration, the pixels are effectively squeezed in time, or time-scaled. Essentially, the clock rate is increased to fit 800 pixels into the same amount of time that 640 pixels fit at a clock rate of 13.5 MHz. All incoming pixel data is encoded exactly as it was received from FIFO 208 . The video quality is no longer dependent on a scaling algorithm, which is a function of multiple pixels and may work well for some images but not for others. The shape of the output composite waveform remains the same but is generated at a higher clock rate.
  • the approach of the present invention is also advantageous in that it simplifies the task of dealing with overscan.
  • the amount of overscan generated by various televisions is not consistent or predictable; it can range from five to twenty percent. Moreover, the amount of overscan varies with the age of the television.
  • Scaling algorithms employed by prior art encoders are based on specific predictions of the amount of overscan. The amount of overscan dictates the viewable portion of the active video signal, on which the scaling algorithms are based. If the actual amount of overscan does not closely correspond to the predicted amount, the scaling algorithm will not yield a properly placed image. With the present invention, the encoder clock rate can simply be fine-tuned according to the actual amount of overscan so that the image is properly placed.
  • the color burst waveform, horizontal sync pulse and active video data are all generated at an increased rate.
  • the benefit of this method is that 800 pixels (or other horizontal resolutions) are encoded into the composite waveform without scaling; the pixel data fed to device 200 is exactly what comes out of encoder 220 .
  • the drawback is that generation of the horizontal sync pulse, color burst waveform and other timing components of the composite waveform is complicated. In prior art encoders, where the clock rate remains constant, the timing for generating the various aspects of the waveform is consistent and predictable.
  • the present invention provides an inventive method for outputting a consistent waveform meeting all required timing specifications. This method is outlined and discussed in detail herein in the detailed discussion of encoder 220 .
  • Clock generator 218 generates the encoder clock frequency fclk (or CLK) for a given input computer video signal and output television signal format according to the following equation:
  • f clk f xtal *(( PLL — INT[ 5:0]+( PLL — FRACT[ 15:0]/2 16 ))/6);
  • PLL_INT and PLL_FRACT are chosen to yield appropriate clock frequencies for given output resolutions and formats.
  • FIGS. 10 - 11 are tables that list the operating parameters for eight input (RGB or YCbCr, 640 ⁇ 480 or 800 ⁇ 600 resolution) and output (NTSC or PAL) video formats. These parameters are stored in an internal ROM and written to the appropriate registers upon selection of a particular input and output format. If, for example, the input pixel data is RGB 640 ⁇ 40, and NTSC output video is desired, PLL_INT is 12 and PLL_FRACT is 34830. Inserting these values into the above equation for determining the encoder clock rate, and assuming a crystal frequency of 13.5 MHz, yields an encoder clock frequency CLK of 28.195793 MHz.
  • the encoder clock frequency is calculated for each of the eight input/output formats set forth in FIGS. 10 - 11 and is designated at the tops of the table columns.
  • the PLL multipliers are programmable and may be adjusted by the user to yield an appropriate encoder clock frequency if input/output combinations other than the eight auto-configured ones are desired.
  • the encoder clock frequency CLK is also preferably utilized to clock the graphics controller of the computer that is supplying pixel data to device 200 .
  • This is depicted in FIG. 4 as an output clock signal CLKO from clock generator 218 .
  • FIG. 4 also depicts an input signal CLKI to clock generator 218 .
  • CLKI is the clock rate at which the graphics controller is actually outputting pixel data to device 200 , and is normally just a delayed version of CLKO.
  • Incoming pixel data is received by demultiplexer 202 on the edges of CLKI and is then re-synchronized by FIFO 208 to the internally generated encoder clock CLK.
  • Encoder clock frequency CLK Use of an internal crystal oscillator, PLL and clock generator is the preferred method for generating the encoder clock frequency CLK.
  • the encoder clock frequency could be generated externally and provided to generator 218 on input line CLKI.
  • a register EN_XCLK is provided for this option; setting EN_XCLK to 1 provides for an externally generated, rather than an internally generated encoder clock.
  • An internally generated encoder clock is strongly preferred to ensure that the output video waveform remains within the NTSC or PAL specifications. Any aberration in the encoder clock will be reflected in the output video and will detract from the quality of the image.
  • Encoder 220 receives and encodes 4:2:2 YUV data from FIFO 208 at the encoder clock rate CLK generated by generator 218 .
  • FIG. 5 a illustrates the components of encoder 220 in greater detail.
  • Video timing control block 250 of encoder 220 generates the signals for extracting the processed pixels from FIFO 208 into encoder 220 , and also generates signals for proper encoding of the processed pixels into a composite NTSC- or PAL-compliant waveform.
  • the encoder clock CLK generated by clock generator 218 clocks timing block 250 .
  • Timing block 250 performs analog video blanking in accordance with the parameters stored in the H_BLANKO, V_BLANKO, H_ACTIVE and V_ACTIVEO registers. Together these parameters define an active region where pixels will be displayed.
  • V_BLANKO defines the number of lines from the leading edge of the vertical sync pulse to the first active output line
  • V_ACTIVEO defines the number of output active lines per field.
  • H_BLANKO defines the number of output pixels from the leading edge of the horizontal sync to the first active output pixel
  • H_ACTIVE defines the number of active output pixels.
  • timing control block 250 blanks the video from the start of the horizontal sync interval through the end of the burst, as well as during the vertical sync period. This is performed in addition to blanking performed by the graphics controller itself (in response to the BLANK signal received from timing block 210 ) in order to prevent erroneous video timing generation.
  • a RESET signal may also be provided to timing block 250 to generate a timing and software reset of device 200 . If the input RESET signal is held low for a minimum of two clock cycles, timing and software resets are performed. During a timing reset, serial interface 212 is held in a reset condition (serial interface registers set to zero), the horizontal and vertical counters are set to zero, and the subcarrier phase is set to zero. In a software reset, which can also be generated by setting the SRESET register bit, all serial interface registers are set to zero except for PLL_INT, which is initialized to 0 ⁇ 0C. The appropriate registers are then initialized to auto-configuration mode 0 (NTSC 640 ⁇ 480; see FIG. 10).
  • Device 200 may be powered-down using the SLEEP input pin. If a logical 1 is presented on the SLEEP pin, a reset is generated on power-up that also generates both a timing and a software reset. After a reset condition has occurred, circuit 200 must be programmed through serial interface 212 to activate video or output one of the other preprogrammed video standards, as well as to enable the CLKO, HSYNC, VSYNC and FIELD outputs.
  • device 200 can be automatically configured for any one of eight input/output video formats. Essentially, the device may be programmed for any combination of RGB (FIG. 10) or YCbCr (FIG. 11) input, at pixel resolutions of 640 ⁇ 480 or 800 ⁇ 600, and NTSC or PAL composite video output. Device 200 can be configured to allow selection of the desired mode through an external pin or, alternatively, by appropriately setting the configuration register CONFIG[2:0]. All register parameters associated with all modes of operation are stored in an internal ROM. Upon selection of a particular input/output format, the appropriate parameters are loaded from the ROM into the appropriate registers.
  • mode 0 provides for conversion of RGB 640 ⁇ 480 pixel input to NTSC composite output.
  • the CONFIG[2:0] register is set to 000 (see FIG. 9 b ), or an appropriate signal is placed on an external pin.
  • H_ACTIVE The total number of active input and output pixels per line, H_ACTIVE, is 640.
  • the color burst begins (50% point) 150 clock cycles from the horizontal sync falling edge (HBURST_BEGIN), and ends (50% point) 224 clock cycles from the sync pulse falling edge (HBURST_END +128).
  • the line number of the first active line is 34 (V_BLANKO; the number of blank lines +1), and there are 212 active output lines/field (V_ACTIVE).
  • the number of vertical input lines (V_LINESI) is 600, there are 75 input lines between the VSYNC leading edge and the first active line (V_BLANKI) and there are 480 active input lines (V_ACTIVEI).
  • the fractional portion of the PLL multiplier (PLL_FRACT) is 34830, and the integer portion of the multiplier (PLL_INT) is 12.
  • PLL_FRACT fractional portion of the PLL multiplier
  • PLL_INT integer portion of the multiplier
  • insertion of these PLL multipliers into the encoder clock frequency equation yields an encoder clock frequency of 28.195793 MHz.
  • the multiplication factor for the sync amplitude (SYNC_AMP[7:0]) is 229, and the multiplication factor for the burst amplitude (BST_AMP[7:0]) is 118.
  • the multiplication factors MCR[7:0] and MCB[7:0] for the CR and CB components prior to subcarrier modulation are, respectively, 121 and 68.
  • the Y component multiplication factor MY[7:0] is 133
  • the subcarrier increment MSC[3 1:0] used in generating the subcarrier frequency (discussed below) is 545259520.
  • the YUV pixel data is clocked into encoder 220 at the generated encoder clock rate CLK and is first scaled for the output range of DACs 224 , 226 and 228 .
  • Multipliers 252 and 266 are provided for scaling, respectively, the Y and UV data.
  • Multiplier 252 receives the Y data input and multiplies it by a scaling factor MY
  • multiplier 266 receives U and V input and multiplies it by the scaling factors MCR and MCB.
  • MCR and MCB are multiplexed through multiplexer 264 before being input to multiplier 266 .
  • the MCR, MCB and MY scaling functions allow various colormetry standards to be achieved, and may also be used to boost the chroma to compensate for the sinx/x loss of the DACS (described in more detail below).
  • MCB ( int )(((128.0/127.0)* V 100 *0.493/(224.0* V FS *0.564*sin x )*2 6 )+0.5).
  • MCB ( int )(((128.0/127.0)* V 100 *0.493/(127.0* V FS *sin x )*2 5 )+0.5).
  • Registers MCR[7:0], MCB[7:0] and MY[7:0] are provided for storing the scaling factors.
  • FIGS. 10 and 11 list the values of MCR, MCB and MY for various input and output video format combinations.
  • the processing of the scaled Y pixel data by encoder 220 is considered first.
  • the input Y data, scaled by the scaling factor MY, is output by multiplier 252 and fed to multiplexer 256 .
  • Closed captioning and Macrovision® data may be generated by block 254 and inserted in appropriate scan lines as luminance (Y) data.
  • Y luminance
  • NTSC/PAL-M closed captioning data is encoded on scan line 21 and extended data is encoded on scan line 284 .
  • PAL-B D, G, H, I, N, Nc, encoding takes place on scan lines 22 and 335. Pixel input data is ignored during CC encoding.
  • CCF 1 B 1 , CCF 1 B 2 , CCF 2 B 1 and CCF 2 B 2 provide the CC data and register bits ECCF 1 and ECCF 2 enable display of the CC data. Further information about these registers is provided in the programming detail table set for in FIG. 9 c .
  • Closed-caption (CC) encoding is performed according to the standards of the National Captioning Institute. Further detail about closed-captioning may be found in Jack, “Video Demystified”, pages 213-231. Macrovision® is a copy protection feature that may be supported by device 200 . Further detail may be found in Jack, “Video Demystified”, pages A-24 to A-25.
  • Sync processor 260 generates sync signals that are added, at the required timing intervals, to the scaled luminance data.
  • a horizontal line counter is incremented in accordance with an encoder clock that is clocked at a specific and constant frequency under all conditions.
  • a consistent and predictable horizontal sync waveform that meets the appropriate specification is generated simply by outputting appropriate waveform values at particular horizontal line counts. All other timing signals (blanking interval, color burst waveform, vertical sync pulse) are generated in the same manner, that is, as simple decodes of the horizontal line counter.
  • the horizontal sync pulse for example, must be 4.7 ⁇ s in width under the NTSC standard.
  • Prior art encoders traditionally utilize a 13.5 MHz clock frequency under all conditions. Hence, clock count zero will always correspond to the beginning of the horizontal sync pulse, and some other clock count (x), 4.7 ⁇ s later, will always correspond to the end of the sync pulse.
  • the proper waveform values are simply inserted into the luminance data stream at the proper times. Everything is consistent and repeatable, and the counts or timing markers always remain the same, because there is always one clock rate.
  • encoder 220 effectively time-scales the incoming horizontal pixel data by using a variable encoder clock frequency that tracks the incoming horizontal pixel resolution. While this has the advantage of horizontally scaling the input pixel data without averaging or other loss of resolution, it has a drawback in that the line counts at which sync or other waveform values should be generated no longer have a predictable, linear relation to the clock count. Particular counts are no longer associated with particular waveform values. The shape of the composite video waveform and the timing of the sync pulses, color burst, etc., however, must remain the same regardless of the clock conditions under which the waveform is generated. The present invention addresses this problem.
  • waveform values appropriate for a range of clock rates are stored in the upper address bits 302 of a ROM 300 .
  • these values include falling and rising edge waveforms, and the sync pulse width in clock pulses.
  • the encoder clock rate CLK generated by clock generator 218 which is a function of the input and output video formats selected by the user, is scaled to a digital value by range selector 306 . This value corresponds to a particular group of waveform values stored the upper addresses 302 of ROM 300 . These waveform values are matched with line counts associated with that particular encoder clock rate.
  • the variable encoder clock CLK also clocks horizontal line counter 308 .
  • ROM 300 provides appropriate waveform values to sync processor 260 (or an appropriate register).
  • Sync processor 260 outputs the appropriate waveform values to adder 258 to be added to the luminance data stream at the proper location. Hence, a consistent horizontal sync pulse is generated independent of the actual clock rate.
  • the beginning of the horizontal sync pulse corresponds to the reset of line counter 308 .
  • ROM 300 provides the appropriate sync fall waveform values from upper addresses 302 to processor 260 , which inserts the values into the luminance data.
  • the sync waveform must meet strict rise and fall times.
  • the fall time for the NTSC horizontal sync pulse for example, is 138 ns. As the encoder clock rate is increased, it follows that more clock counts will be required to encode the fall waveform within the same 138 ns.
  • the duration (in clock pulses) of the horizontal sync pulse that corresponds to the encoder clock rate is loaded from ROM 300 into the horizontal sync width register (HSYNC_WIDTH[7:0]).
  • HSYNC_WIDTH horizontal sync width register
  • a clock rate of 28.195793 MHz is generated by generator 218 and a horizontal sync pulse width HSYNC_WIDTH of 132 clock counts is required.
  • the greater the encoder clock frequency the longer the width of the horizontal sync pulse in clock counts must be in order to maintain the same duration of 4.7 ⁇ s.
  • Sync pulse widths corresponding to other input resolution and output format combinations are listed in FIGS. 10 and 11.
  • the sync pulse amplitude multiplier SYNC_AMP is loaded into a register by ROM 300 and is provided to sync processor 260 .
  • SYNC_AMP is 229 ; for PAL output, SYNC_AMP is 240 .
  • Sync processor 260 also inserts vertical sync pulses into the luminance data, where appropriate.
  • the duration of the vertical sync is selectable as either 2.5 or 3 lines by register bit VSYNC_DUR.
  • the luminance/sync data is filtered through 2X-upsampling filter 262 .
  • Upsampler 262 alleviates external filtering requirements by moving significant sampling alias components above 19 MHz and reducing the sinx/x aperture loss.
  • the frequency response of upsampler 262 is illustrated in FIG. 12.
  • the upsampled luminance data is supplied to output mode selector 286 in a number of combinations: it is supplied directly to selector 286 on line 290 in component Y format; it is passed through luma delay circuit 282 and supplied as delayed luminance data on line 291 (delaying the luminance data is sometimes desirable as the chrominance video path has a longer delay than the luminance video path); it is added to composite chrominance data via adder 284 and supplied to selector 290 on line 292 as a composite video waveform; and the delayed luminance data output from delay 282 is also added to the chrominance data via adder 285 to output a delayed composite video waveform to mode selector 286 on line 293 .
  • UV data it is input to multiplier 266 where it is scaled and converted to U/V data by scaling factors MCR and MCB, as described above.
  • the U/v data is then fed to multiplexer 270 .
  • Burst processor 268 adds the color burst waveform to the chrominance data at appropriate locations.
  • Color burst waveform values appropriate for a range of clock rates are stored in the upper address bits 302 of ROM 300 .
  • the encoder clock rate CLK generated by clock generator 218 which is a function of the input resolution and output format selected by the user, is scaled to a digital value by selector 306 that corresponds to an upper address bit of ROM 300 .
  • selector 306 For each clock frequency range, ROM 300 has stored appropriate burst waveform values corresponding to horizontal line counts generated by counter 308 . These waveform values are provided to burst processor 268 (or an appropriate register) at the proper line counts.
  • Burst processor 268 outputs the burst waveform data to multiplexer 270 to be inserted into the chrominance data stream at the proper locations.
  • a consistent and accurately timed color burst waveform is generated independent of the encoder clock rate, which is variable.
  • the chrominance and color burst information is generated at a subcarrier frequency required by the desired broadcast standard.
  • a subcarrier increment or scaling factor is used to generate the desired subcarrier frequency and is calculated by the following equation:
  • f SC is the subcarrier frequency
  • f CLK is the encoder clock rate
  • H_CLKO is the number of output clock pulses per horizontal line.
  • MSC any desired subcarrier frequency may be generated to enable the generation of any desired video standard.
  • the discrete-time oscillator divides down the internal clock rate by a factor of MSC to generate the subcarrier frequency.
  • FIGS. 10 - 11 list subcarrier increments (MSC) for various input and output format combinations.
  • the subcarrier increment must be programmed into the MSC register or loaded via serial interface 212 before the subcarrier can be enabled.
  • the subcarrier DTO Discrete Time Oscillator
  • Burst processor 268 generates the burst waveform as a function of the subcarrier frequency increment (MSC), the burst horizontal begin and end register settings (HBURST_BEGIN and HBURST_END), the burst rise and fall waveforms stored in ROM 300 , and the burst amplitude (BST_AMP).
  • MSC subcarrier frequency increment
  • HBURST_BEGIN and HBURST_END the burst rise and fall waveforms stored in ROM 300
  • BST_AMP burst amplitude
  • MSC subcarrier frequency increment
  • HBURST_BEGIN and HBURST_END the burst rise and fall waveforms stored in ROM 300
  • BST_AMP burst amplitude
  • ROM 300 loads the values corresponding to particular clock frequencies into the appropriate registers
  • the chrominance U/V data including the color burst waveform, if applicable, is fed from multiplexer 270 to converter 272 where it is converted back to 4:4:4 format (to equal the luminance sampling frequency).
  • the UV components are then passed through a low pass filter 274 having the frequency response illustrated in FIG. 13.
  • the U/V components are filtered through 2X-upsampler 276 , which has the filter response illustrated in FIG. 12.
  • the filtered and upsampled U/V data is supplied directly to output mode selector 286 as U and V component data on line 295 , and is also passed through modulator and mixer 278 to yield a quadrature amplitude modulated (QAM) chrominance (C) signal.
  • QAM quadrature amplitude modulated
  • C chrominance
  • the QAM C signal is generated by multiplying the U data by sine and the V data by cosine (or vice-versa), and adding the two together to yield a modulated 3.58 MHz QAM signal.
  • the upsampled and modulated chrominance (C) data is supplied to output mode selector 286 directly on line 294 in component format; in combination with the Y data via adder 284 on line 292 (composite video); and in combination with the delayed Y via adder 284 on line 293 (luma-delayed composite video).
  • Output mode selector 286 generates output video signals on three lines 287 , which are connected to output multiplexer (MUX) 288 .
  • Registers (LUMADLY) are provided to control the amount of delay for the delayed luma, which can be from 0 to 3 clocks.
  • any of the four generated outputs can be muxed to any of the three output DACs 224, 226, 228 by setting registers OUT_MUXA, OUTMUX_B and OUT_MUXC.
  • DACs 224 , 226 and 228 are designed to drive standard video levels into a combined RLOAD of 37.5 ⁇ (doubly terminated 75 ⁇ ).
  • the DAC output response is a discrete waveform with a typical sinx/x response. For composite video output, this results in a slightly lower than desired burst and chroma amplitude value.
  • the burst and chroma gain as programmed by the BST_AMP and MCR/MCB register values can be boosted by x/sinx.
  • the sinx/x amplitude reduction is calculated by:
  • an output filter could be used to boost the frequency response to a slightly higher level.
  • Serial interface 212 is a two-wire serial interface that is provided to program the registers in device 200 if the pre-programmed modes are not used. Every byte put onto the SID (Serial Interface Data) line should be 8 bits long (MSB first), followed by an acknowledge bit, which is generated by the receiving device. Each data transfer is initiated with a start condition and ended with a stop condition. The first byte after a start condition is always the slave address byte. If this is the device's own address, the device will generate an acknowledge by pulling the SID line low during the ninth SIC (Serial Interface Clock) pulse, then accept the data in subsequent bytes (auto-incrementing the subaddress) until another stop condition is detected.
  • SID Serial Interface Data
  • R/W read/write
  • the subaddress is considered valid only if the R/W bit is low.
  • Serial interface 212 is operable with either 3.3V or 5V input levels.
  • Comparator 310 receives inputs from Internal Voltage Reference 312 (1.2V) and the Full Scale Adjust (FSADJUST) current source, and sets all of the DACs to track the reference current.
  • the output of comparator 310 is also fed to a COMP pin which must be decoupled to the closest VAA pin, typically with a 0.1 ⁇ F ceramic capacitor.
  • the capacitor should be as close as possible to the COMP and VAA pins.
  • a surface-mount capacitor is preferred for minimal lead inductance, which degrades the noise rejection of the circuit.
  • VREF and VBIAS should also be decoupled to ground with a 0.1 ⁇ F capacitor.
  • the various aspects and features of the invention allow computers such as, for example, personal computers and other computing devices to display video and image data to both non-interlaced (computer) monitors, as well as NTSC TV receivers. Because the device can be connected to a number of different monitors and receivers, it is beneficial to determine whether a monitor is connected to the encoder output on power up of the device, and if so, which type of monitor is connected. This allows the appropriate software to be loaded and run for the given type of monitor connected. As such, another aspect of the invention provides a system and method for determining whether and what type of monitor is connected to the output of the TV encoder, thereby giving the processor information that can be used to load and execute the appropriate software routines.
  • a terminating resistor is provided at the output of the DAC such that the output is always terminated regardless of whether a display device is connected.
  • the impedance presented by the terminating resistor is equal to the impedance provided by a monitor that would typically be connected to the output of the DAC.
  • the DAC drives a parallel impedance. This ensures that the output signal will never be driving a high impedance, or open circuit, which could potentially cause the signal to be driven to undesirably high voltages. As a result of this configuration, an unconnected output is still driving an impedance as provided by the terminating resistor.
  • Another aspect of the invention which determines the type of display device connected, takes advantage of the fact that the terminating resistance changes depending on whether a display device is connected to the output of the DAC.
  • the display device When a display device is connected to the output of the DAC, the display device provides an impedance in parallel to that providing by the terminating resistance. Therefore, the output impedance driven by the DAC decreases where a television, monitor or other display device is connected. More specifically, in one example application, if the terminating resistor provides an impedance equal to that of the connected monitor, the effective termination resistance seen by the device when a monitor is connected is half that of the terminating resistance seen by the DAC with no monitor connected.
  • FIG. 14 is a schematic diagram of a circuit that can be used to implement the monitor detection feature according to one embodiment of the invention.
  • a terminating resistor R 1 is provided at the output of DAC 404 .
  • R 1 is preferably equal to the termination resistance of the typical monitor that might be connected to video output 406 .
  • alternative values for Ri can be chosen and implemented.
  • the resistance of RI is selected as 75 ohms.
  • a current level is driven by DAC 404 to video output 406 , a voltage level is created.
  • the voltage level is a function of the current and any resistance seen at the output which includes a combination of the resistance provided by terminating resistor RI and a monitor, if connected. As provided by ohms law:
  • the voltage V at the output of DAC 404 is equal to the current level I output by the DAC times the resistance presented by R 1 and the display device (if present). If the DAC output is unterminated, the resistance R simply equals R 1 . If, on the other hand, the output is terminated to a monitor or other display device, in the embodiment where the terminating resistor is equal to the resistance of the monitor, the resistance provided by the output is equal to ⁇ fraction (1/2) ⁇ R. Because the resistance in this example embodiment can change by a factor of 2, so can the resultant voltage at the output of DAC 404 , depending on whether a display device is present.
  • comparator 408 can be driven by a reference voltage between the range of voltages that can be seen by DAC 404 for a given current level in both the terminated and unterminated states (e.g., with and without a display device being connected). The output of comparator then provides an indication of whether a monitor or other display device is connected to video output pin 406 .
  • the output of the comparator 408 can be configured to provide a 1 or 0 for example for digital applications, or a positive or negative signal or other level for analog applications.
  • FIG. 15 is an operational flow diagram illustrating a process for determining whether a monitor is connected to the video output pin according to one embodiment of the invention. Specifically, FIG. 15 discusses the process in terms of the embodiment illustrated in FIG. 14. Referring now to FIGS. 14 and 15, in a step 412 , DAC 404 outputs a current level. In alternative embodiments, DAC 404 could output a voltage level instead of a current level. However, as would be apparent to one of ordinary skill in the art after reading this disclosure, the comparison instead of being a voltage comparison in parallel with the termination resistance, would be a current comparison done in series.
  • reference voltage VREF is applied to comparator 408 .
  • reference voltage VREF is selected to lie between the maximum and minimum voltage levels expected at the output of the DAC depending on whether a monitor is connected to output pin 406 . Under ideal conditions, the maximum voltage is
  • V I*R 1 *R 2/ R 1 +R 2
  • VREF is selected as:
  • the reference voltage VREF is selected as substantially midway between the maximum voltage level as seen by the DAC 404 when a monitor is not connected, and the minimum voltage provided when a monitor is connected to pin 404 .
  • the reference voltage VREF is selected at the midway point between these two extremes, the effects of noise on the system can be minimized. For example, consider a scenario in which DAC 404 drives a current of 100 milliamps (mA), the impedance of a typical display device is 75 ohms, and R 1 is selected as 75 ohms.
  • voltage reference VREF is chosen as approximately 5.625 volts, or midway between the minimum expected voltage of 3.75 volts and the maximum expected voltage of 7.5 volts.
  • a step 416 the output level of comparator 408 is read to determine whether a monitor is connected to pin 406 .
  • the output can be selected as being positive when the DAC voltage is greater than the reference voltage VREF.
  • the output of comparator 408 is positive when a monitor is not connected to pin 406 and negative if a monitor is connected to pin 406 . Therefore, in a step 412 , the device can use this level to determine whether a monitor is connected to pin 406 .
  • the output of comparator 408 can be provided to a register or other storage location such that the output can be polled or read by a processor at a given point in time or at a predetermined polling interval.
  • the process described above can be implemented at a point in time when it does not interfere with the video signal and periodically read by a processor at a point in time that is most convenient for the processor.
  • the process of testing for the connection of the monitor as described above is performed during the vertical blanking interval (VBI) or during the overscan time to minimize or eliminate the impact of the current level on an output signal.
  • VBI vertical blanking interval
  • the process described above can be performed in two to three clock cycles such that they can be completed within the VBI or the overscan time interval.
  • a composite video monitor typically has one composite video input.
  • an S video monitor utilizes two video components: luminance; and chrominance.
  • an RGB monitor utilizes three components and therefore three video outputs, one for each of the corresponding RGB components.
  • the detection device can be implemented for each of the output DACs 404 .
  • the detection circuitry can be provided at the output of each DAC 224 , 226 , and 228 .
  • FIG. 16 is a schematic diagram illustrating an example implementation of the detection device to detect the type of monitor to connect at the output of a video driver such as that found in encoder 220 according to one embodiment of the invention. As illustrated in FIG.
  • the circuitry which includes comparator 408 , reference voltage signal VREF and terminating resistance R 1 is provided for each of DACs 222 , 224 and 226 .
  • the outputs of comparators 408 for each of these DACs can be made available to a processor, state machine, logic circuitry, analog circuitry or other device to determine whether a monitor is connected, and if so, whether the monitor is, for example, an RGB monitor, a composite video monitor or an S-video monitor.
  • FIG. 17 is an operational flow diagram illustrating a process for detecting whether a monitor is connected to the output of a device such as encoder 220 and if so, determining which type of monitor is connected in accordance with one embodiment of the invention.
  • the comparator output for each of comparators 408 is obtained.
  • the system detects the presence of a monitor connection for each DAC 224 , 226 and 228 . If a monitor connection is provided for each of the three DACs 224 , 226 and 228 , the system determines that it is an RGB monitor connected to encoder 220 . This is illustrated by steps 512 and 514 .
  • the system determines, based on the output of the comparators 408 , that a monitor connection is only provided for two of the DACs 224 , 226 , the system determines that an S-video monitor is connected. This is illustrated by steps 516 and 518 .
  • the system determines that a monitor connection is provided only at one DAC 224 , then the system determines that the monitor connected is a composite video monitor.
  • the presence of a monitor connection at one DAC is not detected in step 520 , this indicates that no monitor is present as illustrated by step 524 .
  • the detection device is implemented with an encoder such as encoder 220 or other integrated device
  • the detection circuitry can be implemented on-chip.
  • additional pin-outs are not required for the termination resistance and the comparator and other detection circuitry.
  • the termination resistance RI and comparators 408 can be provided on-chip and the comparator output can be provided back to an on-chip processor or to a separate chip via an existing bus configuration.
  • additional connections or pin-outs are not required. This is advantageous, especially in situations where device size or pin out availability is limited.

Abstract

An apparatus and method for detecting the presence of a display device at the output of a video driver utilizes a terminating resistance connected between the output of the video driver and a ground level. A current is driven by the video driver, resulting in a voltage level at the output. A comparator compares the resultant voltage to a reference voltage signal to determine whether the resultant voltage is above or below a predefined threshold. The threshold is chosen as lying between an anticipated resultant voltage for a video driver having a display device connected thereto and an anticipated resultant voltage for a video driver without a display device connected thereto.

Description

    FIELD OF THE INVENTION
  • The present invention relates generally to video signals and, more particularly, to a method and apparatus for detecting whether a video output is connected to a monitor or other device. [0001]
  • BACKGROUND OF THE INVENTION
  • The expanding use of computers for generation and control of entertainment content is giving rise to a need for a means to effectively display computer video output on a standard television. In the home, the television is usually centrally and comfortably located and typically has a larger display than that of a computer monitor, making it attractive for the display of content such as computer video games, Internet web sites and the like. In a business setting, the larger display area of a television is inviting for the display of content such as computer-generated presentations, slides and the like. The video signal format and display generated by a computer, however, differs significantly from the display format and scheme of a television. Moreover, computer monitors are constantly being improved to permit higher resolutions and display of more image information content. Computer users have grown accustomed to these higher resolutions, and wish to duplicate this experience on their televisions. Televisions, however, typically have lower resolutions and utilize a video signal format that complies with stringent video broadcast standards developed nearly fifty years ago. These differing video signal formats and display characteristics have made attainment of an acceptable means for displaying a computer video signal on a television very elusive. [0002]
  • In order to effectively display a computer video signal on a television screen, the computer video signal must be transformed or converted into a television-compatible video signal. This is a complex process involving many issues. While the present invention deals with a particular aspect of this process, stretching or shrinking (“scaling”) horizontal lines of computer video data to fit within the horizontal display area of a television, it is useful to review the fundamental steps of a conventional conversion process. These steps include color space conversion; scan rate conversion; horizontal and vertical scaling, and encoding of the composite waveform in accordance with the desired television signal format. [0003]
  • Color space conversion is performed because computers and televisions generally use different “color spaces” for representation and storage of video color data. A color space is a mathematical representation of a set of colors. Computers typically use the RGB (Red, Green, Blue) color space, while televisions use color spaces based on luminance and chrominance values (the YUV and YCbCr color spaces, for example). The RGB color space is a digital format widely used in computer graphics and imaging. Red, green and blue are the primary additive colors; components of these primary colors can be combined to form any desired color. The RGB color space is the most prevalent choice for computer graphics frame buffers (the memory used to hold images for display) because computer monitors use red, green and blue phosphors to create the desired color. Consequently, using the RGB color space simplifies the architecture and design of the system. [0004]
  • The RGB color space, however, is not always the best choice when dealing with display of “real world” images. The human eye does not always perceive color as a simple addition of red, blue and green, but rather, sometimes as color difference signals. Moreover, processing an image in the RGB color space is not very efficient. In order to modify the intensity or color of a given pixel, for example, all three RGB values must be read from the frame buffer, the intensity or color calculated and the modifications performed, and the new RGB values calculated and written back to the frame buffer. For these and other reasons, broadcast and television standards generally use color spaces employing luminance and chrominance video signals. Luminance, or luma, refers to the black-and-white information in the video signal and chrominance, or chroma, refers to the color information in the video signal. The YUV, YIQ and YCbCr color spaces are luminance and chrominance based. [0005]
  • The YUV color space is the basic analog format used under the NTSC (National Television Standards Committee) composite color video standard, which is used in North America and other parts of the world, as well as under the PAL (Phase Alternation Line) and SECAM (Sequential Couleur Avec Memoire) standards, which are used in Europe and elsewhere. The YUV space is comprised of luma (Y) and chroma (U and V) components. The luma component is made up of portions of all three RGB color signals, and the chroma components are color difference signals developed by subtracting the luma component from the blue signal (U) and from the red signal (V). A set of basic equations is used to convert between the RGB and YUV color spaces: [0006] Y = 0.299 R + 0.587 G + 0.114 B ; U = - 0.147 R - 0.289 G + 0.436 B = 0.492 ( B - Y ) ; and V = 0.615 R - 0.515 G - 0.100 B = 0.877 ( R - Y ) .
    Figure US20020005840A1-20020117-M00001
  • The prime (′) symbols in the above equations indicate that the RGB values are gamma-corrected. Gamma correction is necessary to compensate for the nonlinear characteristics of displays using phosphors, such as cathode ray tubes (CRTs). In CRT displays, a small change in voltage when the voltage level is low produces a particular change in the output display brightness level, but this same small change in voltage at a higher voltage level will not produce the same magnitude of change in the brightness output level. This effect, or the difference between what should have been measured and what was measured, is known as gamma. Gamma correction adjusts the intensity output of the CRT so that it is roughly linear. [0007]
  • The YUV format is also advantageous in that a black and white display can be driven with just the Y component. For digital RGB values with a range of zero to 255, Y has a range of zero to 255, U a range of zero to ±112 and V a range of zero to ±157. [0008]
  • The YIQ and YCbCr color spaces are derived from the YUV color space and are optionally used by the NTSC composite color video standard. In the YIQ color space, the “I” stands for “in-phase” and the “Q” for “quadrature”, which is the modulation method used to transmit the color information. I and Q are modulated (one modulator is driven by the subcarrier at sine phase; the other modulator is driven by the subcarrier at cosine phase) and added together to form the composite chrominance signal. For digital RGB values with a range of zero to 255, Y has a range of zero to 255, I has a range of zero to ±152, and Q has a range of zero to ±134. The YCbCr color space is a digital component format developed as part of Recommendation ITU-R BT.601 during the development of a worldwide digital component video standard. It is essentially a scaled and offset version of the YUV color space. Y is defined to have a nominal range of 16 to 235; and Cb and Cr are defined to have a range of 16 to 240, with 128 equal to zero. [0009]
  • Another fundamental step in conversion of computer video signals to television video signals is scan rate conversion. Both computers and televisions utilize CRTs having electron guns that produce an electron beam. The beam is attracted to phosphors on the face of the CRT, activating the phosphors and causing them to emit red, green or blue light. The electron beam begins at the top left of the CRT and scans from left to right across the screen, illuminating pixels (which are comprised of the activated phosphors) in the process. Hence, the electron beam is effectively drawing horizontal lines of video, one pixel at a time. [0010]
  • The horizontal scan rate is the number of horizontal lines drawn per second by the electron beam. The horizontal scan rate of a computer monitor is often twice as fast as that of a television monitor. The horizontal scan rate of a computer monitor is typically in the range of 24 to 65 kHz (24,000 to 65,000 horizontal lines drawn per second); and workstations used in business and industry may have horizontal scan rates exceeding 100 kHz. The horizontal scan rate of a television monitor, by contrast, is only about 15 kHz (15,000 horizontal lines drawn per second). Television broadcast standards specify exact horizontal scan rates that must be strictly adhered to; the NTSC horizontal scan rate is 15.75 kHz and the PAL horizontal scan rate is 15.625 kHz. [0011]
  • When the electron beam reaches the bottom of the display, one frame of video has been completed. The number of frames completed by the beam per second, or the number of times that the frame has been “refreshed”, is the vertical scan, frame or “refresh” rate. Again, the vertical scan rates of computer monitors are usually much higher than those of television monitors: a television monitor has a frame rate of approximately 30 Hz, while computer monitors have refresh rates of 75 Hz or more. [0012]
  • A VGA (Video Graphics Array, a widely used computer display standard) source, such as a computer, scans out a video display in a “noninterlaced” fashion. That is, all of the lines in a frame are scanned out sequentially, one right after the other. The entire image is drawn on the screen in one pass from top to bottom. [0013]
  • A television display, by contrast, uses an “interlaced” format. Each frame of video is scanned out as two fields that are separated temporally and offset spatially in the vertical direction. Each field is drawn on the screen consecutively and in alternating fashion—first one field, then the other. Essentially, an image is drawn in two top-to-bottom passes: the first pass draws the “odd” lines (the first field) and the second pass draws the “even” lines (the second field). It follows that the number of lines in a field is one-half the number of lines in a frame. In NTSC, there are 262.5 lines per field (525 lines per frame), and in PAL, there are 312.5 lines per field (625 lines per frame). [0014]
  • An interlaced television display format is utilized because of the relatively slow frame rate of a television, which as mentioned above, is approximately 30 Hz. A television screen updated at only 30 frames per second will cause noticeable flicker, that is, the image will begin to fade before the next one is drawn on to the screen. Flicker is similar to the effect produced by an old fluorescent light fixture. By using two interlaced fields, each containing one-half of the information that makes up the frame and each field being drawn on the screen consecutively, the field update rate is 60 fields per second. At this higher rate, the eye blends everything together into a smooth, continuous motion. Again, under the television broadcast standards, there are exact field rates that must be strictly adhered to: 59.94 Hz for NTSC and 50 Hz for PAL. [0015]
  • The RGB pixel data, after being converted into the YUV, YCbCr or YIQ color space, must be encoded into a composite color video waveform recognizable by the television. The composite waveform contains a number of specifically placed and timed video and control signals. These include the active video signal; the color burst waveform; the horizontal and vertical sync pulses; and the horizontal and vertical blanking intervals. The active video signal contains the encoded luminance and chrominance data for the image that is to be displayed on the screen. The color burst waveform provides the decoder with a reference for decoding the chrominance information contained in the active video signal. The horizontal and vertical sync pulses are control signals that signal to the decoder the start of new horizontal lines and new frames. The blanking intervals signal the decoder to shut off the electron beam while it is being retraced from the right edge to the left edge of the display, or from the bottom to the top of the display. Each of these signals is combined into one composite video waveform that is transmitted to the television on a one-wire connection. [0016]
  • The composite video waveform must be encoded in strict accordance with the applicable broadcast standard, such as NTSC or PAL. These standards specify important timing parameters such as the horizontal and vertical sync pulse widths, the rise and fall times of the pulses, and the position and number of cycles in the color burst. These timing parameters should not be substantially altered while encoding the waveform. Numerous problems can result from even slightly inaccurate timing. Errors in the pulse widths can lead to picture break up. Errors in the rise and fall times can make it difficult for the television receiving equipment to lock to the signals. [0017]
  • A composite [0018] color video waveform 100 adhering to the NTSC standard is illustrated in FIG. 1. Waveform 100 includes a horizontal blanking interval 102 that extends between active video signals 104 and 106 (only portions of signals 104 and 106 are illustrated. The duration of waveform 100, including one complete active video signal for one horizontal line of video and one horizontal blanking interval, is 63.555 μs. Stated another way, a horizontal sync pulse occurs once every 63.555 μs.
  • Active video signals [0019] 104 and 106 contain the luminance and chrominance display information for adjacent horizontal lines of video N and N+1. The luminance is the monochrome component of the signal containing brightness and contrast information, and chrominance is the color component, containing hue and saturation information. The hue and saturation values are transmitted on a color subcarrier wave located within a specific frequency band (3.58 MHz) of the luminance signal. By arranging scanning frequencies to be rigidly tied to the color subcarrier frequency, the hue and saturation components of the chrominance signal are recoverable from the luminance signal. The active video signals range in amplitude from 100 IRE (white) to 7.5 IRE (black). An IRE unit is an arbitrary unit used to describe the amplitude characteristics of a video signal. One IRE corresponds to approximately 7.14 mV. The duration of the active video signal under NTSC is 52.66 μs. The active video signal starts 9.40 μs after the falling edge of the horizontal sync pulse.
  • During the horizontal blanking interval, the video signal is at the blank level so as not to display the electron beam as it sweeps back from the right to the left side of the screen. The duration of blanking interval 102 is approximately 10.9 μs. Defined within blanking interval [0020] 102 is horizontal sync pulse 108 and color burst waveform 110. Horizontal sync pulse 104 signals the beginning of a new horizontal scan line. It is the maximum negative excursion of the composite waveform; approximately −40.0 IRE. As with the other portions of the waveform, sync pulse 108 has rigidly defined parameters. It has a length of 4.70 μs, a drop time (from −40.0 IRE to 0 IRE) of 138 ns and a rise time of 137 ns. The falling edge of the horizontal sync pulse signals to the decoder that a new horizontal line is starting, and the rising edge signals that the color burst waveform is coming. The flat portion 112 of the waveform positioned between the end of active video signal 104 and the beginning of sync pulse 108 is at the blanking level (O IRE) and is often referred to as the “front porch.” It has a duration of 1.50 μs.
  • [0021] Color burst waveform 110 follows horizontal sync pulse 108. Color burst waveform 110 serves as a reference for the chrominance signals that are phase modulated and encoded in the active video signal (at the subcarrier frequency of 3.58 MHz). It consists of a nine-cycle sine wave at the subcarrier frequency and at a specific phase. The decoder determines the proper color of the active video from the phase relationship between the color burst waveform and the modulated chrominance signals. Color burst waveform 110 starts 5.3 μs after the horizontal sync pulse falling edge and ends 7.82 seconds after the sync pulse falling edge.
  • [0022] Color burst waveform 110 is positioned on a portion 114 of waveform 100 that extends from the rising edge of horizontal sync pulse 108 to the beginning of active video signal 106. This portion of waveform 100 is often referred to as the “back porch.” Back porch 114 is at the blanking level and has a duration of 4.39 μs. The portion 116 of back porch 114 extending between the rising edge of horizontal sync pulse 108 and the start of color burst waveform 110 is sometimes referred to as the “breezeway” and has a duration of 0.5 μs. This time slot gives the decoder time to recover and prepare for detection of the color burst waveform.
  • The final component of the composite waveform is the vertical sync, which is not illustrated in FIG. 1. The vertical sync occurs every 525 lines for NTSC, as a sequence of pulses, and signals the decoder that a new frame is about to begin. [0023]
  • FIG. 2 is a table that sets forth important timing parameters for NTSC and other common video broadcast formats. These parameters include the subcarrier frequency, the color burst waveform starting and ending times, the width and frequency of the horizontal sync (HSYNC) pulse, the starting time of the active video signal and the timing of the active video image center; and the length of the front porch. FIG. 3 is a table that lists constant values that are dependent on the video output format. These values include the target active lines per output field (ALO); total lines per output field (TLO); the active time per output line (ATO); and the total time per output line (TTO) [0024]
  • The final fundamental issue, horizontal and vertical scaling, arises from the differences in display resolution between computer and television monitors. Resolution is the basic measurement of how much information is on the screen. Resolution is described by a first number representing horizontal resolution (total number of pixels in one horizontal scan line) and a second number representing vertical resolution (total number of horizontal lines down the screen). The typical resolution of a computer monitor is, on the lower end of the scale, 800×600, and may range upwards of 1280×1024. The standard NTSC resolution, by contrast, is only 640×480. Hence, vertical scaling is the process of making the 600 lines (or more) displayed by a computer fit within the television vertical line resolution; and horizontal scaling is the process of making the 800 pixels (or more) per horizontal line displayed by a computer fit within the television horizontal resolution. [0025]
  • In addition to resolving resolution differences, horizontal and vertical scaling helps to counter overscan in the television display. The electron gun in a television set typically overscans the edges of the viewable display area by five to fifteen percent, causing the image to bleed off of the edges in all directions. Overscan is not typically a significant problem when broadcast or recorded signals are displayed on the television, because the viewer usually has no knowledge of the source material. Overscan can, however, pose serious problems when computer-generated video data is displayed on a television. Critical information, such as menus or tool bars, for example, may be lost outside of the television viewable area. [0026]
  • In determining an appropriate amount of vertical filtering or scaling, flicker can also be taken into account. In a computer-generated image, there are frequently abrupt transitions from one scan line to the next. Even at the NTSC scan rate of 60 Hz, the human eye can detect these transitions and scan lines may be seen flashing individually every 1/30 of a second. Vertical or flicker filtering is a technique employed to remove flicker from computer-generated video displayed on a television. A vertical filter averages adjacent scan lines to soften the transition between dark and light lines and to produce lines with less sharply defined contrasts. One common filter, for example, produces a television line by adding one quarter of the current line, two quarters of the previous line and one quarter of the line before that. This is called a “1-2-1” or a “{fraction (1/4)}-{fraction (1/2)}-{fraction (1/4)}” filter. [0027]
  • Horizontal scaling has traditionally been achieved by adjusting the number of pixels encoded into the active video signal such that for a given clock rate, the pixels exactly fill the viewable image area of the television. The video data must also fit within the time allotted by the applicable broadcast standard for the active video signal. Under the NTSC standard, for example, the video data can occupy a maximum of 52 μs. [0028]
  • As mentioned above, overscan reduces the actual display time to 44-50 μs. The standard encoder clock rate of 13.5 MHz, for a computer monitor resolution of 640 pixels, yields a display time of 47 μs. This is effective so long as the amount of overscan does not exceed ten percent and the horizontal resolution of the computer video is not greater than 640 pixels. [0029]
  • To display an image having a horizontal resolution of more than 640 pixels, or to accommodate overscan of greater than ten percent, the number of pixels encoded into the composite video waveform is scaled or adjusted to fit within the viewable area. This process is also known as sample rate conversion. An incoming horizontal resolution of 800 pixels, for example, must be scaled down to 640 pixels prior to encoding in order to yield an active video signal having a length of 47 μs at a clock rate of 13.5 MHz. The simplest form of horizontal downscaling is pixel dropping, in which (m) out of every (n) pixels is thrown away. Similarly, horizontal upscaling (in situations where the incoming horizontal resolution is less than the television resolution) is accomplished by duplicating (m) out of every (n) pixels. Pixel dropping (or duplicating) is a crude method of scaling that tremendously impacts resolution and invariably introduces artifacts (blemishes, noise and other physical disruptions) into the image. [0030]
  • Another approach for accomplishing scaling is through interpolation or averaging of adjacent pixels. Various algorithms for interpolation scaling are well known in the art. Scaling via interpolation or averaging improves the video quality relative to simple pixel dropping, but still involves a loss of resolution and artifact generation. Video quality generally depends on the complexity of the algorithm used. Significant amounts of hardware and/or memory are required to implement the more complex algorithms. [0031]
  • SUMMARY OF THE INVENTION
  • The present invention is directed toward a detection device that can be provided to enable a video device such as, for example, a video encoder to detect the presence of a monitor at one or more of its output ports. According to this aspect of the invention, a termination resistance is provided at each output driver of each output port. A current level is driven by the output driver and the resultant voltage is compared to a reference voltage. The reference voltage is chosen such that it lies between a maximum and minimum resulting voltage depending on whether the output is terminated to a monitor. As such, the output of the comparator provides an indication of whether a monitor is connected to the output port of the video driver. [0032]
  • In one embodiment of the present invention, an apparatus for detecting the presence of a display device at the output of a video driver is provided. The apparatus includes a terminating resistance connected between the output of the video driver and a ground level; an output connector coupled to the output of the video driver and configured to accept connection of a display device; and a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output; wherein an output current from the video driver results in a voltage level at the first input of the comparator, the voltage level varying depending on whether or not the display device is connected to the output connector, thereby causing the output of the comparator to indicate whether the display device is connected. [0033]
  • In another embodiment of the present invention, the apparatus further includes a second terminating resistance connected between an output of a second video driver and a ground level; a second output connector coupled to the output of the second video driver and configured to accept connection of a display device; a second comparator, having a first input connected to the output of the second video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from the second video driver results in a voltage level at the first input of the second comparator, the voltage level varying depending on whether or not the display device is connected to the output of the second video driver, thereby causing the output of the second comparator to indicate whether the display device is connected; a third terminating resistance connected between an output of a third video driver and a ground level; a third output connector coupled to the output of the third video driver and configured to accept connection of a display device; and a third comparator, having a first input connected to the output of the third video driver and a third input connected to a reference voltage signal, and an output, wherein an output current from the third video driver results in a voltage level at the first input of the third comparator, the voltage level varying depending on whether or not the display device is connected to the output of the third video driver, thereby causing the output of the third comparator to indicate whether the display device is connected. [0034]
  • In yet another embodiment of this invention, an apparatus for detecting the type of a display device connected at the output of a video device having three video drivers is provided and includes a circuit associated with each of the video drivers for detecting the presence of a display termination at each of the video driver outputs, each circuit including: a terminating resistance connected between the output of the video driver and a ground level, an output connector coupled to the output of the video driver and configured to accept connection of a display device, and a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from the video driver results in a voltage level at the first input of the comparator, the voltage level varying depending on whether or not a display device input is connected to the output connector, thereby causing the output of the comparator to indicate whether the display device is connected; and means for detecting the comparator output of each circuit to determine whether a display device is connected to each associated video driver and to thereby determine the type of display device connected to the video processor. [0035]
  • In still another embodiment of the invention, a method for determining whether a display device is connected at the output of a video driver, includes providing a terminating resistance at the output of the video driver, independently of whether a display device is connected, driving a current level at the output of the video driver, and comparing a resultant voltage at the output of the video driver with a reference voltage level to determine whether a display device is connected to the output of the video driver. [0036]
  • In yet another embodiment of the invention, a method for detecting the type of a display device connected at the output of a video device having three video drivers includes driving a current level at the output of each of the three video drivers, the outputs each coupled to an output connector and a terminating resistance; measuring a voltage level at the output of each of the three video drivers; comparing the measured voltage level to a reference voltage level, wherein the reference voltage level is between a first voltage level resulting from the current across the terminating resistance, and a second voltage level resulting from the current across a combination of the terminating resistance and a resistance of a display device connected to the output connectore; and determining the type of display device connected based on the results of the comparing for each of the three video drivers. [0037]
  • Further features and advantages of the invention, as well as the structure and operation of particular embodiments of the invention, are described in detail below with reference to the accompanying drawings. [0038]
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The present invention is described with reference to the accompanying drawings. In the drawings, like reference numbers indicate identical or functionally similar elements, and [0039]
  • FIG. 1 is a diagram of an NTSC-formatted composite video waveform; [0040]
  • FIG. 2 is a table listing timing parameters for various video output formats; [0041]
  • FIG. 3 is a table listing constant values that are dependent on the video output format; [0042]
  • FIG. 4 is a functional block diagram of a device for converting video formats according to the present invention; [0043]
  • FIG. 5[0044] a is a more detailed diagram of the encoder portion of the device of FIG. 2
  • FIG. 5[0045] b is a detailed block diagram of a waveform timing and control portion of FIG. 5a;
  • FIG. 6 is a table that summarizes external data pin assignments for multiplexed pixel input to the device of FIG. 4; [0046]
  • FIG. 7 is a table that summarizes external data pin assignments for non-multiplexed pixel input to the device of FIG. 4; [0047]
  • FIGS. 8[0048] a-8 b are tables depicting a register bit map for the device of FIG. 4;
  • FIGS. 9[0049] a-9 f are tables summarizing the function and content of the registers depicted in FIGS. 8a-8 b;
  • FIGS. 10[0050] a-10 b are tables summarizing the register settings for RGB 640×480 or 800×600 input and NTSC or PAL composite video output;
  • FIGS. 11[0051] a-11 b are tables summarizing the register settings for YCrCb 640×480 or 800×600 input and NTSC or PAL composite video output;
  • FIG. 12 is a diagram showing the frequency response of an upsampler incorporated in the encoder of FIG. 5[0052] a; and
  • FIG. 13 is a diagram showing the frequency response of a low pass filter incorporated in the encoder of FIG. 5[0053] a.
  • FIG. 14 is a schematic diagram of a circuit that can be used to implement the monitor detection feature according to one embodiment of the invention. [0054]
  • FIG. 15 is an operational flow diagram illustrating a process for determining whether a monitor is connected to the video output pin according to one embodiment of the invention. [0055]
  • FIG. 16 is a schematic diagram illustrating an example implementation of the detection device to detect the type of monitor to connect at the output of a video driver such as that found in [0056] encoder 220 according to one embodiment of the invention.
  • DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
  • A functional block diagram of a [0057] device 200 for generating television-compatible video signals from YCrCb or RGB pixel data streams is set forth in FIG. 4. Device 200 accepts input formats from 640×480 to 800×600 resolution, and supports worldwide video standards including NTSC-M (North America, Taiwan, Japan), PAL-B,D,G,H,I (Europe, Asia), PAL-M (Brazil), PAL-N (Uruguay, Paraguay) and PAL-Nc (Argentina). Most preferably, device 200 is embodied in an 80-pin PQFP (Plastic Quad Flat Pack) package. As will be described in detail below, device 200 achieves horizontal scaling of input pixel data through modification of the encoder clock frequency.
  • Pixel data is input to [0058] device 200 from a computer video source such as a graphics controller at input demultiplexer (“DEMUX”) 202. Preferably, the pixel data is provided to demultiplexer 202 on external pins P[23:0] at specific timing intervals and at an input pixel clock rate CLKI. The timing intervals and clock rate will be discussed in detail below in connection with timing block 210. For now, it is sufficient to say that the input pixel clock rate CLKI is normally the same as the encoder clock rate CLK (the rate at which encoder 220 encodes pixels).
  • [0059] Demultiplexer 202 accepts input pixel data formatted in either the RGB or YCrCb color spaces. In YCrCb mode, demultiplexer 202 can accept either 24-bit 4:4:4 data or 16-bit 4:2:2 data can be input. In RGB mode, either 15-bit 5:5:5, 16-bit 5:6:5 or 24-bit RGB can be input. Pixel data may be input two pixels at a time, in multiplexed fashion, clocked in on both the rising and falling edges of CLKI. In this mode, demultiplexer 202 receives pixel input on twelve external pins P[11:0]. FIG. 6 is a table that summarizes the external data pin assignments P[11:0] for multiplexed pixel input. For the RGB space, red data is designated R0-R7, green data is designated G0-G7 and blue data is designated B0-B7. For the YCrCb color space, Y data is designated Y0-Y7, Cr data is designated Cr0-Cr7, and Cb data is designated Cb0-Cb7. Alternatively, data may be input to demultiplexer 202 one pixel at a time, clocked in on the rising edge of CLKI. In this non-multiplexed mode, demultiplexer 202 receives pixel input on twenty-four external pins. FIG. 7 is a table that summarizes data pin assignments P[23:0] for non-multiplexed pixel input.
  • For 16-bit 4:2:2 YCrCb pixel data input, multiplexed Y, Cr and Cb data is input on eight external pins (P[11:4]). The Cr and Cb data is input on the rising edge of CLKI, and the Y data is input on the falling edge of CLKI. A Cb/Y/Cr/Y sequence begins with the first active pixel. For 24-bit 4:4:4 YCrCb pixel data input, multiplexed Y, Cr and Cb data is input on twelve external pins, P[11:0]. All Cr data and half of the Cb data is input on the rising edge of CLKI, and all Y data and the remaining half of the Cb data is input on the falling edge of CLKI. If 4:4:4 YCrCb data is input to [0060] demultiplexer 202, it is sub-sampled to 4:2:2 format before being fed to flicker filter/scaler 206. Sub-sampling is the process of sampling some pixel data (Cr and Cb) at a lower rate than other pixel data (Y). In the 4:2:2 format, for every two (Y) samples, one (Cb) sample and one (Cr) sample is taken.
  • For 15-bit 5:5:5 RGB pixel data input, three green bits and five blue bits are input on the rising edge of CLKI, and five red bits and two green bits are input on the falling edge of CLKI. The handling of 16-bit 5:6:5 RGB pixel data input is similar, with an extra green bit being sampled on the falling edge of CLKI. For 24-bit RGB pixel data input, eight blue bits and four green bits are sampled on the rising edge of CLKI, and eight red bits and four green bits are sampled on the falling edge of CLKI. If non-multiplexed 24-bit RGB pixel data or 24-bit YCrCb pixel data is supplied to [0061] demultiplexer 202, the pixel data is input one pixel at a time on the rising edge of CLKI utilizing twenty-four external pins.
  • [0062] Device 200 includes various registers for storage of important parameters, control and operating information. FIGS. 8a-b set forth a preferred register name and bit address map for device 200. As shown in FIGS. 8a-b, the registers occupy 8-bit (D7-D0) addresses 6C-D8. This is only one possible arrangement for the storage of the various operating parameters. Other register arrangements or storage methods could be utilized. FIGS. 9a-f define the function and content of the registers shown in FIG. 8a-b. The registers depicted in FIGS. 8-9 are discussed in detail throughout this specification.
  • Register IN_MODE[2:0] defines the format of the pixels that are input to [0063] device 200. The settings of register IN_MODE[2:0] and the corresponding input pixel formats are as follows:
    IN MODE[2:0] Input Pixel Format
    000 24-bit RGB multiplexed
    001 16-bit RGB multiplexed
    010 15-bit RGB multiplexed
    011 24-bit RGB non-multiplexed
    100 24-bit YCrCb multiplexed
    101 16-bit YCrCb multiplexed
    111 24-bit YCrCb non-multiplexed
  • [0064] Timing block 210 interfaces with the graphics controller of the computer or other source that is generating and delivering pixel data to demultiplexer 202. Timing block 210 generates the control signals HSYNC (horizontal sync output), VSYNC (vertical sync output), BLANK (composite blanking control) and FIELD (field control output). These control signals, along with the pixel input clock rate, are supplied by timing block 210 to the computer graphics controller and indicate to the controller when and when not to input pixel data to demultiplexer 202. Preferably, though not necessarily, the pixel input clocking rate CLKI is the same as the encoder clock rate CLK generated by clock generator 218.
  • The HSYNC control signal provides the graphics controller with horizontal pixel synchronization information for the input pixel data. It is a pulse two CLK cycles in duration whose leading edge indicates the beginning of a new line of pixel data. The period of the pulses, or the number of clocks per line between successive sync edges, is represented by the register H_CLKI. For [0065] NTSC 640×480 or 800×600 output, H_CLKI is, respectively, 784 or 880 clocks. For PAL 640×480 or 800×600 output, H_CLKI is, respectively, 944 or 960 clocks. Register H_BLANKI represents the number of clock pulses between the HSYNC leading edge and the first active pixel. For NTSC 640×480 or 800×600 output, H_BLANKI is, respectively, 126 or 66 clocks. For PAL 640×480 or 800×600 output, H_BLANKI is, respectively, 266 or 140 clocks. Hence, H_BLANKI clock cycles after the leading edge of HSYNC, the first active pixel is presented to device 200. The next H_ACTIVE pixels (640 or 800) are accepted as active pixels and used in constructing the output video waveform.
  • The VSYNC control signal provides the graphics controller with frame synchronization information for the pixel input data. It is a pulse one horizontal line time in duration whose leading edge indicates the beginning of a frame of input pixel data. The period of the VSYNC pulses, or the number of vertical input lines per frame, is stored in the V_LINESI register. For [0066] NTSC 640×480 or 800×600 output, V_LINESI is, respectively, 600 or 735 lines; for PAL 640×480 or 800×600 output, V_LINESI is, respectively, 625 or 750 lines. The first line of data should be presented to device 200 V_BLANKI lines after the leading edge of VSYNC. For NTSC 640×480 or 800×600 output, V_BLANKI is, respectively, 75 or 86 lines; for PAL 640×480 or 800×600 output, V_BLANKI is, respectively, 90 or 95 lines. The next V_ACTIVEI lines (480 or 600) are accepted as active lines and used in construction of the output video waveform.
  • The BLANK control signal specifies to the graphics controller when input pixels should be blanked. Pixel blanking is generated based on the active area defined by the H_BLANKI, H_ACTIVE, V_BLANKI and V_ACTIVEI registers. The FIELD control signal specifies to the graphics controller when to generate even and odd fields. [0067]
  • Internal generation by timing [0068] block 210 of the HSYNC, VSYNC and BLANK control signals is preferred. This is the “master” mode of operation of device 200. It should be noted, however, that device 200 may operate in a “slave” mode wherein the HSYNC, VSYNC and BLANK signals are provided externally by a computer graphics controller or other device. A SLAVE input to device 200 is provided for selection of this mode. Operating in slave mode is not preferred because if the graphics controller does not properly time the HSYNC and VSYNC inputs, the output image will lose lock with the input. If the device is run in master mode, any timing errors that occur can be absorbed to some extent by FIFO 208.
  • Color [0069] space conversion block 204 receives RGB or YCrCb pixel input data from demultiplexer 202 and converts it to the YUV color space. This conversion process is well-known to those of ordinary skill in the art; see Background section above and Keith Jack, “Video Demystified,” pages 39-61 for further detail. The color-space-converted pixel data is next processed by flicker filter/vertical scaler block 206. Block 206 converts the lines of input pixel data to an appropriate number of output lines for producing a full-screen image on the television receiver. Block 206 performs both overscan compensation, to ensure that the image is 100% in the vertical viewable area of the screen, and vertical filtering, to reduce the effects of picture flicker due to the interlacing of the output image. The amount of flicker filtering is programmable, as the process trades off vertical resolution in order to reduce flicker. Notably, block 206 filters only the vertical resolution; horizontal scaling is achieved by adjusting the encoder clock rate. No additional horizontal processing is performed on the input pixels. This allows the full horizontal resolution of the input pixels to be output. Suitable flicker filtering and vertical scaling techniques are discussed in Jack, “Video Demystified”, pages 392-394.
  • The output of flicker filter/[0070] scaler 206 is fed into FIFO (“First-In First-Out”) shift register 208. FIFO 208 stores the YUV pixel data input by scaler 206 and releases it to encoder 220 in sequential, interlaced fashion at the encoder clock rate. Essentially FIFO 208 absorbs any differences between the input pixel clock rate and the encoder clock rate. The function and operation of FIFOs is well known to those of ordinary skill in the art.
  • [0071] Video encoder 220 receives YUV pixel data from FIFO 208 at an encoder clock rate that is generated by clock generator 218. The encoder clock frequency is sufficient to encode all input pixel data into the active video portion of the composite waveform, without alteration or physical scaling of the pixel data.
  • [0072] Crystal oscillator 214, phase-locked loop (PLL) 216 and clock generation block 218 generate the encoder clock. Crystal oscillator 214 is chosen so that the precise line rate required for television broadcast signals can be achieved. It must be within 50 ppm of the maximum desired clock rate for NTSC operation and 25 ppm for PAL operation, across a temperature range of 0° C. to 70° C. A 13.5 MHz crystal is sufficient both for NTSC and PAL video standards. PLL 216 locks and synchronizes the clock to the horizontal sync rate, and has a frequency resolution sufficient to generate the precise color subcarrier frequency.
  • The encoder clock generated by [0073] block 218 is the frequency at which pixels incoming from FIFO 208 are encoded into a composite video waveform. Under the NTSC standard, the active video portion of the composite waveform is limited to a duration of approximately 52 μs. Based on this limitation, prior art encoders have utilized an encoder clock operating frequency of 13.5 MHz. At this rate, 640 pixels of data can be encoded during the duration of the viewable portion of the active video signal. Any incoming horizontal pixel resolutions exceeding 640 pixels, however, will not fit into the viewable portion of the active video signal at the encoding rate of 13.5 MHz. To counter this limitation, prior art encoders physically scale or filter the incoming pixels, through interpolation and averaging techniques, to a resolution of 640. Essentially, 800 pixels (for example) come in, are processed, and 640 pixels come out. The phenomenon of overscan exacerbates this dilemma since it reduces the viewable portion of the active video signal to only about 47 μs. The number of pixels encoded must be averaged or down-scaled even further in order to bring the entire image into the viewable portion of the display.
  • The present invention employs a novel approach to solving this problem. Rather than reducing the number of pixels that are encoded, through interpolation or averaging algorithms, [0074] clock generator 218 alters the clock rate (i.e., increases it) based on the incoming horizontal resolution so that all pixels are encoded within the viewable portion of the active video signal. Rather than being scaled through physical alteration, the pixels are effectively squeezed in time, or time-scaled. Essentially, the clock rate is increased to fit 800 pixels into the same amount of time that 640 pixels fit at a clock rate of 13.5 MHz. All incoming pixel data is encoded exactly as it was received from FIFO 208. The video quality is no longer dependent on a scaling algorithm, which is a function of multiple pixels and may work well for some images but not for others. The shape of the output composite waveform remains the same but is generated at a higher clock rate.
  • The approach of the present invention is also advantageous in that it simplifies the task of dealing with overscan. The amount of overscan generated by various televisions is not consistent or predictable; it can range from five to twenty percent. Moreover, the amount of overscan varies with the age of the television. Scaling algorithms employed by prior art encoders are based on specific predictions of the amount of overscan. The amount of overscan dictates the viewable portion of the active video signal, on which the scaling algorithms are based. If the actual amount of overscan does not closely correspond to the predicted amount, the scaling algorithm will not yield a properly placed image. With the present invention, the encoder clock rate can simply be fine-tuned according to the actual amount of overscan so that the image is properly placed. [0075]
  • By increasing the encoder clock frequency, the color burst waveform, horizontal sync pulse and active video data are all generated at an increased rate. The benefit of this method is that 800 pixels (or other horizontal resolutions) are encoded into the composite waveform without scaling; the pixel data fed to [0076] device 200 is exactly what comes out of encoder 220. The drawback is that generation of the horizontal sync pulse, color burst waveform and other timing components of the composite waveform is complicated. In prior art encoders, where the clock rate remains constant, the timing for generating the various aspects of the waveform is consistent and predictable. It is as simple as, “at clock count 128, output the leading edge of the horizontal sync pulse; at clock count 250, start the color burst, etc.” This no longer holds true with a varying clock rate. The present invention provides an inventive method for outputting a consistent waveform meeting all required timing specifications. This method is outlined and discussed in detail herein in the detailed discussion of encoder 220.
  • [0077] Clock generator 218 generates the encoder clock frequency fclk (or CLK) for a given input computer video signal and output television signal format according to the following equation:
  • f clk =f xtal*((PLL INT[5:0]+(PLL FRACT[15:0]/216))/6);
  • where f[0078] xtal is the crystal frequency, usually 13.5 MHz; PLL_INT[5:0] is a register value representing the integer portion of a PLL multiplier; and PLL_FRACT[15:0] is a register value representing the fractional portion of the PLL multiplier. Hence, PLL_INT and PLL_FRACT are chosen to yield appropriate clock frequencies for given output resolutions and formats.
  • FIGS. [0079] 10-11 are tables that list the operating parameters for eight input (RGB or YCbCr, 640×480 or 800×600 resolution) and output (NTSC or PAL) video formats. These parameters are stored in an internal ROM and written to the appropriate registers upon selection of a particular input and output format. If, for example, the input pixel data is RGB 640×40, and NTSC output video is desired, PLL_INT is 12 and PLL_FRACT is 34830. Inserting these values into the above equation for determining the encoder clock rate, and assuming a crystal frequency of 13.5 MHz, yields an encoder clock frequency CLK of 28.195793 MHz. The encoder clock frequency is calculated for each of the eight input/output formats set forth in FIGS. 10-11 and is designated at the tops of the table columns. The PLL multipliers are programmable and may be adjusted by the user to yield an appropriate encoder clock frequency if input/output combinations other than the eight auto-configured ones are desired.
  • In addition to controlling the operation of [0080] encoder 220, the encoder clock frequency CLK is also preferably utilized to clock the graphics controller of the computer that is supplying pixel data to device 200. This is depicted in FIG. 4 as an output clock signal CLKO from clock generator 218. FIG. 4 also depicts an input signal CLKI to clock generator 218. CLKI is the clock rate at which the graphics controller is actually outputting pixel data to device 200, and is normally just a delayed version of CLKO. Incoming pixel data is received by demultiplexer 202 on the edges of CLKI and is then re-synchronized by FIFO 208 to the internally generated encoder clock CLK.
  • Use of an internal crystal oscillator, PLL and clock generator is the preferred method for generating the encoder clock frequency CLK. Alternatively, the encoder clock frequency could be generated externally and provided to [0081] generator 218 on input line CLKI. A register EN_XCLK is provided for this option; setting EN_XCLK to 1 provides for an externally generated, rather than an internally generated encoder clock. An internally generated encoder clock is strongly preferred to ensure that the output video waveform remains within the NTSC or PAL specifications. Any aberration in the encoder clock will be reflected in the output video and will detract from the quality of the image.
  • Finally, it is possible to bypass [0082] PLL 216 and set the encoder clock to the crystal frequency by setting the BY_PLL register bit to one. Normally, BY_PLL is zero and PLL 216 is used to generate the encoder clock frequency.
  • [0083] Encoder 220 receives and encodes 4:2:2 YUV data from FIFO 208 at the encoder clock rate CLK generated by generator 218. FIG. 5a illustrates the components of encoder 220 in greater detail. Video timing control block 250 of encoder 220 generates the signals for extracting the processed pixels from FIFO 208 into encoder 220, and also generates signals for proper encoding of the processed pixels into a composite NTSC- or PAL-compliant waveform. The encoder clock CLK generated by clock generator 218 clocks timing block 250.
  • [0084] Timing block 250 performs analog video blanking in accordance with the parameters stored in the H_BLANKO, V_BLANKO, H_ACTIVE and V_ACTIVEO registers. Together these parameters define an active region where pixels will be displayed. V_BLANKO defines the number of lines from the leading edge of the vertical sync pulse to the first active output line, and V_ACTIVEO defines the number of output active lines per field. H_BLANKO defines the number of output pixels from the leading edge of the horizontal sync to the first active output pixel, and H_ACTIVE defines the number of active output pixels. Based on the above parameters, timing control block 250 blanks the video from the start of the horizontal sync interval through the end of the burst, as well as during the vertical sync period. This is performed in addition to blanking performed by the graphics controller itself (in response to the BLANK signal received from timing block 210) in order to prevent erroneous video timing generation.
  • A RESET signal may also be provided to timing block [0085] 250 to generate a timing and software reset of device 200. If the input RESET signal is held low for a minimum of two clock cycles, timing and software resets are performed. During a timing reset, serial interface 212 is held in a reset condition (serial interface registers set to zero), the horizontal and vertical counters are set to zero, and the subcarrier phase is set to zero. In a software reset, which can also be generated by setting the SRESET register bit, all serial interface registers are set to zero except for PLL_INT, which is initialized to 0×0C. The appropriate registers are then initialized to auto-configuration mode 0 (NTSC 640×480; see FIG. 10).
  • [0086] Device 200 may be powered-down using the SLEEP input pin. If a logical 1 is presented on the SLEEP pin, a reset is generated on power-up that also generates both a timing and a software reset. After a reset condition has occurred, circuit 200 must be programmed through serial interface 212 to activate video or output one of the other preprogrammed video standards, as well as to enable the CLKO, HSYNC, VSYNC and FIELD outputs.
  • As discussed above, [0087] device 200 can be automatically configured for any one of eight input/output video formats. Essentially, the device may be programmed for any combination of RGB (FIG. 10) or YCbCr (FIG. 11) input, at pixel resolutions of 640×480 or 800×600, and NTSC or PAL composite video output. Device 200 can be configured to allow selection of the desired mode through an external pin or, alternatively, by appropriately setting the configuration register CONFIG[2:0]. All register parameters associated with all modes of operation are stored in an internal ROM. Upon selection of a particular input/output format, the appropriate parameters are loaded from the ROM into the appropriate registers.
  • Looking at one example, [0088] mode 0 provides for conversion of RGB 640×480 pixel input to NTSC composite output. To select this mode, the CONFIG[2:0] register is set to 000 (see FIG. 9b), or an appropriate signal is placed on an external pin. Following are some of the essential parameters that are programmed from the ROM into the registers if mode 0 is selected. The total number of active input and output pixels per line, H_ACTIVE, is 640. The width of the horizontal sync pulse in clocks, HSYNC_WIDTH, is 132. The color burst begins (50% point) 150 clock cycles from the horizontal sync falling edge (HBURST_BEGIN), and ends (50% point) 224 clock cycles from the sync pulse falling edge (HBURST_END +128). There are 381 output clocks between the leading edge of the horizontal sync pulse and the start of the active video (H_BLANKO). The line number of the first active line is 34 (V_BLANKO; the number of blank lines +1), and there are 212 active output lines/field (V_ACTIVE). There are 784 clocks per line between successive HSYNC edges (H_CLKI), and 126 input pixels between the HYSNC leading edge and the first active pixel (H_BLANKI). The number of vertical input lines (V_LINESI) is 600, there are 75 input lines between the VSYNC leading edge and the first active line (V_BLANKI) and there are 480 active input lines (V_ACTIVEI).
  • The encoder generates the pixel clock (EN_XCLK=0) using the PLL (BY_PLL=0). The fractional portion of the PLL multiplier (PLL_FRACT) is 34830, and the integer portion of the multiplier (PLL_INT) is 12. As discussed above, insertion of these PLL multipliers into the encoder clock frequency equation yields an encoder clock frequency of 28.195793 MHz. A 525-line (625LINE=0) interlaced (NI_OUT=0) format is utilized, and a 7.5 IRE setup is enabled for active video lines (SETUP=1). The multiplication factor for the sync amplitude (SYNC_AMP[7:0]) is 229, and the multiplication factor for the burst amplitude (BST_AMP[7:0]) is 118. The multiplication factors MCR[7:0] and MCB[7:0] for the CR and CB components prior to subcarrier modulation are, respectively, 121 and 68. The Y component multiplication factor MY[7:0] is 133, and the subcarrier increment MSC[3 1:0] used in generating the subcarrier frequency (discussed below) is 545259520. [0089]
  • Other registers are set in accordance with additional values provided in FIG. 10. Appropriate parameters for the remaining seven autoconfiguration modes are also set forth in FIGS. [0090] 10-11. The capacity to autoprogram the registers in accordance with desired input and output formats greatly reduces the software support required, yet full flexibility is retained in generating the video formats and timing. Once the device is configured, all registers are accessible and programmable through serial interface 212 to modify the modes. For less common input and output formats, for example, device 200 could be configured to the closest mode, with only those registers that differ being reprogrammed through serial interface 212.
  • The YUV pixel data is clocked into [0091] encoder 220 at the generated encoder clock rate CLK and is first scaled for the output range of DACs 224, 226 and 228. Multipliers 252 and 266 are provided for scaling, respectively, the Y and UV data. Multiplier 252 receives the Y data input and multiplies it by a scaling factor MY, and multiplier 266 receives U and V input and multiplies it by the scaling factors MCR and MCB. MCR and MCB are multiplexed through multiplexer 264 before being input to multiplier 266. The MCR, MCB and MY scaling functions allow various colormetry standards to be achieved, and may also be used to boost the chroma to compensate for the sinx/x loss of the DACS (described in more detail below).
  • For YCrCb input to [0092] demultiplexer 202, the scaling equations are as follows:
  • MY=(int)((V 100/(219.0*V FS)*26)+0.5);
  • MCR=(int)(((128.0/127.0)*V 100*0.877/(224.0*V FS*0.713*sinx)*26)+0.5); and
  • MCB=(int)(((128.0/127.0)*V 100*0.493/(224.0*V FS*0.564*sinx)*26)+0.5).
  • For RGB input to [0093] demultiplexer 202, the scaling equations are as follows:
  • MY=(int)((V 100/(255.0*V FS)*26)+0.5);
  • MCR=(int)(((128.0/127.0)*V 100*0.877/(127.0*V FS*sinx)*25)+0.5); and
  • MCB=(int)(((128.0/127.0)*V 100*0.493/(127.0*V FS*sinx)*25)+0.5).
  • In the above scaling equations, V[0094] 100=100% white voltage (0.661V for NTSC; 0.7V for PAL); VFS=full scale output voltage (1.28V); and sinx=(sin(2πfSC/fCLK))/(2πfSC/fCLK). Registers MCR[7:0], MCB[7:0] and MY[7:0] are provided for storing the scaling factors. FIGS. 10 and 11 list the values of MCR, MCB and MY for various input and output video format combinations.
  • With reference to FIG. 5[0095] a, the processing of the scaled Y pixel data by encoder 220 is considered first. The input Y data, scaled by the scaling factor MY, is output by multiplier 252 and fed to multiplexer 256. Closed captioning and Macrovision® data may be generated by block 254 and inserted in appropriate scan lines as luminance (Y) data. For NTSC/PAL-M, closed captioning data is encoded on scan line 21 and extended data is encoded on scan line 284. For PAL-B, D, G, H, I, N, Nc, encoding takes place on scan lines 22 and 335. Pixel input data is ignored during CC encoding. Four 8-bit registers (CCF1B1, CCF1B2, CCF2B1 and CCF2B2) provide the CC data and register bits ECCF1 and ECCF2 enable display of the CC data. Further information about these registers is provided in the programming detail table set for in FIG. 9c. Closed-caption (CC) encoding is performed according to the standards of the National Captioning Institute. Further detail about closed-captioning may be found in Jack, “Video Demystified”, pages 213-231. Macrovision® is a copy protection feature that may be supported by device 200. Further detail may be found in Jack, “Video Demystified”, pages A-24 to A-25.
  • Sync processor [0096] 260 generates sync signals that are added, at the required timing intervals, to the scaled luminance data. In prior art encoders, a horizontal line counter is incremented in accordance with an encoder clock that is clocked at a specific and constant frequency under all conditions. A consistent and predictable horizontal sync waveform that meets the appropriate specification is generated simply by outputting appropriate waveform values at particular horizontal line counts. All other timing signals (blanking interval, color burst waveform, vertical sync pulse) are generated in the same manner, that is, as simple decodes of the horizontal line counter.
  • The horizontal sync pulse, for example, must be 4.7 μs in width under the NTSC standard. Prior art encoders traditionally utilize a 13.5 MHz clock frequency under all conditions. Hence, clock count zero will always correspond to the beginning of the horizontal sync pulse, and some other clock count (x), 4.7 μs later, will always correspond to the end of the sync pulse. The proper waveform values are simply inserted into the luminance data stream at the proper times. Everything is consistent and repeatable, and the counts or timing markers always remain the same, because there is always one clock rate. [0097]
  • As described herein, [0098] encoder 220 effectively time-scales the incoming horizontal pixel data by using a variable encoder clock frequency that tracks the incoming horizontal pixel resolution. While this has the advantage of horizontally scaling the input pixel data without averaging or other loss of resolution, it has a drawback in that the line counts at which sync or other waveform values should be generated no longer have a predictable, linear relation to the clock count. Particular counts are no longer associated with particular waveform values. The shape of the composite video waveform and the timing of the sync pulses, color burst, etc., however, must remain the same regardless of the clock conditions under which the waveform is generated. The present invention addresses this problem.
  • As illustrated in FIG. 5[0099] b, waveform values appropriate for a range of clock rates are stored in the upper address bits 302 of a ROM 300. For the horizontal sync pulse, for example, these values include falling and rising edge waveforms, and the sync pulse width in clock pulses. The encoder clock rate CLK generated by clock generator 218, which is a function of the input and output video formats selected by the user, is scaled to a digital value by range selector 306. This value corresponds to a particular group of waveform values stored the upper addresses 302 of ROM 300. These waveform values are matched with line counts associated with that particular encoder clock rate. The variable encoder clock CLK also clocks horizontal line counter 308. At appropriate line counts, ROM 300 provides appropriate waveform values to sync processor 260 (or an appropriate register). Sync processor 260, in turn outputs the appropriate waveform values to adder 258 to be added to the luminance data stream at the proper location. Hence, a consistent horizontal sync pulse is generated independent of the actual clock rate.
  • The beginning of the horizontal sync pulse corresponds to the reset of [0100] line counter 308. At this time, and for an appropriate number of counts thereafter (again, depending on the frequency of encoder clock CLK) ROM 300 provides the appropriate sync fall waveform values from upper addresses 302 to processor 260, which inserts the values into the luminance data. For NTSC and PAL composite waveforms, the sync waveform must meet strict rise and fall times. The fall time for the NTSC horizontal sync pulse, for example, is 138 ns. As the encoder clock rate is increased, it follows that more clock counts will be required to encode the fall waveform within the same 138 ns.
  • The duration (in clock pulses) of the horizontal sync pulse that corresponds to the encoder clock rate is loaded from [0101] ROM 300 into the horizontal sync width register (HSYNC_WIDTH[7:0]). For RGB 640×480 input and NTSC output, for example, a clock rate of 28.195793 MHz is generated by generator 218 and a horizontal sync pulse width HSYNC_WIDTH of 132 clock counts is required. Generally, the greater the encoder clock frequency, the longer the width of the horizontal sync pulse in clock counts must be in order to maintain the same duration of 4.7 μs. Sync pulse widths corresponding to other input resolution and output format combinations are listed in FIGS. 10 and 11. The sync pulse amplitude multiplier SYNC_AMP is loaded into a register by ROM 300 and is provided to sync processor 260. For NTSC output, SYNC_AMP is 229; for PAL output, SYNC_AMP is 240.
  • Sync processor [0102] 260 also inserts vertical sync pulses into the luminance data, where appropriate. The duration of the vertical sync is selectable as either 2.5 or 3 lines by register bit VSYNC_DUR.
  • The luminance/sync data is filtered through 2X-[0103] upsampling filter 262. Upsampler 262 alleviates external filtering requirements by moving significant sampling alias components above 19 MHz and reducing the sinx/x aperture loss. The frequency response of upsampler 262 is illustrated in FIG. 12. The upsampled luminance data is supplied to output mode selector 286 in a number of combinations: it is supplied directly to selector 286 on line 290 in component Y format; it is passed through luma delay circuit 282 and supplied as delayed luminance data on line 291 (delaying the luminance data is sometimes desirable as the chrominance video path has a longer delay than the luminance video path); it is added to composite chrominance data via adder 284 and supplied to selector 290 on line 292 as a composite video waveform; and the delayed luminance data output from delay 282 is also added to the chrominance data via adder 285 to output a delayed composite video waveform to mode selector 286 on line 293.
  • Turning to the processing of the UV data, it is input to [0104] multiplier 266 where it is scaled and converted to U/V data by scaling factors MCR and MCB, as described above. The U/v data is then fed to multiplexer 270. Burst processor 268 adds the color burst waveform to the chrominance data at appropriate locations. The problem of generating a consistent and accurately timed color burst waveform under variable encoder clock conditions is dealt with in a manner identical to that of sync processor 260. Color burst waveform values appropriate for a range of clock rates are stored in the upper address bits 302 of ROM 300. These values include the fall and rise waveforms for the nine-cycle sine wave color burst waveform, the subcarrier frequency increment (used to generate the subcarrier frequency), and the pixel locations for the beginning and end of the burst waveform. The encoder clock rate CLK generated by clock generator 218, which is a function of the input resolution and output format selected by the user, is scaled to a digital value by selector 306 that corresponds to an upper address bit of ROM 300. For each clock frequency range, ROM 300 has stored appropriate burst waveform values corresponding to horizontal line counts generated by counter 308. These waveform values are provided to burst processor 268 (or an appropriate register) at the proper line counts. Burst processor 268 outputs the burst waveform data to multiplexer 270 to be inserted into the chrominance data stream at the proper locations. A consistent and accurately timed color burst waveform is generated independent of the encoder clock rate, which is variable.
  • The chrominance and color burst information is generated at a subcarrier frequency required by the desired broadcast standard. A subcarrier increment or scaling factor is used to generate the desired subcarrier frequency and is calculated by the following equation: [0105]
  • MSC=(int)(232 *f SC /f CLK+0.5), or more directly,
  • for NTSC: MSC=2[0106] 32*(455/(2*H_CLKO)); and
  • for PAL: MSC=2[0107] 32*((1135/4+1/625)/H_CLKO).
  • In the above equations, f[0108] SC is the subcarrier frequency, fCLK is the encoder clock rate, and H_CLKO is the number of output clock pulses per horizontal line. With MSC, any desired subcarrier frequency may be generated to enable the generation of any desired video standard. The discrete-time oscillator divides down the internal clock rate by a factor of MSC to generate the subcarrier frequency. FIGS. 10-11 list subcarrier increments (MSC) for various input and output format combinations. The subcarrier increment must be programmed into the MSC register or loaded via serial interface 212 before the subcarrier can be enabled. In order to prevent residual errors from accumulating, the subcarrier DTO (Discrete Time Oscillator) is reset every four fields for NTSC formats and every eight fields for PAL formats.
  • [0109] Burst processor 268 generates the burst waveform as a function of the subcarrier frequency increment (MSC), the burst horizontal begin and end register settings (HBURST_BEGIN and HBURST_END), the burst rise and fall waveforms stored in ROM 300, and the burst amplitude (BST_AMP). For RGB 640×480 input and NTSC output, for example, MSC is 545259520; the burst begins at line count 150 and ends at line count 224, and has a BST_AMP multiplier value of 118. Again, ROM 300 loads the values corresponding to particular clock frequencies into the appropriate registers The chrominance U/V data, including the color burst waveform, if applicable, is fed from multiplexer 270 to converter 272 where it is converted back to 4:4:4 format (to equal the luminance sampling frequency). The UV components are then passed through a low pass filter 274 having the frequency response illustrated in FIG. 13. Next, the U/V components are filtered through 2X-upsampler 276, which has the filter response illustrated in FIG. 12. The filtered and upsampled U/V data is supplied directly to output mode selector 286 as U and V component data on line 295, and is also passed through modulator and mixer 278 to yield a quadrature amplitude modulated (QAM) chrominance (C) signal. The QAM C signal is generated by multiplying the U data by sine and the V data by cosine (or vice-versa), and adding the two together to yield a modulated 3.58 MHz QAM signal. The upsampled and modulated chrominance (C) data is supplied to output mode selector 286 directly on line 294 in component format; in combination with the Y data via adder 284 on line 292 (composite video); and in combination with the delayed Y via adder 284 on line 293 (luma-delayed composite video).
  • Output mode selector [0110] 286 generates output video signals on three lines 287, which are connected to output multiplexer (MUX) 288. There are four modes for the video outputs, selected by register OUT_MODE. The first mode (OUT MODE=0) generates composite video, luma (Y), chroma (C) and delayed luma (Y_DLY). The second mode (OUT_MODE=1) generates luma-delayed composite video, luma (Y), chroma (C) and delayed luma (Y_DLY). The third mode (OUT_MODE=2) generates component YUV and delayed luma (Y_DLY). The fourth mode (OUT_MODE=3) generates VGA-style RGB outputs. Registers (LUMADLY) are provided to control the amount of delay for the delayed luma, which can be from 0 to 3 clocks.
  • For each of the output modes, any of the four generated outputs can be muxed to any of the three [0111] output DACs 224, 226, 228 by setting registers OUT_MUXA, OUTMUX_B and OUT_MUXC. DACs 224, 226 and 228 are designed to drive standard video levels into a combined RLOAD of 37.5 Ω (doubly terminated 75 Ω). The DAC output response is a discrete waveform with a typical sinx/x response. For composite video output, this results in a slightly lower than desired burst and chroma amplitude value. To compensate, the burst and chroma gain as programmed by the BST_AMP and MCR/MCB register values can be boosted by x/sinx. The sinx/x amplitude reduction is calculated by:
  • sinx/x=sin(π*f SC /f CLK)/(π*f SC /f CLK).
  • Alternatively, an output filter could be used to boost the frequency response to a slightly higher level. [0112]
  • [0113] Serial interface 212 is a two-wire serial interface that is provided to program the registers in device 200 if the pre-programmed modes are not used. Every byte put onto the SID (Serial Interface Data) line should be 8 bits long (MSB first), followed by an acknowledge bit, which is generated by the receiving device. Each data transfer is initiated with a start condition and ended with a stop condition. The first byte after a start condition is always the slave address byte. If this is the device's own address, the device will generate an acknowledge by pulling the SID line low during the ninth SIC (Serial Interface Clock) pulse, then accept the data in subsequent bytes (auto-incrementing the subaddress) until another stop condition is detected. The eight bit of the address byte is the read/write (R/W) bit (high=read from addressed device; low write to addressed device). For device 200, the subaddress is considered valid only if the R/W bit is low. Serial interface 212 is operable with either 3.3V or 5V input levels.
  • [0114] Comparator 310 receives inputs from Internal Voltage Reference 312 (1.2V) and the Full Scale Adjust (FSADJUST) current source, and sets all of the DACs to track the reference current. The output of comparator 310 is also fed to a COMP pin which must be decoupled to the closest VAA pin, typically with a 0.1 μF ceramic capacitor. The capacitor should be as close as possible to the COMP and VAA pins. A surface-mount capacitor is preferred for minimal lead inductance, which degrades the noise rejection of the circuit. VREF and VBIAS should also be decoupled to ground with a 0.1 μF capacitor.
  • As described in detail above, the various aspects and features of the invention allow computers such as, for example, personal computers and other computing devices to display video and image data to both non-interlaced (computer) monitors, as well as NTSC TV receivers. Because the device can be connected to a number of different monitors and receivers, it is beneficial to determine whether a monitor is connected to the encoder output on power up of the device, and if so, which type of monitor is connected. This allows the appropriate software to be loaded and run for the given type of monitor connected. As such, another aspect of the invention provides a system and method for determining whether and what type of monitor is connected to the output of the TV encoder, thereby giving the processor information that can be used to load and execute the appropriate software routines. [0115]
  • According to one embodiment of this aspect of the invention, a terminating resistor is provided at the output of the DAC such that the output is always terminated regardless of whether a display device is connected. Preferably the impedance presented by the terminating resistor is equal to the impedance provided by a monitor that would typically be connected to the output of the DAC. As a result, in addition to the termination resistance of the monitor, the DAC drives a parallel impedance. This ensures that the output signal will never be driving a high impedance, or open circuit, which could potentially cause the signal to be driven to undesirably high voltages. As a result of this configuration, an unconnected output is still driving an impedance as provided by the terminating resistor. [0116]
  • Another aspect of the invention, which determines the type of display device connected, takes advantage of the fact that the terminating resistance changes depending on whether a display device is connected to the output of the DAC. When a display device is connected to the output of the DAC, the display device provides an impedance in parallel to that providing by the terminating resistance. Therefore, the output impedance driven by the DAC decreases where a television, monitor or other display device is connected. More specifically, in one example application, if the terminating resistor provides an impedance equal to that of the connected monitor, the effective termination resistance seen by the device when a monitor is connected is half that of the terminating resistance seen by the DAC with no monitor connected. [0117]
  • Thus, according to the invention, current is driven by the DAC to the output terminal. As a result of the termination resistance, a voltage level is created at the output of the DAC. The voltage level will vary depending on whether a monitor is connected to the video output terminal. Therefore, this voltage level can be compared to a reference voltage level to determine whether or not a monitor is connected to the output. [0118]
  • FIG. 14 is a schematic diagram of a circuit that can be used to implement the monitor detection feature according to one embodiment of the invention. Referring now to FIG. 14, a terminating resistor R[0119] 1 is provided at the output of DAC 404. As stated above, R1 is preferably equal to the termination resistance of the typical monitor that might be connected to video output 406. However, as would become apparent to one of ordinary skill in the art after reading this description, alternative values for Ri can be chosen and implemented.
  • In one embodiment of the invention where the resistance of RI equals that of the anticipated display device, the resistance of RI is selected as 75 ohms. When a current level is driven by [0120] DAC 404 to video output 406, a voltage level is created. The voltage level is a function of the current and any resistance seen at the output which includes a combination of the resistance provided by terminating resistor RI and a monitor, if connected. As provided by ohms law:
  • V=IR
  • The voltage V at the output of [0121] DAC 404 is equal to the current level I output by the DAC times the resistance presented by R1 and the display device (if present). If the DAC output is unterminated, the resistance R simply equals R1. If, on the other hand, the output is terminated to a monitor or other display device, in the embodiment where the terminating resistor is equal to the resistance of the monitor, the resistance provided by the output is equal to {fraction (1/2)}R. Because the resistance in this example embodiment can change by a factor of 2, so can the resultant voltage at the output of DAC 404, depending on whether a display device is present. As such, comparator 408 can be driven by a reference voltage between the range of voltages that can be seen by DAC 404 for a given current level in both the terminated and unterminated states (e.g., with and without a display device being connected). The output of comparator then provides an indication of whether a monitor or other display device is connected to video output pin 406. The output of the comparator 408 can be configured to provide a 1 or 0 for example for digital applications, or a positive or negative signal or other level for analog applications.
  • FIG. 15 is an operational flow diagram illustrating a process for determining whether a monitor is connected to the video output pin according to one embodiment of the invention. Specifically, FIG. 15 discusses the process in terms of the embodiment illustrated in FIG. 14. Referring now to FIGS. 14 and 15, in a [0122] step 412, DAC 404 outputs a current level. In alternative embodiments, DAC 404 could output a voltage level instead of a current level. However, as would be apparent to one of ordinary skill in the art after reading this disclosure, the comparison instead of being a voltage comparison in parallel with the termination resistance, would be a current comparison done in series.
  • In a [0123] step 414, the reference voltage VREF is applied to comparator 408. As stated above, reference voltage VREF is selected to lie between the maximum and minimum voltage levels expected at the output of the DAC depending on whether a monitor is connected to output pin 406. Under ideal conditions, the maximum voltage is
  • V=I*R1
  • and the minimum is: [0124]
  • V=I*R1*R2/R1+R2
  • where R2 is the impedance provided by the display. Where R1=2: [0125]
  • R1*R2/R1+R2=½R1=½R2
  • Thus, for example, in an embodiment where the impedance presented by R[0126] 1 is substantially equal to that of the display, VREF is selected as:
  • I*R1<VREF<I*½R1
  • Preferably, the reference voltage VREF is selected as substantially midway between the maximum voltage level as seen by the [0127] DAC 404 when a monitor is not connected, and the minimum voltage provided when a monitor is connected to pin 404. By selecting the reference voltage VREF at the midway point between these two extremes, the effects of noise on the system can be minimized. For example, consider a scenario in which DAC 404 drives a current of 100 milliamps (mA), the impedance of a typical display device is 75 ohms, and R1 is selected as 75 ohms. In this example scenario, if a monitor is not connected to output pin 406, the impedance seen by DAC 404 is 75 ohms and the voltage level provided to the input of the comparator is 7.5 volts. If, on the other hand, a monitor is connected to pin 406, the effective impedance seen by DAC 404 is 37.5 ohms, and the resultant voltage at the input of comparator 408 is 3.75 volts. Thus, in this example scenario, in a preferred embodiment voltage reference VREF is chosen as approximately 5.625 volts, or midway between the minimum expected voltage of 3.75 volts and the maximum expected voltage of 7.5 volts.
  • In a [0128] step 416, the output level of comparator 408 is read to determine whether a monitor is connected to pin 406. For example, depending on the configuration of the comparator, the output can be selected as being positive when the DAC voltage is greater than the reference voltage VREF. In this embodiment, the output of comparator 408 is positive when a monitor is not connected to pin 406 and negative if a monitor is connected to pin 406. Therefore, in a step 412, the device can use this level to determine whether a monitor is connected to pin 406.
  • In one embodiment, the output of [0129] comparator 408 can be provided to a register or other storage location such that the output can be polled or read by a processor at a given point in time or at a predetermined polling interval. Thus, the process described above can be implemented at a point in time when it does not interfere with the video signal and periodically read by a processor at a point in time that is most convenient for the processor. Preferably, in one embodiment, the process of testing for the connection of the monitor as described above, is performed during the vertical blanking interval (VBI) or during the overscan time to minimize or eliminate the impact of the current level on an output signal. Typically, the process described above can be performed in two to three clock cycles such that they can be completed within the VBI or the overscan time interval.
  • According to another aspect of the invention, it can be used to determine not only whether a monitor is connected, but also to determine what type of monitor is connected. For example, a composite video monitor typically has one composite video input. In contrast, an S video monitor utilizes two video components: luminance; and chrominance. Still further, an RGB monitor utilizes three components and therefore three video outputs, one for each of the corresponding RGB components. [0130]
  • In implementing this aspect of the invention, the detection device can be implemented for each of the [0131] output DACs 404. For example, in implementing the detection device with an encoder such as that illustrated in FIG. 5A, the detection circuitry can be provided at the output of each DAC 224, 226, and 228. Depending on which pins a monitor is detecting, it will indicate the type of monitor connected to the output of the encoder. FIG. 16 is a schematic diagram illustrating an example implementation of the detection device to detect the type of monitor to connect at the output of a video driver such as that found in encoder 220 according to one embodiment of the invention. As illustrated in FIG. 16, the circuitry, which includes comparator 408, reference voltage signal VREF and terminating resistance R1 is provided for each of DACs 222, 224 and 226. Thus, the outputs of comparators 408 for each of these DACs can be made available to a processor, state machine, logic circuitry, analog circuitry or other device to determine whether a monitor is connected, and if so, whether the monitor is, for example, an RGB monitor, a composite video monitor or an S-video monitor.
  • FIG. 17 is an operational flow diagram illustrating a process for detecting whether a monitor is connected to the output of a device such as [0132] encoder 220 and if so, determining which type of monitor is connected in accordance with one embodiment of the invention. Referring now to FIG. 17, in a step 506, the comparator output for each of comparators 408 is obtained. Based on this comparator output, in a step 508 the system detects the presence of a monitor connection for each DAC 224, 226 and 228. If a monitor connection is provided for each of the three DACs 224, 226 and 228, the system determines that it is an RGB monitor connected to encoder 220. This is illustrated by steps 512 and 514.
  • If, instead, the system determines, based on the output of the [0133] comparators 408, that a monitor connection is only provided for two of the DACs 224, 226, the system determines that an S-video monitor is connected. This is illustrated by steps 516 and 518. Alternatively, if the system determines that a monitor connection is provided only at one DAC 224, then the system determines that the monitor connected is a composite video monitor. Of course, if the presence of a monitor connection at one DAC is not detected in step 520, this indicates that no monitor is present as illustrated by step 524.
  • Although this aspect of the invention is described in conjunction with an encoder such as [0134] encoder 220, it will become obvious to one of ordinary skill in the art after reading this description that the monitor detection aspects of the invention can be implemented with any video output device.
  • In implementations where the detection device is implemented with an encoder such as [0135] encoder 220 or other integrated device, it is important to note that the detection circuitry can be implemented on-chip. As such, additional pin-outs are not required for the termination resistance and the comparator and other detection circuitry. As illustrated by the embodiments shown in FIGS. 14 and 16, the termination resistance RI and comparators 408 can be provided on-chip and the comparator output can be provided back to an on-chip processor or to a separate chip via an existing bus configuration. As such, additional connections or pin-outs are not required. This is advantageous, especially in situations where device size or pin out availability is limited.
  • While particular embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not as limitations. The breadth and scope of the present invention is defined by the following claims and their equivalents, and is not limited by the particular embodiments described herein. [0136]

Claims (42)

What is claimed is:
1. An apparatus for detecting the presence of a display device at the output of a video driver, comprising:
a terminating resistance connected between the output of the video driver and a ground level;
an output connector coupled to the output of the video driver and configured to accept connection of a display device; and
a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output;
wherein an output current from said video driver results in a voltage level at said first input of said comparator, said voltage level varying depending on whether or not the display device is connected to said output connector, thereby causing said output of said comparator to indicate whether the display device is connected.
2. The apparatus of claim 1, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1*R2/(R1+R2)<Vref<I*R1.
3. The apparatus of claim 2, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
4. The apparatus of claim 1, further comprising a buffer having an input coupled to said output of said comparator, an output coupled to a processor, and a storage location for storing the output level of said comparator.
5. The apparatus of claim 1, wherein said terminating resistance is equal to the resistance of the display device.
6. The apparatus of claim 5, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*{fraction (1/2)}R1<Vref<I*R1.
7. The apparatus of claim 6, wherein Vref is selected as substantially midway between the values I*{fraction (1/2)}R1 and I*R1.
8. The apparatus of claim 1, wherein said terminating resistance is 75 ohms.
9. The apparatus of claim 1, wherein said video driver is a DAC at an output of a video encoder.
10. The apparatus of claim 1, further comprising:
a second terminating resistance connected between an output of a second video driver and a ground level;
an second output connector coupled to the output of the second video driver and configured to accept connection of a display device;
a second comparator, having a first input connected to the output of the second video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from said second video driver results in a voltage level at said first input of said second comparator, said voltage level varying depending on whether or not the display device is connected to said output of said second video driver, thereby causing said output of said second comparator to indicate whether the display device is connected;
a third terminating resistance connected between an output of a third video driver and a ground level;
an third output connector coupled to the output of the third video driver and configured to accept connection of a display device; and
a third comparator, having a first input connected to the output of the third video driver and a third input connected to a reference voltage signal, and an output, wherein an output current from said third video driver results in a voltage level at said first input of said third comparator, said voltage level varying depending on whether or not the display device is connected to said output of said third video driver, thereby causing said output of said third comparator to indicate whether the display device is connected.
11. An apparatus for detecting the presence of a display device at the output of a video driver, comprising:
means for connecting a video display device to said video driver;
means for providing a terminating resistance at the output of the video driver, independently of whether a display device is connected; and
means for comparing a reference voltage signal with a voltage level generated at the output of said video driver by a current provided by said video driver to determine whether a display device is connected to the output of the video driver.
12. The apparatus of claim 11, wherein said means for providing a terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1*R2/(R1+R2)<Vref<I*R1.
13. The apparatus of claim 12, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
14. The apparatus of claim 11, further comprising a buffer means for providing an output level of said comparator to a processor.
15. The apparatus of claim 11, wherein means for providing a terminating resistance provides a resistance equal to the resistance of the display device.
16. The apparatus of claim 11, wherein said video driver is a DAC at an output of a video encoder.
17. A method for determining whether a display device is connected at the output of a video driver, comprising:
providing a terminating resistance at the output of the video driver, independently of whether a display device is connected; and
driving a current level at the output of the video driver
comparing a resultant voltage at the output of the video driver with a reference voltage level to determine whether a display device is connected to the output of the video driver.
18. The method of claim 17, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1*R2/(R1+R2)<Vref<I*R1.
19. The method of claim 18, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
20. The method of claim 17, further comprising a buffer having an input coupled to said output of said comparator, an output coupled to a processor, and a storage location for storing the output level of said comparator.
21. The method of claim 17, wherein said terminating resistance is equal to the resistance of the display device.
22. The method of claim 21, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*{fraction (1/2)}R1<Vref<I*R1.
23. The method of claim 22, wherein Vref is selected as substantially midway between the values I*{fraction (1/2)}R1 and I*R1.
24. The method of claim 17, wherein said video driver is a DAC at an output of a video encoder.
25. An apparatus for detecting the type of a display device connected at the output of a video device having three video drivers, the apparatus comprising
a circuit associated with each of said video drivers for detecting the presence of a display termination at each of the video driver outputs, each circuit including:
a terminating resistance connected between the output of the video driver and a ground level,
an output connector coupled to the output of the video driver and configured to accept connection of a display device, and
a comparator, having a first input connected to the output of the video driver and a second input connected to a reference voltage signal, and an output, wherein an output current from said video driver results in a voltage level at said first input of said comparator, said voltage level varying depending on whether or not a display device input is connected to said output connector, thereby causing said output of said comparator to indicate whether the display device is connected; and
means for detecting the comparator output of each circuit to determine whether a display device is connected to each associated video driver and to thereby determine the type of display device connected to the video processor.
26. The apparatus of claim 25, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1 *R2/(R1+R2)<Vref<I*R1.
27. The apparatus of claim 26, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
28. The apparatus of claim 25, further comprising a buffer having an input coupled to said output of said comparator, an output coupled to a processor, and a storage location for storing the output level of said comparator.
29. The apparatus of claim 25, wherein said terminating resistance is equal to the resistance of the display device.
30. The apparatus of claim 25, wherein said terminating resistance is 75 ohms.
31. The apparatus of claim 25, wherein said video device is a video encoder.
32. The apparatus of claim 25, wherein said means for detecting comprises at least one of the group of a processor, a state machine, logic circuitry, and analog circuitry.
33. A method for detecting the type of a display device connected at the output of a video device having three video drivers, the method comprising:
driving a current level at the output of each of said three video drivers, said outputs each coupled to an output connector and a terminating resistance;
measuring a voltage level at the output of each of said three video drivers;
comparing said measured voltage level to a reference voltage level, wherein said reference voltage level is between a first voltage level resulting from said current across said terminating resistance, and a second voltage level resulting from said current across a combination of said terminating resistance and a resistance of a display device connected to said output connectore; and
determining the type of display device connected based on the results of said comparing for each of said three video drivers.
34. The method of claim 33, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1*R2/(R1+R2)<Vref<I*R1.
35. The method of claim 34, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
36. The method of claim 33, wherein said terminating resistance is equal to the resistance of the display device.
37. The method of claim 33, wherein said video driver is a DAC at an output of a video encoder.
38. An apparatus for detecting the type of a display device connected at the output of a video device having three video drivers, the method comprising:
means for driving a current level at the output of each of said three video drivers, said outputs each coupled to an output connector and a terminating resistance;
means for measuring a voltage level at the output of each of said three video drivers;
means for comparing said measured voltage level to a reference voltage level, wherein said reference voltage level is between a first voltage level resulting from said current across said terminating resistance, and a second voltage level resulting from said current across a combination of said terminating resistance and a resistance of a display device connected to said output connectore; and
means for determining the type of display device connected based on the results of said comparing for each of said three video drivers.
39. The apparatus of claim 38, wherein said terminating resistance is R1, the resistance of the display device is R2 the current output from the video driver is I, and said reference voltage signal, Vref is selected as I*R1*R2/(R1+R2)<Vref<I*R1.
40. The apparatus of claim 34, wherein Vref is selected as substantially midway between the values I*R1*R2/(R1+R2) and I*R1.
41. The apparatus of claim 38, wherein said terminating resistance is equal to the resistance of the display device.
42. The apparatus of claim 38, wherein said video driver is a DAC at an output of a video encoder.
US09/239,501 1999-01-28 1999-01-28 Method and apparatus for detection of a video display device Expired - Fee Related US6819305B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US09/239,501 US6819305B2 (en) 1999-01-28 1999-01-28 Method and apparatus for detection of a video display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US09/239,501 US6819305B2 (en) 1999-01-28 1999-01-28 Method and apparatus for detection of a video display device

Publications (2)

Publication Number Publication Date
US20020005840A1 true US20020005840A1 (en) 2002-01-17
US6819305B2 US6819305B2 (en) 2004-11-16

Family

ID=22902438

Family Applications (1)

Application Number Title Priority Date Filing Date
US09/239,501 Expired - Fee Related US6819305B2 (en) 1999-01-28 1999-01-28 Method and apparatus for detection of a video display device

Country Status (1)

Country Link
US (1) US6819305B2 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060103685A1 (en) * 2004-11-17 2006-05-18 Chou Yu P Method for generating video clock and associated target image frame
US20060152624A1 (en) * 2005-01-07 2006-07-13 Samsung Electronics Co., Ltd. Method for generating a video pixel clock and an apparatus for performing the same
US20060158554A1 (en) * 2005-01-18 2006-07-20 Samsung Electronics Co., Ltd Method for generating a video pixel clock and apparatus for performing the same
US20060179372A1 (en) * 2004-12-20 2006-08-10 Volk Andrew M Signal drive de-emphasis control for serial bus
US20060181480A1 (en) * 2005-02-11 2006-08-17 Microsoft Corporation Detecting attachment or removal of a display monitor
US20080005407A1 (en) * 2006-05-22 2008-01-03 Bland Patrick M Detecting a Presence of a Device
US20090066633A1 (en) * 2007-09-11 2009-03-12 Kazuya Iwasaki Liquid crystal display control circuit, operation panel, and image forming apparatus
US20090231175A1 (en) * 2008-03-12 2009-09-17 Hua Wu Multimedia signal processing apparatus
WO2009125251A1 (en) * 2008-04-11 2009-10-15 Freescale Semiconductor, Inc. Device and method for evaluating connectivity between a video driver and a display
US20090268759A1 (en) * 2007-01-10 2009-10-29 Ronald Keen System and method for detecting and correcting a false embedded header
US20100128177A1 (en) * 2008-11-25 2010-05-27 Mediatek Inc. Signal processing units capable of providing plug-in detection
US20140211426A1 (en) * 2013-01-25 2014-07-31 Hon Hai Precision Industry Co., Ltd. Motherboard having two display connectors
US20190295501A1 (en) * 2017-01-25 2019-09-26 Fujitsu Client Computing Limited Information processor and computer-readable recording medium storing management program

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3556915B2 (en) * 2001-03-09 2004-08-25 松下電器産業株式会社 Video decoding display apparatus and video decoding display method
DE10114159C2 (en) * 2001-03-22 2003-09-11 Infineon Technologies Ag Method and device for data transmission
KR100423455B1 (en) * 2001-10-24 2004-03-18 삼성전자주식회사 Device for processing image signal and method therein
US7355611B2 (en) * 2002-11-26 2008-04-08 Hewlett-Packard Development Company, L.P. Method and arrangement for improving image quality on a display of an imaging device
US20050182880A1 (en) * 2004-02-17 2005-08-18 Jia-Shiung Kuo System and method of switching display status
US20080284793A1 (en) * 2004-04-15 2008-11-20 Young Wayne D Hue and saturation control module
TWI240559B (en) * 2004-04-16 2005-09-21 Realtek Semiconductor Corp Signal transmitter and driving method thereof
US20060195627A1 (en) * 2005-02-26 2006-08-31 Cole James R Detecting whether video source device is coupled to video display device
TWI342163B (en) * 2006-10-11 2011-05-11 Princeton Technology Corp Av player chip, av system, and related method capable of sharing digital-to-analog converter
US20090086104A1 (en) * 2007-09-28 2009-04-02 Felder Matthew D Multimedia soc with advanced jack sense applications
US20090174816A1 (en) * 2008-01-08 2009-07-09 Tim Hellman Method And System For Detection Of Video Connections
US20100253363A1 (en) * 2009-04-03 2010-10-07 Mindspeed Technologies, Inc. Method and system for cable detection
CN102624993A (en) * 2012-03-15 2012-08-01 惠州Tcl移动通信有限公司 Power-saving processing method and mobile phone adopting same
JP6421536B2 (en) * 2014-10-15 2018-11-14 セイコーエプソン株式会社 Drivers and electronic devices
US11551635B2 (en) 2020-07-30 2023-01-10 Hewlett Packard Enterprise Development Lp Determining whether video display interfaces are coupled to terminations

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4126851A (en) * 1975-11-03 1978-11-21 Okor Joseph K Programmable television game system
US4471348A (en) * 1982-01-15 1984-09-11 The Boeing Company Method and apparatus for simultaneously displaying data indicative of activity levels at multiple digital test points in pseudo real time and historical digital format, and display produced thereby
US5291187A (en) * 1991-05-06 1994-03-01 Compaq Computer Corporation High-speed video display system
EP0520454B1 (en) * 1991-06-26 1998-10-14 Kabushiki Kaisha Toshiba Display control system for determining connection of optional display unit by using palette
JPH0573016A (en) * 1991-09-17 1993-03-26 Toshiba Corp Display controller
JPH07501164A (en) * 1991-11-21 1995-02-02 イマジネイション テクノロジーズ リミテッド Video/graphics memory system
US5781174A (en) * 1992-07-14 1998-07-14 Matsushita Electric Industrial Co., Ltd. Image synthesizer and image pointing system
JPH07129139A (en) * 1993-11-05 1995-05-19 Fujitsu Ltd Display device
US5495263A (en) * 1994-01-28 1996-02-27 Compaq Computer Corp. Identification of liquid crystal display panels
WO1995029558A1 (en) * 1994-04-20 1995-11-02 Shoot The Moon Products, Inc. Method and apparatus for nesting secondary signals within a television signal
US5604510A (en) * 1995-01-10 1997-02-18 Palomar Technologies Corporation Liquid crystal display drive with voltage translation
EP0734011A3 (en) * 1995-03-21 1999-01-20 Sun Microsystems, Inc. Field synchronization of independent frame buffers
JPH09218670A (en) * 1996-02-14 1997-08-19 Fujitsu Ltd Display device with display mode discrimination function and display mode discriminating method
JP3734306B2 (en) * 1996-05-13 2006-01-11 ローム株式会社 Color encoder
US5844629A (en) * 1996-05-30 1998-12-01 Analog Devices, Inc. Digital-to-analog video encoder with novel equalization
US6005634A (en) * 1996-07-24 1999-12-21 Motorola, Inc. Method and apparatus for controlling the display of a video image
US6327002B1 (en) * 1998-10-30 2001-12-04 Ati International, Inc. Method and apparatus for video signal processing in a video system
US6326935B1 (en) * 1999-09-28 2001-12-04 Gateway, Inc. Method and apparatus for changing the mode of a display apparatus

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060103685A1 (en) * 2004-11-17 2006-05-18 Chou Yu P Method for generating video clock and associated target image frame
US7893997B2 (en) * 2004-11-17 2011-02-22 Realtek Semiconductor Corp. Method for generating video clock and associated target image frame
US20060179372A1 (en) * 2004-12-20 2006-08-10 Volk Andrew M Signal drive de-emphasis control for serial bus
US7568127B2 (en) * 2004-12-20 2009-07-28 Intel Corporation Signal drive de-emphasis control for serial bus
US20060152624A1 (en) * 2005-01-07 2006-07-13 Samsung Electronics Co., Ltd. Method for generating a video pixel clock and an apparatus for performing the same
US20060158554A1 (en) * 2005-01-18 2006-07-20 Samsung Electronics Co., Ltd Method for generating a video pixel clock and apparatus for performing the same
US7477247B2 (en) * 2005-02-11 2009-01-13 Microsoft Corporation Detecting attachment or removal of a display monitor
US20060181480A1 (en) * 2005-02-11 2006-08-17 Microsoft Corporation Detecting attachment or removal of a display monitor
US20080005407A1 (en) * 2006-05-22 2008-01-03 Bland Patrick M Detecting a Presence of a Device
US20090006673A1 (en) * 2006-05-22 2009-01-01 International Business Machines Corporation Detecting a presence of a device
US7464195B2 (en) 2006-05-22 2008-12-09 International Business Machines Corporation Method and apparatus for detecting a presence of a device
US20090268759A1 (en) * 2007-01-10 2009-10-29 Ronald Keen System and method for detecting and correcting a false embedded header
US20090066633A1 (en) * 2007-09-11 2009-03-12 Kazuya Iwasaki Liquid crystal display control circuit, operation panel, and image forming apparatus
US8169398B2 (en) * 2007-09-11 2012-05-01 Ricoh Company, Limited Liquid crystal display control circuit, operation panel, and image forming apparatus
US20090231175A1 (en) * 2008-03-12 2009-09-17 Hua Wu Multimedia signal processing apparatus
US20110013088A1 (en) * 2008-04-11 2011-01-20 Freescale Semiconductor, Inc. Device and method for evaluating connectivity between a video driver and a display
WO2009125251A1 (en) * 2008-04-11 2009-10-15 Freescale Semiconductor, Inc. Device and method for evaluating connectivity between a video driver and a display
US8456529B2 (en) * 2008-04-11 2013-06-04 Freescale Semiconductor, Inc. Device and method for evaluating connectivity between a video driver and a display
US20100128177A1 (en) * 2008-11-25 2010-05-27 Mediatek Inc. Signal processing units capable of providing plug-in detection
US20140211426A1 (en) * 2013-01-25 2014-07-31 Hon Hai Precision Industry Co., Ltd. Motherboard having two display connectors
US20190295501A1 (en) * 2017-01-25 2019-09-26 Fujitsu Client Computing Limited Information processor and computer-readable recording medium storing management program
US10607565B2 (en) * 2017-01-25 2020-03-31 Fujitsu Client Computing Limited Information processing device and method for enabling update in convertor that connects with first display device without connecting first display device

Also Published As

Publication number Publication date
US6819305B2 (en) 2004-11-16

Similar Documents

Publication Publication Date Title
US6441857B1 (en) Method and apparatus for horizontally scaling computer video data for display on a television
US6819305B2 (en) Method and apparatus for detection of a video display device
US6219101B1 (en) Method and apparatus for video flicker filter
US5812210A (en) Display apparatus
KR100195361B1 (en) Wide screen television
EP0229431B1 (en) Picture-in-picture color television receiver
CA2030941C (en) Real time video converter providing special effects
US4498098A (en) Apparatus for combining a video signal with graphics and text from a computer
EP0213912B2 (en) Video display system for wide and standard aspect ratio video signals
US5229853A (en) System for converting a video signal from a first format to a second format
US5327243A (en) Real time video converter
EP0096627A2 (en) Interactive computer-based information display system
JPS59198494A (en) Font calling system
US5526055A (en) Apparatus and method to derive a television color subcarrier frequency signal from a computer video signal
DK165537B (en) COMPATIBLE REMOTE VIEW SYSTEM WITH WIDE SCREEN SCREEN
EP0241284A2 (en) Television display system
Jack Digital video and DSP: Instant access
KR100233900B1 (en) Display device
JP2002305752A (en) Image signal processing apparatus
JPH10510957A (en) Video data timing signal supply controller
US20020113891A1 (en) Multi-frequency video encoder for high resolution support
KR100943902B1 (en) Ordinary image processing apparatus for digital TV monitor
JPH11136592A (en) Image processor
TW315576B (en)
Hurley A single chip line 21 captioning decoder

Legal Events

Date Code Title Description
AS Assignment

Owner name: CONEXANT SYSTEMS, INC., CALIFORNIA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:WICKER, DAVID J.;REEL/FRAME:009759/0513

Effective date: 19990128

AS Assignment

Owner name: CREDIT SUISSE FIRST BOSTON, NEW YORK

Free format text: SECURITY INTEREST;ASSIGNOR:CONEXANT SYSTEMS, INC.;REEL/FRAME:010450/0899

Effective date: 19981221

AS Assignment

Owner name: CONEXANT SYSTEMS, INC., CALIFORNIA

Free format text: RELEASE OF SECURITY INTEREST;ASSIGNOR:CREDIT SUISSE FIRST BOSTON;REEL/FRAME:012252/0865

Effective date: 20011018

Owner name: BROOKTREE CORPORATION, CALIFORNIA

Free format text: RELEASE OF SECURITY INTEREST;ASSIGNOR:CREDIT SUISSE FIRST BOSTON;REEL/FRAME:012252/0865

Effective date: 20011018

Owner name: BROOKTREE WORLDWIDE SALES CORPORATION, CALIFORNIA

Free format text: RELEASE OF SECURITY INTEREST;ASSIGNOR:CREDIT SUISSE FIRST BOSTON;REEL/FRAME:012252/0865

Effective date: 20011018

Owner name: CONEXANT SYSTEMS WORLDWIDE, INC., CALIFORNIA

Free format text: RELEASE OF SECURITY INTEREST;ASSIGNOR:CREDIT SUISSE FIRST BOSTON;REEL/FRAME:012252/0865

Effective date: 20011018

AS Assignment

Owner name: BANK OF NEW YORK TRUST COMPANY, N.A.,ILLINOIS

Free format text: SECURITY AGREEMENT;ASSIGNOR:CONEXANT SYSTEMS, INC.;REEL/FRAME:018711/0818

Effective date: 20061113

Owner name: BANK OF NEW YORK TRUST COMPANY, N.A., ILLINOIS

Free format text: SECURITY AGREEMENT;ASSIGNOR:CONEXANT SYSTEMS, INC.;REEL/FRAME:018711/0818

Effective date: 20061113

FPAY Fee payment

Year of fee payment: 4

AS Assignment

Owner name: THE BANK OF NEW YORK MELLON TRUST COMPANY, NATIONA

Free format text: CHANGE OF NAME;ASSIGNOR:BANK OF NEW YORK TRUST COMPANY, N.A.;REEL/FRAME:023699/0205

Effective date: 20080701

Owner name: CONEXANT SYSTEMS, INC., CALIFORNIA

Free format text: CHANGE OF NAME;ASSIGNOR:BANK OF NEW YORK TRUST COMPANY, N.A.;REEL/FRAME:023699/0205

Effective date: 20080701

Owner name: CONEXANT SYSTEMS, INC., CALIFORNIA

Free format text: RELEASE BY SECURED PARTY;ASSIGNOR:THE BANK OF NEW YORK MELLON TRUST COMPANY, NATIONAL ASSOCIATION;REEL/FRAME:023699/0044

Effective date: 20091223

AS Assignment

Owner name: WI-LAN INC., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CONEXANT SYSTEMS, INC.;REEL/FRAME:023802/0041

Effective date: 20091222

AS Assignment

Owner name: WI-LAN INC.,CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:CONEXANT SYSTEMS INC.;REEL/FRAME:023985/0894

Effective date: 20091222

FPAY Fee payment

Year of fee payment: 8

REMI Maintenance fee reminder mailed
LAPS Lapse for failure to pay maintenance fees
STCH Information on status: patent discontinuation

Free format text: PATENT EXPIRED DUE TO NONPAYMENT OF MAINTENANCE FEES UNDER 37 CFR 1.362

FP Lapsed due to failure to pay maintenance fee

Effective date: 20161116

AS Assignment

Owner name: QUARTERHILL INC., CANADA

Free format text: MERGER AND CHANGE OF NAME;ASSIGNORS:WI-LAN INC.;QUARTERHILL INC.;REEL/FRAME:042902/0878

Effective date: 20170601

AS Assignment

Owner name: WI-LAN INC., CANADA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:QUARTERHILL INC.;REEL/FRAME:043165/0898

Effective date: 20170601