0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
LM1270

LM1270

  • 厂商:

    NSC

  • 封装:

  • 描述:

    LM1270 - Hi-Brite 200 MHz I2C Compatible RGB Image Enhancer with Video Auto Sizing - National Semico...

  • 数据手册
  • 价格&库存
LM1270 数据手册
LM1270 Hi-Brite 200 MHz I2C Compatible RGB Image Enhancer with Video Auto Sizing May 2003 LM1270 Hi-Brite 200 MHz I2C Compatible RGB Image Enhancer with Video Auto Sizing General Description The LM1270 is a supplementary IC to the low cost chipset (LCCS). It modifies the video stream prior to the LCCS preamplifier. The key function of the LM1270 is image processing for enhancing pictures or motion video. Image enhancement is accomplished by special intermediate frequency boosting. 200 MHz bandwidth assures minimal impact on the video change when adding the LM1270. Other functions of the LM1270 are: 1. Measures the length of the active video and its front porch time with respect to the horizontal flyback and vertical sync for auto alignment information. 2. Calibration mode for determining the start of the image coordinates. 3. Data receiver for receiving data encoded on video. 4. Window highlight with respect to the horizontal and vertical sync, used with the image enhancing feature. 5. Video source selection, allowing the choice of two analog inputs. Features n Ideal companion IC to the LCCS to provide image enhancing for viewing pictures or motion video n Programmable clamp generator n Programmable blank generator n Video detection controlled by I2C compatible bus, allowing easy and accurate Hi-Brite window calibration n Programmable window Hi-Brite function n Programmable image sharpness control (TV emphasis), adjustable for different line rates n Measures video position with respect to the horizontal flyback and vertical sync pulses, providing necessary information for auto-sizing n Emphasis done either inside or outside the window Applications n Any monitor designed with the LCCS chip set n Standard 0.7V video output assures compatibility with any video pre-amp Block and Connection Diagram 20063501 FIGURE 1. Order Number LM1270N See NS Package Number N24D © 2003 National Semiconductor Corporation DS200635 www.national.com LM1270 Absolute Maximum Ratings 3) (Notes 1, Thermal Resistance to Ambient (θJA) Thermal Resistance to Case (θJC) Junction Temperature (TJ) ESD Susceptibility (Note 4) ESD Machine Model (Note 5) Storage Temperature Lead Temperature (Soldering, 10 sec.) 51˚C/W 32˚C/W 150˚C 2 kV 200V −65˚C to +150˚C 265˚C If Military/Aerospace specified devices are required, please contact the National Semiconductor Sales Office/ Distributors for availability and specifications. Supply Voltage, Pins 9 and 18 Peak Video Output Source Current (Any One Amp) Pins 19, 20 or 21 Voltage at Any Input Pin (VIN) Power Dissipation (PD) (Above 25˚C Derate Based on θJA and TJ) VCC +0.5 > VIN > −0.5V 6.0V 28 mA Operating Ratings (Note 2) Temperature Range Supply Voltage (VCC & PLL VCC) Video Inputs 0˚C to +70˚C 4.75V < VCC < 5.25V 0.0V < VIN < 1.0VP-P 2.4W Active Video Signal Electrical Characteristics Unless otherwise noted: TA = 25˚C, VCC = +5V, VIN = 0.7V, CL = 5 pF, Video Signal Output = 0.7VP-P. Symbol ICC ICC-PS LE VO BLK TYP VO BLK A-B VO WHITE-MAX tr OSR tf OSF f (−3 dB) VSEP 10 kHz VSEP 10 MHz AV MAX AV 1/2 AV MIN AV MATCH AV TRACK VIDTHRESHOLD VCLAMP MAX VCLAMP MIN ICLAMP LOW Parameter Maximum Supply Current Maximum Supply Current, Power Save Mode Linearity Error Typical Video Black Level Output Typical Video Black Level Difference A-B White Level Video Output Voltage Rise Time Overshoot (Rising Edge) Fall Time Overshoot (Falling Edge) Video Amplifier Bandwidth (Note 12) Video Amplifier 10 kHz Isolation Video Amplifier 10 MHz Isolation Maximum Voltage Gain Contrast @ 50% Level Maximum Contrast Attenuation Absolute Gain Match @ AV Conditions Both Supplies, RL = ∞ (Note 8) Both Supplies, RL = ∞ (Note 8) Triangular Signal Input Source (Note 9) Test Setting 4, No AC Input Signal No AC Input Signal Video in = 0.7V 10% to 90%, AC Input Signal (Note 10) AC Input Signal (Note 10) 90% to 10%, AC Input Signal (Note 10) AC Input Signal (Note 10) VO = 1VP-P (Note 14) (Note 14) Reg. 09 & 0A = 7Fh, AC Input Signal Reg. 09 & 0A = 40h, AC Input Signal Reg. 09 & 0A = 00h, AC Input Signal Reg. 09 & 0A = 7Fh, AC Input Signal Tracking When Changing AV AV 1/2 (Note 11) Normal Operation Default Mode, Clamp Comparators Off Default Mode, Clamp Comparators On Default Mode, V24 = 0V 2.8 −1.6 −1.4 −1.1 MAX Min Typ Max Units (Note 7) (Note 6) (Note 7) 165 15 25 5 1.2 −0.05 0.9 1.4 0 1.0 1.9 6 2.0 8 200 −70 −50 1.3 1.4 −5 −10 1.5 1.6 0.05 1.1 235 35 mA mA % VDC VDC V ns % ns % MHz dB dB V/V dB dB dB dB mV 2.2 V V mA MAX ± 0.5 to Gain Change between Amplifiers Video Threshold Clamp Gate Low Input Voltage Clamp Gate High Input Voltage Clamp Gate Input Current ± 0.5 80 www.national.com 2 LM1270 Active Video Signal Electrical Characteristics Symbol ICLAMP HIGH tPW CLAMP tCLAMP-VIDEO VCLAMP HIGH OUT ICLAMP HIGH OUT VCLAMP LOW OUT ICLAMP LOW OUT RIN-VIDEO VREF REXT VSPOT Parameter Clamp Gate Input Current Back Porch Clamp Pulse Width End of Clamp Pulse to Start of Active Video Clamp Gate High Output Voltage Clamp Gate High Output Current Clamp Gate Low Output Voltage Clamp Gate Low Output Current Input Resistance VREF REXT Output Voltage Spot Killer Voltage (Continued) Unless otherwise noted: TA = 25˚C, VCC = +5V, VIN = 0.7V, CL = 5 pF, Video Signal Output = 0.7VP-P. Conditions Default Mode, V24 = 4V Default Mode (Note 15) Default Mode, Limit Is Guaranteed by Design Internal Clamp Is Output at Pin 24 Internal Clamp Is Output at Pin 24 Internal Clamp Is Output at Pin 24 Internal Clamp Is Output at Pin 24 20 10 kΩ, 1% Resistor; Pin 23 to GND VCC Adjusted to Activate 1.26 3.40 1.44 4.0 1.64 4.25 0.4 −10 Min Typ Max Units (Note 7) (Note 6) (Note 7) 0.5 200 50 3.2 10 0.7 0.9 mA ns ns V µA V µA MΩ V V External Interface Signals Electrical Characteristics Unless otherwise noted: TA = 25˚C, VCC = +5V, VIN = 0.7V, CL = 5 pF, Video Output = 0.7 VP-P. Symbol VL(I2C) VH(I C) IL(I2C) IH(I C) VOL(I2C) IIN THRESHOLD IIN-OPERATING 2 2 Parameter I2C compatible Low Input Voltage I2C compatible High Input Voltage I2C compatible Low Input Current I C compatible High Input Current IIN H-Flyback Detection Threshold Minimum — Insure Normal Operation Maximum — Should Not Exceed in Normal Operation 2 Conditions SDA or SCL Inputs SDA or SCL Inputs SDA or SCL, Input Voltage = 0.4V SDA or SCL, Input Voltage = 4.5V Min Typ Max Units (Note 7) (Note 6) (Note 7) −0.5 3.0 1.5 VCC + 0.5 V V µA µA V µA µA −550 ± 10 ± 10 0.5 −35 I2C compatible Low Output Voltage IO = 3 mA Lowest Operating Horizontal Frequency in Given Application (Note 15) Operating Range for All Horizontal Scan Frequencies, Maximum Current Should Not Exceed 4 mA (Note 15) −50 IIN FLYBACK Peak Current during Flyback Period, Recommended Design Range 2.0 3.0 4.0 mA Note 1: Limits of Absolute Maximum Ratings indicate limits below which damage to the device must not occur. Note 2: Limits of operating ratings indicate required boundaries of conditions for which the device is functional, but may not meet specific performance limits. Note 3: All voltages are measured with respect to GND, unless otherwise specified. Note 4: Human body model, 100 pF capacitor discharged through a 1.5 kΩ resistor. Note 5: Machine Model ESD test is covered by specification EIAJ IC-121-1981. A 200 pF capacitor is charged to the specified voltage, then discharged directly into the IC with no external series resistor (resistance of discharge path must be under 50Ω). Note 6: Typical specifications are specified at +25˚C and represent the most likely parametric norm. Note 7: Tested limits are guaranteed to National’s AOQL (Average Outgoing Quality Level). Note 8: The supply current specified is the quiescent current for VCC with RL = ∞. Load resistors are not required and are not used in the test circuit, therefore all the supply current is used by the pre-amp. Note 9: Linearity Error is the variation in step height of a 16 step staircase input signal waveform with a 0.7 VP-P level at the input, subdivided into 16 equal steps, with each step approximately 100 ns in width. Note 10: Input from signal generator: tr, tf < 1 ns. Scope and generator response used for testing: tr = 1.1 ns, tf = 0.9 ns. Using the RSS technique the scope and generator response have been removed from the output rise and fall times. Note 11: ∆AV track is a measure of the ability of any two amplifiers to track each other and quantifies the matching of the three gain stages. It is the difference in gain change between any two amplifiers with the contrast set to AV 1/2 and measured relative to the AV max condition. For example, at AV max the three amplifiers’ gains might be 0.1 dB, −0.1 dB, and −0.2 dB and change to −5.2 dB, −4.9 dB and −4.7 dB respectively for contrast set to AV 1/2. This yields a typical gain change of −5.0 dB with a tracking change of ± 0.2 dB. Note 12: Adjust input frequency from 10 MHz (AV max reference level) to the −3 dB corner frequency (f−3 dB). Note 13: Measure output levels of the other two undriven amplifiers relative to the driven amplifier to determine channel separation. Terminate the undriven amplifier inputs to simulate generator loading. Repeat test at fIN = 10 MHz for VSEP 10 MHz. Note 14: A minimum pulse width of 200 ns is guaranteed for a horizontal line of 15 kHz. This limit is guaranteed by design. If a lower line rate is used then a longer clamp pulse may be required. 3 www.national.com LM1270 External Interface Signals Electrical Characteristics Note 15: Limits met by matching the external resistor going to pin 24 to the H Flyback voltage. (Continued) Typical Performance Characteristics VCC = 5V, TA = 25˚C unless otherwise specified. Emphasis, Center Frequency at Maximum Center Frequency, Emphasis at Maximum 20063502 20063503 The above two plots show the processing done by the LM1270 on the video input signal. There are two variables for the video processing, emphasis and center frequency. Emphasis is controlled by bits 0-2 in register 0B. This gives 8 different levels of emphasis. In the above plot the center frequency is set at its maximum level and the 8 different levels of emphasis is measured. The output video with no emphasis is adjusted to a 0.7 VP-P level. Using maximum emphasis the video is increased to a 0.9 VP-P level at the rising edge of the video. If the falling edge was measured it would show a similar waveform, but going in the negative direction. Center frequency is shown in the second plot. Control of the center frequency is done with bits 0-3 in register 0C. This gives 16 adjustments for this feature. Every other adjustment is shown in the above plot, showing all 16 adjustments would have made the plot too hard to read. The curves closely approximate the peaking of an RC network, therefore the term center frequency means the RC time constant that is approximated by each curve in the above plot. A true RC peaking network would give very large overshoots. The LM1270 has special circuitry to clip the very large overshoots, yet has the complete benefit of the RC peaking. This special circuitry allows for much more overshoot than one could do with RC peaking and still not saturate the video channel. Note that the video channel with the emphasis also has its own independent contrast control. This allows the user to adjust his monitor for a brighter picture within the Hi-Brite window and optimize the emphasis for the resolution he is using with the monitor. Now the user of the monitor can give his pictures or video a special “sparkle” when using the capabilities of the LM1270. www.national.com 4 LM1270 Pin Descriptions Pin No. 1 2 3 Pin Name Blue 1 Video In Red 1 Video In Green 1 Video In Schematic Description Channel 1 video inputs. These inputs must be AC coupled with a 0.1 µF cap. DC restoration is done at these inputs. A series resistor of about 33Ω and external ESD protection diodes should also be used. Channel 1 video passes through the emphasis section used for the Hi-Brite window. When using Hi-Brite the channel 1 input pin must be shorted to the corresponding channel 2 input pin. 4 Analog Input Ground Blue 2 Video In Red 2 Video In Green 2 Video In Ground Pin for the input analog circuits of the LM1270 Channel 2 video inputs. These video inputs must be AC coupled with a 0.1 µF cap. DC restoration is done at these inputs. A series resistor of about 33Ω and external ESD protection diodes should also be used. When using Hi-Brite the channel 2 input pin must be shorted to the corresponding channel 1 input pin. 5 6 7 8 10 Digital Ground PLL VCC The ground pin should be connected to the rest of the circuit ground by a short but independent PCB trace to prevent contamination by extraneous signals. The VCC pin should be isolated from the rest of the VCC line by a ferrite bead and bypassed to pin 8 with an electrolytic capacitor and a high frequency ceramic. Recommended topology and values are shown to the left. It is recommended that both filter branches be bypassed to the independent ground as close to pin 8 as possible. Great care should be taken to prevent external signals from coupling into this filter from video, I2C compatible bus, etc. 9 PLL Filter 11 V Sync Logic level vertical sync signal received from the video card in the PC or sync stripper circuit. 5 www.national.com LM1270 Pin Descriptions Pin No. 12 Pin Name H Sync (Continued) Schematic Description Logic level horizontal sync signal received from the video card in the PC or sync stripper circuit. 13 SCL The I2C compatible Clock line. A pull-up resistor of about 2 kΩ should be connected between this pin and VCC. A 100Ω resistor should be connected in series with the clock line for additional ESD protection. 14 SDA The I2C compatible data line. A pull-up resistor of about 2 kΩ should be connected between this pin and VCC. A 100Ω resistor should be connected in series with the data line for additional ESD protection. 15 Blank/Interrupt Out This output pin can be selected for Vertical Blank, blank all the video, or no blanking. Provides the blanking signal normally used at G1 of the CRT, blanking the video during vertical retrace. If blanking is not required, this pin may be used as an interrupt signal for the microcontroller. 16 H Flyback Proper operation requires current reversal. RH should be large enough to limit the peak current at pin 16 to about +2 mA during blanking, and −300 µA during scan. C17 is usually needed for logic level inputs and should be large enough to make the time constant, RHC17 significantly larger than the horizontal period. RFil and CFil are typically 300Ω and 330 pF when the flyback waveform has ringing and needs filtering. These two parts are not used on the current neck board. C57 may be needed to filter extraneous noise and can be up to 100 pF. www.national.com 6 LM1270 Pin Descriptions Pin No. 17 18 Pin Name Ground VCC (Continued) Schematic Description Ground pin for the output analog portion of the LM1270 circuitry, and power supply pin for all the analog of the LM1270. Note the recommended charge storage and high frequency capacitors which should be as close to pins 17 and 18 as possible. Video outputs of the LM1270. Typically the output is set to 0.7 VP-P to drive any standard video pre-amp. When Hi-Brite is activated the user can set the video output as high as 1.0 VP-P. 19 20 21 Green Video Out Red Video Out Blue Video Out 22 VREF Cap Provides filtering for the internal voltage which sets the internal bias current in conjunction with REXT. A minimum of 0.1 µF is recommended for proper filtering. This capacitor should be placed as close to pin 22 and the analog ground return as possible. This pin can also be set to use an external VREF. 23 VREFREXT Sets the internal current sources through a 10 kΩ 1% external resistor. Resistor value and accuracy is critical for optimum operation of the LM1270. This resistor should be placed as close to pin 23 and the analog ground return as possible. 24 Clamp This pin can either accept an external clamp pulse or send an internally generated clamp pulse to the video circuits. As an input this pin accepts either TTL or CMOS logic levels. The internal switching threshold is approximately one-half of VCC. An external series resistor, RCLP, of about 1 kΩ is recommended to avoid overdriving the input devices, or for current limiting the drivers if being used as an output. CCLP may be necessary for filtering noise on the clamp input. RLOAD should be used if this pin is an output with a value of about 10 kΩ. 7 www.national.com LM1270 Functional Description VIDEO SECTION The LM1270 gives the monitor designer the ability to add a highlighted window to the CRT monitor. Special software provided manufacturer enables the user to select the area he wants to have highlighted. National Semiconductor refers to this feature as Hi-Brite. Referring to Figure 1, the Block Diagram of the LM1270, note that there are two channels for each video input. Of the three video channels only the blocks of the blue channel are shown since all three channels have the same blocks. A buffer stage is located at the video inputs and this is followed by a contrast control. Referring to channel one (B1 input), the contrast control is followed by an emphasis block. The combination of the emphasis control and the contrast control gives the desired highlighted video inside the Hi-Brite window. The output of the emphasis stage and the output of the contrast control in channel two go to a high-speed video switch, which selects the video channel going to the output stage. Having an independent contrast control in each video channel allows the user to adjust the video gain, normally having the higher gain in channel one, giving a “brighter” picture within the Hi-Brite window. The Emphasis stage is used to give more “sparkle” to the highlighted video. Video going into the emphasis stage has peaking added to the video. Both the amplitude and the duration of the peaking are adjustable through the I2C compatible bus, optimizing the emphasis for different video resolutions. Maximum peaking is 20%. Although most uses of the Hi-Brite would be for the video inside the selected window, the reverse may be selected where all the video outside the window is processed through the emphasis stage. Please remember that for all video inputs the corresponding channel one input and the channel two input must be shorted together. Standard AC coupling such as used with the LM123X or LM124X pre-amps is to be used with the LM1270. I2C COMPATIBLE INTERFACE Pins 13 and 14 receive signals from an I2C compatible bus. The interface section is used to decode the I2C compatible signal and update the registers. Note that all functions of the LM1270 are controlled through an I2C or an I2C compatible bus. Details on the internal registers are covered in the I2C compatible Interface Registers Section. PLL A phase locked loop (PLL) is required for the LM1270 to sync all the timing circuits to the incoming horizontal sync. Proper operation of both the Hi-Brite window and the video detection requires a proper lock of the PLL reference pulse to the horizontal sync. Careful layout of the loop filter at pin 10 is necessary for keeping noise out of the PLL section. The register to the PLL is used to set the number of pixels per line for the internal counters that set the Hi-Brite window, generate the internal clamp pulse, and set the counters for the video detection. The maximum number of pixels per line is 2,047, or 7Fh. For good resolution of the window, 640 is the recommended minimum pixels per line. The VCO has a running frequency range of 110 MHz to 160 MHz when using prescaler 7. For the other pre-scaler settings the frequency range is 120 MHz to 220 MHz. The output of the VCO goes to a pre-scaler with a 3 bit register, dividing the VCO output by up to 8. Minimum division is 1, just a straight pass through the pre-scaler. Calculating the VCO frequency: FVCO = VCO frequency www.national.com 8 FH = Horizontal line frequency N = Number of pixels per line M = PLL pre-scaler Using the above terms gives the following formula for the PLL: FVCO = N * M * FH It is easiest to run the PLL in AUTO mode, setting bit 7 of address 0E to a “1”. Here the user programs in the desired pixels per line and the part will select the preferred pre-scaler number. If one is using manual mode below is a table showing the relationship between the pre-scaler and the VCO frequency. The chart shows the pixel frequency, FP. FP = FVCO/M The necessary pixels per line is calculated by the following formula: N = FP/FH PRES PRES PRES PRES FP(max) Fp(min) C2 C2 C2 DIV RATIO MHz MHz 1 1 1 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 2 3 4 5 6 7 8 160.0 110.0 73.3 55.0 44.0 36.7 31.4 27.5 110.0 60.0 40.0 30.0 24.0 20.0 17.1 10.0 TIMING AND WINDOW GENERATION SECTION All timing is referenced to the vertical and horizontal sync inputs that come in on pins 11 and 12 respectively. The two registers near the inputs sets the start of the window for both the horizontal and vertical direction. The window generator and the following logic are used to generate a pulse to control the video switch used to switch between the video with emphasis and the standard video. The switching between the two video channels is the generation of the window seen by the user. There is the option to switch off the Hi-Brite window. An additional switch located just before the video switch is used to turn off the control signal. Video detection is another important function inside the LM1270. Note that both video channels, the PLL, and both vertical sync and horizontal flyback signals all go to this block. From these inputs the video detection is used to detect the length of the horizontal and vertical front porch as well as the length of the active video for both the horizontal and vertical directions. This information allows the monitor designer to offer auto alignment in his monitor. Further processing of the video information in the video and window timing data section generates an internal clamp pulse. This is the DC restoration pulse for the LM1270. Pin 24 is the output for the clamp pulse, allowing the monitor designer to use it for the clamp input of the pre-amp. There is also the option to program the LM1270 to accept an external clamp pulse instead of using its own internally generated pulse. The video detection section also has a data receiver for receiving data encoded on the video. When this feature is used, the MCU in the monitor is used to control the LM1270, keeping all communication with the LM1270 within the monitor. This results in a faster response time by eliminating the need for the computer to control the LM1270. Control by the computer requires communication through the monitor MCU. LM1270 Functional Description (Continued) Using the data encoded on the video eliminates one stage of communicating with the LM1270, allowing for a faster response time for changes in the Hi-Brite window. VREF Proper operation of the LM1270 does require a very accurate reference voltage. This voltage is generated in the VREF block. To insure an accurate voltage over temperature, an external resistor is used to set the current in the VREF stage. The external resistor is connected to pin 23. This resistor should be 1% and have a temperature coefficient under 100 ppm/˚C. ALL VIDEO SIGNALS MUST BE KEPT AWAY FROM PIN 23. This pin has a very high input impedance and will pick up any high frequency signals routed near it. The board layout shown in Figure 12 is a good example of trace routing near pin 23. The output of the VREF stage goes to a number of blocks in the video section and also to pin 22. This pin allows capacitor filtering on the VREF output and offers an accurate external reference. A buffer must be used with this reference, the maximum current loading should be only 100 µA. Pin 22 is bi-directional, allowing the LM1270 to be referenced to a pre-amp VREF. This configuration makes it possible to DC couple to the pre-amp, but for accurate DC level, it is recommended that AC coupling be used between the LM1270 and the pre-amp. It is also recommended that the internal VREF be used for best performance. Note: Any noise injected into pin 22 will appear on the video. The voltage reference must be kept very clean for best performance of the LM1270. H FLYBACK H Flyback is an analog signal input from the monitor horizontal scan. This flyback signal goes to the internal horizontal flyback pulse generation circuit. An optional capacitor and/or resistor to ground may be needed if noise interferes with the H Flyback signal or if there is ringing on the H Flyback signal. Note: there is no blanking pedestal on the output video. If horizontal blanking is to be added to the video signal it must be done at the pre-amp. RLIMIT is used to limit the input current into the IC to a maximum value of +1 mA during flyback and −100 µA during normal forward scan. For example if an H flyback with a peak of 100V is used, RLIMIT = 100 kΩ. The internal input impedance of pin 16 is low to limit the maximum voltage swing at the input to be within the supply rail and ground. Figure 2 shows the H flyback waveforms and the location of RLIMIT. A 56 pF capacitor has been added to the H Flyback pin for filtering noise on the H Flyback signal. 20063519 FIGURE 2. H Flyback Input Pulse VERTICAL BLANKING A similar vertical pulse generation circuit to the LM1238 is included internal to the LM1270. The leading edge of the vertical sync is used to start the programmable vertical blanking signal directly. The Vertical Blank Duration Control Register sets the width of the pulse. When vertical blanking is enabled its polarity is programmable. CLAMPING Pin 24, the clamp pin, can be set for either an input or and output. If used as an input, then this pin functions just like the clamp input pins to the video pre-amps. One should use a series 1 kΩ resistor to pin 24 and a small capacitor may also be needed between pin 24 and ground to filter high frequency noise. 9 www.national.com LM1270 Functional Description (Continued) The LM1270 has the counters required to locate the clamp pulse to any position on the horizontal line. Normally this pin would be used as an output and be connected to the video pre-amps. Now the clamp pulse location can be optimize for the video channel. Note: When using this pin as an output a 1 kΩ series resistor must be used to protect the output stage of the clamp circuit. It is also recommended to connect a 10 kΩ resistor between this pin and ground for more reliable operation. Video Detection MODES OF OPERATION Three modes of operation are possible with the video detect circuit: 1. Autosizing mode: in this mode the LM1270 takes the measurements necessary for the monitor to perform the autosizing operation. The horizontal flyback is used as the reference for timing. The resultant horizontal outputs are the flyback time, the position of the start of video relative to the flyback end and the time from the end of the active video to the start of the flyback time. Since the total line time is known the microcontroller can calculate the active video time. Now the microcontroller can center the video between the start and end of flyback for best image centering, and to calculate the duty cycle of the video with respect to the forward scan time, thus giving a measure of the relative size of the image. For best performance in autosizing mode, it is recommended that the maximum pixels per line mode is used when measurements are made. 2. Window calibration mode: in this mode, the horizontal sync is used as the reference for timing. The resultant horizontal outputs are the horizontal sync time and the back porch and active image video time that can subsequently be used in conjunction with the image position data. The image pixel per line value should be used to set the PLL. 3. Video data transfer: in this mode, data is sent from the PC to the monitor on the first active video line. A 72 pulse clock string is sent on one video channel. Data is sent on a second video channel. A window signal that tracks the actual highlight window is sent on the third video channel. The timing parameters of this window signal are timed by the video detect logic and stored in a special register set. The relationship between these three signals is shown in Figure 3. The selection of which video channel contains which signal is programmed by the D_CNTL register. 20063520 FIGURE 3. Data, Clock and Window Signals IMAGE CALIBRATION MODE Two registers are used for each axis to control the window enable signal, WIN_EN. The first register HW_START (VW_START) defines the period in pixels (lines) from the leading edge of the Hsync (Vsync) to the start of the window. The second register HW_END (VW_END) defines the duration of the highlight window. Each of these registers is defined as two byte values, as per the table below: The microcontroller must write the values of these registers, after it has received the window position information from the PC. However, the PC may reference this information in any of the following ways: 1. 2. 3. Leading edge of sync Trailing edge of sync Start of the video image In order to accommodate different modes of operation, the video detect function may be used to measure the sync width, and the back porch (i.e., trailing edge of sync to start of video) periods in horizontal pixels, or vertical lines for window position calibration. The video detect function must be set to measure with reference to the horizontal sync. If the leading edge of sync is used as the reference for the window start timing from the PC application, then the start values can be directly written to the registers HW_START and VW_START. If the trailing edge of sync is used as the reference for the window start timing from the PC application, then the microcontroller should add the measured sync durations from the video detect registers to the timing values supplied by the PC application before writing to the HW_START and VW_START registers. If the start of video image is used as the reference for the window start timing from the PC application, then the microcontroller will add the measured sync duration and the back porch duration from the video detect registers to the timing values supplied by the PC application before writing to the HW_START and VW_START registers. In each case, it may also be necessary to modify the window position values by adding or subtracting a value to compen- www.national.com 10 LM1270 Video Detection (Continued) 1. sate for clocking delays in the timing counters in the LM1270. This value is empirically derived from testing the video system. VIDEO INPUT DETECTION The outputs of the three video detector channels are OR’d together to provide a single composite signal of the three channels when used for timing parameter measurement. The video detect logic must find the extreme points of the displayed image during each frame with respect to the horizontal and vertical flyback pulses as measured using the internal PLL. For best performance in autosizing mode, it is recommended that the application use the maximum number of pixels per line when measurements are made. Remember, the VCO frequency is limited to 160 MHz when the prescaler is set to 7. The durations to be measured are shown generically in the figures below, and apply to both horizontal and vertical timings. For the horizontal timings the measurements will depend on the mode selected in the EMPHASIS register. Vertical and HFLYBACK timing measurements will be the same in both modes. Flyback or sync period: the duration of either the sync input or the horizontal flyback, in either horizontal lines (vertical) or pixels (horizontal). Back porch period: the duration between the trailing edge of the sync or flyback pulse and the leading edge of the first detected video, in either lines (vertical) or pixels (horizontal). 2. 3. Video period: the duration between the leading edge of the first detected video and the trailing edge of the last detected video, in either lines (vertical) or pixels (horizontal). 4. Front porch: the duration between the trailing edge of the last detected video and the leading edge of the sync or flyback pulse, in either lines (vertical) or pixels (horizontal). Note: In the horizontal timing measurement description, reference to sync means either HSYNC or H_FEEDBACK, selected by WCHE bit in the EMPHASIS register. As the video may start and finish at different positions on the screen, depending upon the image, the measured horizontal porches and video time may vary from line to line. To overcome this, the periods should be measured over at least one entire field. The hardware records the shortest back porch and front porch periods used over the measured period. WINDOW COORDINATE DATA The microcontroller must program the highlight window coordinates in the LM1270 by writing to the appropriate registers. The coordinate values must be sent from the PC. For maximum flexibility, the LM1270 is designed to allow operation such that the coordinate data may be sent by: 1. DDC2A/B (e.g., I2C compatible) transmission 2. Information carried as video data during the vertical blanking time 3. Any other PC-monitor interface (e.g., USB) 20063521 FIGURE 4. Timing Intervals with WCHE = 1 20063522 FIGURE 5. Timing Intervals with WCHE = 0 COORDINATE DATA TRANSMISSION BY VIDEO OPERATION When sending coordinate data by video please refer to the information for register 27 in the register descriptions. Any video line may be selected for data, clock, or window. It is important to make sure each video line has a different selection otherwise the video transmission of data will not function. It is possible to program two video channels to carry the same information and create this incorrect operation. If the LIMIT bit of the TEST1 register is set to a “1” (default value), then one line of data may be transmitted after the vertical sync on one of the video channels. This data must be sent during the vertical blanking time that is set by the vertical blanking register. Data must be transmitted only during the vertical blanking time otherwise it will be ignored by the logic. If the LIMIT bit of the TEST1 register is set to a “0”, then the data may be transmitted at any time following the vertical sync. The data consists of a stream of 9 bytes. In normal use it is expected that the first eight bytes will be data, and the remaining byte will be used as a checksum. Alternatively, the ninth byte may be used as an additional data byte. Another video channel provides a clock pulse stream of exactly 72 pulses. The logic counts the number of pulses between two horizontal sync pulses. If the number of clock pulses is greater or less than 72, then the data is ignored. If the count is 72, then the data is shifted into registers 2E-36 upon arrival of the next horizontal sync, provided the output 11 www.national.com LM1270 Video Detection (Continued) Parameter TCLK TCLK-H TCLK-L TSETUP-H TSETUP-L Timing 50 ns 25 ns 25 ns 13 ns 13 ns registers have been enabled either by previously reading the D_CNTLS register, or by writing a zero to the STAT bit of the D_CNTL register. Only one line of data is allowed per field. After the clock stream of 72 pulses has been detected and accepted and the data stored in registers 2E-36, no more data will be accepted until after the registers have been reset. This is to allow time for the microcontroller to access the data on the I2C bus. If the LIMIT bit in the TEST1 register is set to a “1” (default value), then the data must arrive during the programmed vertical blanking period. Any data arriving outside of this will be ignored. If the bit is set to a “0”, then the data may arrive anytime, even within the active video area. The maximum data rate is half of the clock rate. The data is clocked by the trailing edge of the clock. The clock rate should be chosen to allow all 72 pixels to occur within the normal horizontal active video timing. INTERRUPT SIGNAL Pin 15, the Blanking/Interrupt pin, can be set to output an interrupt signal by bit 2 of register 39. The default value for this bit is “0”, setting pin 15 for a blanking output signal. However, if bit 2 is set to a “1” then pin 15 outputs an interrupt signal. When the LM1270 is instructed to read the information sent by video, then this signal goes low. Once the clock stream of 72 pulses has occurred, then the interrupt signal goes high again at the leading edge of H Sync. The interrupt signal remains high until another request to read the video information is received. Some microcontrollers may require an interrupt signal. Setting pin 15 to output an interrupt signal will provide the needed signal for these systems. In this mode of operation the vertical blanking signal will be unavailable; however, vertical blanking may still be added to the video outputs. Note that bit 1 of register 1 does change the polarity of the interrupt signal. Emphasis MEASURING EMPHASIS Two adjustments are available to optimize the emphasis in the Hi-Brite window for the various timing modes and brightness levels. One adjustment is the center frequency and the other adjustment is the amount of overshoot. Referring to Figure 7 the overshoot is the ratio of the overshoot voltage to the video level after the emphasis has settle out of the output signal. The typical output level is 900 mV and the typical overshoot is about 20%. The peak measurement is taken 9 ns from the rising edge. This delay gives a more accurate peak measurement by avoiding any ringing that may occur at the rising edge. Overshoot is defined in percent as: 20063525 FIGURE 7. Overshoot Measurement Bits 0 to 2 in register 0B control the emphasis. When a “4” is programmed into these bits the overshoot is typically 11%. A “0” will give no overshoot in the Hi-Brite window. Shown below in Figure 8 is how the center frequency is measured. The center frequency is actually expressed as the time it takes the overshoot to settle to within 5% of the DC level of the pulse. 20063526 20063523 FIGURE 8. Center Frequency Measurement FIGURE 6. Timing Parameters www.national.com 12 LM1270 Emphasis (Continued) Bits 0 to 3 in register 0C control the center frequency. When an “8” is programmed into the register the tCenter Freq is typically 80 ns. An “F” will give about 145 ns. A “0” will give no emphasis in the Hi-Brite window. ESD and Arc-Over Protection The LM1270 incorporates full ESD protection with special consideration given to maximizing arc-over robustness. The monitor designer must still use good circuit design and PCB layout techniques. The human body model ESD susceptibility of the LM1270 is 3.5 kV, however, many monitor manufacturers are now testing their monitors to level 4 of the IEC 801-2 specification which requires the monitor to survive an 8 kV discharge. External ESD protection is needed to survive this level of ESD. The LM1270 provides excellent protection against both ESD and arc-over, but this is not a substitute for good PCB layout. Figure 9 shows the recommended input protection for the LM1270. This provides the best protection against ESD. When this protection is combined with a good PCB layout the LM1270 will easily survive the IEC 801-2 level 4 testing (8 kV ESD). It is strongly recommended that the protection diodes be added as shown in Figure 9. The 1N4148 diode has a maximum capacitance of 4 pF which will have little effect on the response of the video system due to the low impedance of the input video. The ESD cells of the LM1270 also provide good protection against arc-over, however good PCB layout is necessary. The LM1270 should not be exposed directly to the voltages that may occur during arc-over. The main vulnerability of the LM1270 to arc-over is through the ground traces on the PCB. For proper protection all ground connections associated with the LM1270, including the grounds to the bypass capacitors, must have short returns to the ground pins. A significant ground plane should be used to connect all the LM1270 grounds. Figure 12, which shows the demo board layout, is an excellent example of an effective ground plane. Figures 10, 11 are the schematic to the demo board. The list below should be followed to ensure a PCB with good grounding: • All grounds associated with the LM1270 should be connected together through a large ground plane. • CRT driver ground is connected to the LM1270 and video pre-amp ground area at one point. • CRT and arc protection grounds are connected directly to the chassis or main ground. There is no arc-over current flow from these grounds through the LM1270 grounds. • Input signal traces for SDA, SCL, H Flyback, and Sync inputs should be kept away from the CRT driver and all traces that could carry the arc current. • Output signal traces of the LM1270 should be kept away from the traces that carry the output signals of the CRT driver. If any one of the above suggestions is not followed the LM1270 may become more vulnerable to arc-over. Improper grounding is by far the most common cause of a video pre-amp failure during arc-over. 20063527 FIGURE 9. Recommended Video Input ESD Protection 13 www.national.com LM1270 20063528 FIGURE 10. LM1270, LM1237/47, LM2465 Neck Board, Page 1 www.national.com 14 LM1270 20063529 FIGURE 11. LM1270, LM1237/47, LM2465 Neck Board, Page 2 15 www.national.com LM1270 20063530 FIGURE 12. LM1270, LM1237/47, LM2465 Neck Board www.national.com 16 LM1270 Microcontroller Interface The microcontroller interfaces to the LM1270 pre-amp via an I2C compatible interface. The protocol of the interface begins with the Start Pulse followed by a byte comprised of a seven-bit Slave Device Address and a Read/Write bit as the LSB. Therefore the address of the LM1270 for writing is 54h (0101 0100) and the address for reading is 55h (0101 0101). Figures 13, 14 show a write and read sequence across the I2C compatible interface. WRITE SEQUENCE The write sequence begins with a start condition which consists of the master pulling SDA low while SCL is held high. The slave device address is sent next. The address byte is made up of an address of seven bits (7–1) and the read/write bit (0). Bit 0 is low to indicate a write operation. Each byte that is sent is followed by an acknowledge. When SCL is high the master will release the SDA line. The slave must pull SDA low to acknowledge. The address of the register to be written to is sent next. Following the register address and the acknowledge bit the data for the register is sent. If bit 0 of register 0Ah is set low (default value) then the LM1270 is set for the increment mode. In this mode when more than one data byte is sent it is automatically incremented into the next address location. See Figure 13. Note that each data byte is followed by an acknowledge bit. READ SEQUENCE Read sequences are comprised of two I2C compatible transfer sequences: The first is a write sequence that only transfers the address to be accessed. The second is a read sequence that starts at the address transferred in the previous address write access and incrementing to the next address upon every data byte read. This is shown in Figure 14. The write sequence consists of the Start Pulse, the Slave Device Address including the Read/Write bit (a zero, indicating a write), then its Acknowledge bit. The next byte is the address to be accessed, followed by its Acknowledge bit and the Stop bit indicating the end of the address only write access. Next the read data access is performed beginning with the Start Pulse, the Slave Device Address including the Read/ Write bit (a one, indicating a read) and the Acknowledge bit. The next 8 bits will be the data read from the address indicated by the write sequence. Subsequent read data bytes will correspond to the next increment address locations. Each data byte is separated from the other data bytes by an Acknowledge bit. 20063531 FIGURE 13. I2C Compatible Write Sequence 17 www.national.com LM1270 Microcontroller Interface (Continued) 20063532 FIGURE 14. I2C Compatible Read Sequence I2C Compatible Interface Registers IC ADDRESS for I2C Compatible Bus Slave Address of the LM1270 is 54h when writing to the registers and 55h when reading from the registers. REGISTER I_O0 I_O1 CL_POS0 CL_POS1 CL_DUR Not Used Not Used Not Used V_BL_DU ACONT BCONT EMPHASIS CNT_F PPL0 PS_PPL1 HW_ST0 HW_ST1 HW_END0 HW_END1 VW_ST0 VW_ST1 VW_END0 www.national.com ADD DEFLT 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 00 08 00 00 04 00 00 00 0F 52 52 00 08 FF 7F 00 00 00 00 00 00 00 7 VDT CL POL CLP7 CLD7 RSV RSV RSV RSV WIN_SEL PPL7 AUTO HW_ST7 HW_EN7 VW_ST7 VW_EN7 6 HSY/FB CL I/O CLP6 CLD6 RSV RSV VB6 ACON6 BCON6 VREF PPL6 PRESC2 HW_ST6 HW_EN6 VW_ST6 VW_EN6 5 RESET BL POL CLP5 CLD5 RSV RSV VB5 ACON5 BCON5 WCHE PPL5 PRESC1 HW_ST5 HW_EN5 VW_ST5 VW_EN5 18 4 BLACK BLANK CLP4 CLD4 RSV RSV VB4 ACON4 BCON4 WGHE PPL4 PRESC0 HW_ST4 HW_EN4 VW_ST4 VW_EN4 3 VCLB VBL EN CLP3 CLD3 RSV RSV VB3 ACON3 BCON3 RSV CENTF3 PPL3 FRERUN HW_ST3 HW_EN3 VW_ST3 VW_EN3 2 PWRSV RSV CLP2 CLD2 RSV RSV VB2 ACON2 BCON2 EMP2 CENTF2 PPL2 PPL10 HW_ST2 HW_ST10 HW_EN2 HW_EN10 VW_ST2 VW_ST10 VW_EN2 1 SEL/WB VSY POL CLP1 CLP9 CLD1 RSV RSV RSV VB1 ACON1 BCON1 EMP1 CENTF1 PPL1 PPL9 HW_ST1 HW_ST9 HW_EN1 HW_EN9 VW_ST1 VW_ST9 VW_EN1 0 A/B_SEL HSY POL CLP0 CLP8 CLD0 RSV RSV RSV VB0 ACON0 BCON0 EMP0 CENTF0 PPL0 PPL8 HW_ST0 HW_ST8 HW_EN0 HW_EN8 VW_ST0 VW_ST8 VW_EN0 LM1270 I2C Compatible Interface Registers REGISTER VW_END1 H_FP0 H_FP1 HF_S0 HF_S1 H_BP0 H_BP1 V_FP0 V_FP1 V_SYN_D V_BP0 V_BP1 V_FP0_PRV V_FP1_PRV V_SYN_D_PRV V_BP0_PRV V_BP1_PRV D_CNTL HW_SM0 HW_SM1 HW_S0 HW_S1 HW_DM0 HW_DM1 HW_DAT0 HW_DAT1 HW_DAT2 HW_DAT3 HW_DAT4 HW_DAT5 HW_DAT6 HW_DAT7 HW_DAT8 D_CNTLS TEST0 TEST1 ADD DEFLT 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 00 FF 07 FF 03 FF 07 FF 07 FF FF 07 FF 07 FF FF 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 HWD07 HWD17 HWD27 HWD37 HWD47 HWD57 HWD67 HWD77 HWD87 STAT RSV CHGRG HWD06 HWD16 HWD26 HWD36 HWD46 HWD56 HWD66 HWD76 HWD86 WD RSV RSV HWDM7 HWDM6 HWS7 HWS6 STAT HWSM7 WD HWSM6 VSYNC7 VBP7 VSYNC6 VBP6 VFP7 VFP6 VSYNC7 VBP7 VSYNC6 VBP6 VFP7 VFP6 HBP7 HBP6 HFP7 HFP6 7 6 (Continued) 5 HFP5 4 HFP4 3 HFP3 2 VW_EN10 HFP2 HFP10 1 VW_EN9 HFP1 HFP9 0 VW_EN8 HFP0 HFP8 HFL_HS7 HFL_HS6 HFL_HS5 HFL_HS4 HFL_HS3 HFL_HS2 HFL_HS1 HFL_HS0 HFL_HS9 HFL_HS8 HBP5 VFP5 VSYNC5 VBP5 VFP5 VSYNC5 VBP5 G1 HWSM5 HWS5 HWDM5 HWD05 HWD15 HWD25 HWD35 HWD45 HWD55 HWD65 HWD75 HWD85 G1 TEE RDIR HBP4 VFP4 VSYNC4 VBP4 VFP4 VSYNC4 VBP4 G0 HWSM4 HWS4 HWDM4 HWD04 HWD14 HWD24 HWD34 HWD44 HWD54 HWD64 HWD74 HWD84 G0 RSV IRPT HBP3 VFP3 VSYNC3 VBP3 VFP3 VSYNC3 VBP3 B1 HWSM3 HWS3 HWDM3 HWD03 HWD13 HWD23 HWD33 HWD43 HWD53 HWD63 HWD73 HWD83 B1 RSV AID HBP2 HBP10 VFP2 VFP10 VSYNC2 VBP2 VBP10 VFP2 VFP10 VSYNC2 VBP2 VBP10 B0 HWSM2 HWSM10 HWS2 HWDM2 HWDM10 HWD02 HWD12 HWD22 HWD32 HWD42 HWD52 HWD62 HWD72 HWD82 B0 BCE BL/INT HBP1 HBP9 VFP1 VFP9 VSYNC1 VBP1 VBP9 VFP1 VFP9 VSYNC1 VBP1 VBP9 R1 HWSM1 HWSM9 HWS1 HWS9 HWDM1 HWDM9 HWD01 HWD11 HWD21 HWD31 HWD41 HWD51 HWD61 HWD71 HWD81 R1 RSV LIMIT HBP0 HBP8 VFP0 VFP8 VSYNC0 VBP0 VBP8 VFP0 VFP8 VSYNC0 VBP0 VBP8 R0 HWSM0 HWSM8 HWS0 HWS8 HWDM0 HWDM8 HWD00 HWD10 HWD20 HWD30 HWD40 HWD50 HWD60 HWD70 HWD80 R0 RSV INTLC Register Descriptions Inputs and Outputs Controls — 0 Register I_O0 Addr 00 7 VDT 6 HSY/FB 5 RESET 4 BLACK 3 VCLB 2 PWRSV 1 SEL/WB 0 A/B_SEL Bit 0: Selects the active input provided bit 1 of this register is 0. If bit 0 = 0, input source B is selected (Default) If bit 0 = 1, input source A is selected Bit 1: Controls whether the input source is selected by bit 0, or by the window function If bit 1 = 0, bit 0 source select is selected (Default) If bit 1 = 1, window function is selected Bit 2: Sends the device into power save mode. This register bit is fed to the preamplifier interface as PWR_SAVE so that the amplifier can be put into low power sleep mode. It is also OR’d with the blanking signals to set the Blank output level to the 19 www.national.com LM1270 Register Descriptions (Continued) selected blank level, and to set the video output to black level to blank the video. If bit 2 = 0, enable the analog circuits for normal operation (Default) If bit 2 = 1, send the device into power save mode Bit 3: Video Detect Enable: When this bit is set to 1, this enables the video detection logic and video detectors to run. Default: 0 Bit 4: Set the output to the black level If bit 4 = 0, normal video (Default) If bit 4 = 1, video set to black level Bit 5: Full IC reset: this is a self resetting bit. When a 1 is written to this bit, the IC is reset. The bit automatically returns to 0 after reset has occurred. If bit 5 = 0, normal (Default) If bit 5 = 1, reset Bit 6: Selects whether HFLYBACK or HSYNC is measured and used as the timing reference during video detect If bit 6 = 0, HSYNC is selected (Default) If bit 6 = 1, HFLYBACK is selected Bit 7: Video detect reset: this is a self resetting bit. When a 1 is written to this bit, the video detect registers are reset to start a new timing cycle. The bit automatically returns to 0 after reset has occurred. If bit 7 = 0, normal (Default) If bit 7 = 1, reset Inputs and Outputs Controls — 1 Register I_O1 Bit 0: Addr 01 7 CL POL 6 CL I/O 5 BL POL 4 BLANK 3 VBL EN 2 RSV 1 VSY POL 0 HSY POL Selects the H sync input polarity If bit 0 = 0, positive H sync input signal required. (Default) If bit 0 = 1, negative H sync input signal required. Bit 1: Selects the V sync input polarity If bit 1 = 0, positive V sync input signal required. (Default) If bit 1 = 1, negative V sync input signal required. Bit 2: Reserved Bit 3–4: Blanking operation: BIT4 0 0 1 Bit 5: BIT3 0 1 X BLANK/INTERRUPT OUTPUT PIN No blank signal Vertical Blanking only (Default) Blank Bit 6: Bit 7: Selects the BLANK or INTERRUPT signal output polarity If bit 4 = 0, positive active. (Default) If bit 4 = 1, negative active Determines whether the CLAMP pin is an input or output If bit 6 = 0, input (Default) If bit 6 = 1, output Selects the CLAMP output or input active level polarity If bit 7 = 0, positive active. (Default) If bit 7 = 1, negative active Clamp Position Register CL_POS0 CL_POS1 Addr 02 03 7 CLP7 6 CLP6 5 CLP5 4 CLP4 3 CLP3 2 CLP2 1 CLP1 CLP9 0 CLP0 CLP8 This is a 10 bit wide register that sets the position of the clamp pulse with respect to the leading edge of the H sync pulse in increments of 2 cycles of the main PLL pixel clock. www.national.com 20 LM1270 Register Descriptions Clamp Duration Register CL_DUR Addr 04 7 CLD7 (Continued) 6 CLD6 5 CLD5 4 CLD4 3 CLD3 2 CLD2 1 CLD1 0 CLD0 This is an 8 bit wide register that sets the width of the active clamp pulse in increments of 2 cycles of the main PLL pixel clock. Registers 05–07 are not used Register Not Used Not Used Not Used Addr 05 06 07 RSV RSV RSV RSV RSV RSV 7 RSV 6 RSV 5 RSV 4 RSV 3 RSV 2 RSV 1 RSV RSV RSV 0 RSV RSV RSV Registers 05–07 are not used. However, data can be written to these registers and read back from these registers at the “RSV” locations. Any data written to these registers will not affect the operation of the LM1270. V Blank Duration Register V_BL_DU Addr 08 7 6 VB6 5 VB5 4 VB4 3 VB3 2 VB2 1 VB1 0 VB0 This is a 7 bit wide register that sets the width of the active V Blank pulse in horizontal line periods. Input A Contrast Register ACONT Addr 09 7 ABLNK 6 ACON6 5 ACON5 4 ACON4 3 ACON3 2 ACON2 1 ACON1 0 ACON0 Bit 0–6: This is a 7 bit wide register that sets the contrast level of input A. When the register is zero, the output is at minimum contrast. Bit 7: Setting this bit sets the input A only to black level. If bit 7 = 0, normal video. (Default) If bit 7 = 1, Input A set to black level Input B Contrast Register BCONT Addr 0A 7 BBLNK 6 BCON6 5 BCON5 4 BCON4 3 BCON3 2 BCON2 1 BCON1 0 BCON0 Bit 0–6: This is a 7 bit wide register that sets the contrast level of input B. When the register is zero, the output is at minimum contrast. Bit 7: Setting this bit sets the input B only to black level. If bit 7 = 0, normal video. (Default) If bit 7 = 1, Input B set to black level Emphasis Register EMPHASIS Addr 0B 7 WIN_SEL 6 VREF 5 WCHE 4 WGHE 3 RSV 2 EMP2 1 EMP1 0 EMP0 Bit 2–0: This is a 3 bit wide register that sets the emphasis level of input B. When this value is zero, no emphasis is applied. Bit 3: Reserved. Bit 4: This bit controls the horizontal edge used to start the pixel counters in the Dynamic Window Generation block and Video Data Transfer detect block. If bit 4 = 0, H_FEEDBACK which is in sync with PLL, is used for the edge. If bit 4 = 1, HSYNC synchronized to pixel clock is used as the edge. Bit 5: This bit controls the horizontal edge used to start the pixel counters in the Window Calibration block. If bit 5 = 0, H_FEEDBACK which is in sync with PLL, is used for the edge. If bit 5 = 1, HSYNC synchronized to pixel clock is used as the edge. Note: Two separate bits are used in case these blocks need to be in different modes. Bit 6: This bit controls which source is selected for the reference voltage VREF. If bit 6 = 0, internal VREF is selected. (Default) If bit 6 = 1, external VREF is selected 21 www.national.com LM1270 Register Descriptions Bit 7: (Continued) This bit controls which source is selected for inside the window, and which source is outside. If bit 7 = 0, input B is inside the window. (Default) If bit 7 = 1, input B is outside the window Emphasis Center Frequency Register CNT_F Addr 0C 7 6 5 4 3 CENTF3 2 CENTF2 1 CENTF1 0 CENTF0 This is a 4 bit wide register that sets the center frequency of the emphasis filter. When the value is zero, the center frequency is set to its minimum value. Pixels Per Line/Prescaler Register PPL0 PS_PPL1 Bit 10–0: Addr 0D 0E 7 PPL7 AUTO 6 PPL6 PRESC2 5 PPL5 PRESC1 4 PPL4 PRESC0 3 PPL3 FRERUN 2 PPL2 PPL10 1 PPL1 PPL9 0 PPL0 PPL8 Sets the pixel per line value for the PLL and window function Bit 14–12: Sets prescaler value for the PLL Bit 15: Sets the prescaler to automode. When set for automode the LM1270 automatically selects the optimum value for the prescaler. Bits 12–14 will be the starting point for automode. Horizontal Window Start Position Register HW_ST0 HW_ST1 Addr 0F 10 7 HW_ST7 6 HW_ST6 5 HW_ST5 4 HW_ST4 3 HW_ST3 2 HW_ST2 HW_ST10 1 HW_ST1 HW_ST9 0 HW_ST0 HW_ST8 This is an 11 bit wide register that sets the horizontal position in number of pixels of the B select window pulse with respect to the leading edge of the H sync pulse. Horizontal Window Duration Register HW_END0 HW_END1 Addr 11 12 7 HW_EN7 6 HW_EN6 5 HW_EN5 4 HW_EN4 3 HW_EN3 2 HW_EN2 HW_EN10 1 HW_EN1 HW_EN9 0 HW_EN0 HW_EN8 This is an 11 bit wide register that sets the horizontal duration in number of pixels of the B select window pulse. If this value is zero, the window is disabled. Vertical Window Start Position Register VW_ST0 VW_ST1 Addr 13 14 7 VW_ST7 6 VW_ST6 5 VW_ST5 4 VW_ST4 3 VW_ST3 2 VW_ST2 VW_ST10 1 VW_ST1 VW_ST9 0 VW_ST0 VW_ST8 This is an 11 bit wide register that sets the vertical position in number of lines of the B select window pulse with respect to the leading edge of the VSYNC pulse. Vertical Window Duration Register VW_END0 VW_END1 Addr 15 16 7 VW_EN7 6 VW_EN6 5 VW_EN5 4 VW_EN4 3 VW_EN3 2 VW_EN2 VW_EN10 1 VW_EN1 VW_EN9 0 VW_EN0 VW_EN8 This is an 11 bit wide register that sets the vertical duration of the B select window pulse in number of lines. If this value is zero, the window is disabled. Horizontal Front Porch Duration Register H_FP0 H_FP1 Addr 17 18 7 HFP7 6 HFP6 5 HFP5 4 HFP4 3 HFP3 2 HFP2 HFP10 1 HFP1 HFP9 0 HFP0 HFP8 This is an 11 bit wide register that records the lowest measured value of the horizontal front porch in number of pixels during video detect. When no video is detected, this register will return a value of zero. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. www.national.com 22 LM1270 Register Descriptions Register HF_S0 HF_S1 Addr 19 1A 7 HFL_HS7 (Continued) Horizontal Flyback or Sync Duration 6 HFL_HS6 5 HFL_HS5 4 HFL_HS4 3 HFL_HS3 2 HFL_HS2 1 HFL_HS1 HFL_HS9 0 HFL_HS0 HFL_HS8 This is a 10 bit wide register that records the measured value of the horizontal flyback or sync in number of pixels during video detect. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Horizontal Back Porch Duration Register H_BP0 H_BP1 Addr 1B 1C 7 HBP7 6 HBP6 5 HBP5 4 HBP4 3 HBP3 2 HBP2 HBP10 1 HBP1 HBP9 0 HBP0 HBP8 This is an 11 bit wide register that records the lowest measured value of the horizontal front porch in number of pixels during video detect. When no video is detected, the sum of this register and the HFLYBACK/HSYNC should be within 1 pixel of the total number of pixels per line. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Vertical Front Porch Duration Register V_FP0 V_FP1 Addr 1D 1E 7 VFP7 6 VFP6 5 VFP5 4 VFP4 3 VFP3 2 VFP2 VFP10 1 VFP1 VFP9 0 VFP0 VFP8 This is an 11 bit wide register that records the lowest measured value of the vertical front porch during video detect in horizontal line periods. When no video is detected, this register will return a value of zero. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Vertical Sync Duration Register V_SYN_D Addr 1F 7 VSYNC7 6 VSYNC6 5 VSYNC5 4 VSYNC4 3 VSYNC3 2 VSYNC2 1 VSYNC1 0 VSYNC0 This is an 8 bit wide register that records the measured value of the vertical sync during video detect in horizontal line periods. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Vertical Back Porch Duration Register V_BP0 V_BP1 Addr 20 21 7 VBP7 6 VBP6 5 VBP5 4 VBP4 3 VBP3 2 VBP2 VBP10 1 VBP1 VBP9 0 VBP0 VBP8 This is an 11 bit wide register that records the lowest measured value of the vertical back porch during video detect in horizontal line periods. When no video is detected, the sum of this register and the VSYNC should be within 1 line of the total number of lines per field. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Previous Field Vertical Front Porch Duration Register V_FP0_PRV V_FP1_PRV Addr 22 23 7 VFP7 6 VFP6 5 VFP5 4 VFP4 3 VFP3 2 VFP2 VFP10 1 VFP1 VFP9 0 VFP0 VFP8 This is an 11 bit wide register that retains the previous lowest measured value of the vertical front porch during video detect in horizontal line periods from the previous field. It is used when interlace mode is present, in order to accurately determine the correct parameter value for the frame. When no video is detected, this register should return a value of zero. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Previous Field Vertical Sync Duration Register V_SYN_D_PRV Addr 24 7 VSYNC7 6 VSYNC6 5 VSYNC5 4 VSYNC4 3 VSYNC3 2 VSYNC2 1 VSYNC1 0 VSYNC0 23 www.national.com LM1270 Register Descriptions (Continued) This is an 8 bit wide register that records the previous measured value of the vertical sync during video detect in horizontal line periods from the previous field. It is used when interlace mode is present, in order to accurately determine the correct parameter value for the frame. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Previous Field Vertical Back Porch Duration Register V_BP0_PRV V_BP1_PRV Addr 25 26 7 VBP7 6 VBP6 5 VBP5 4 VBP4 3 VBP3 2 VBP2 VBP10 1 VBP1 VBP9 0 VBP0 VBP8 This is an 11 bit wide register that records the previous lowest measured value of the vertical back porch during video detect in horizontal line periods from the previous field. It is used when interlace mode is present, in order to accurately determine the correct parameter value for the frame. When no video is detected, the sum of this register and the VSYNC should be within 1 line of the total number of lines per field. Reading this register within less than one complete field period after the Video Detect Reset may give erroneous results. This register resets to zero after the Video Detect Reset has been written. Data Control Register D_CNTL Addr 27 7 STAT 6 WD 5 G1 4 G0 3 B1 2 B0 1 R1 0 R0 Bit 5–0: This sets the selection for each video line function when reading data, according to the following table, where X = R, G, or B: X1 0 0 1 1 X0 0 1 0 1 Function Not Selected Data Clock Window Note that there is nothing to prevent the different bits being set to the same value, resulting in erroneous connection of the video channels. However, if the registers are wrongly programmed, incorrect information will result. Default is 00. Bit 6: This bit enables the Window Detect video detect function to detect the horizontal window line during any valid data detection period (as set by bit 1 of the register TEST1). Once set it remains set until turned off. When the first string of 72 clock pulses in one line has been detected, the values of the timed horizontal parameters are strobed into the horizontal window registers, and any further data transfers are ignored until the STAT bit is set to 0 again. (default is 0). Bit 7: If the number of clock pulses is exactly 72 when H sync arrives, and the clock pulses occurred during a valid period, as defined by bit 1 of register TEST1, then the data is parallel loaded in a holding register (HW_DAT) and the STAT bit (bit 7) is set to ‘1’ in the D_CNTL register. This loading only happens if the STAT was initially “0”, otherwise the shift-register data is discarded. The microcontroller reads the D_CNTL register and if the STAT bit is set, it continues by reading HW_DAT registers, otherwise the read is discontinued. If the complete block of data registers is read, then at the end of the data read the microcontroller should read the shadow of D_CNTL in register D_CNTLS, which will clear the STAT bit. Alternatively, if only certain data registers need to be read, then either the D_CNTLS register should be read after this action to clear the STAT bit, or a “0” should be written to bit 7 of this register. Clearing of the STAT bit will then allow the core to update the HW_DAT registers during the next valid data transmission period. Horizontal Window Measured Start Duration Register HW_SM0 HW_SM1 Addr 28 29 7 HWSM7 6 HWSM6 5 HWSM5 4 HWSM4 3 HWSM3 2 HWSM2 HWSM10 1 HWSM1 HWSM9 0 HWSM0 HWSM8 This is an 11 bit wide register that records the measured value in number of pixels of the duration between the beginning of HSYNC and the start of the HWINDOW on the video data window line during any valid data detection period (as set by bit 1 of the register TEST1), providing the STAT bit in D_CNT register is zero. Note: Only the video detect on the selected WINDOW video line is enabled using the D_CNTL register. When no video is detected, this register should return a value of zero. Reading this register during the period between VSYNC and the 72 clock pulse transmission may give erroneous results. This register resets to zero after the STAT bit in the D_CNTLS register is read, and not re-enabled until the next vertical sync. Also note that all six HWINDOW related registers must be read before STAT can reset them to zero in order to prevent updates during reading. www.national.com 24 LM1270 Register Descriptions Horizontal Window Sync Duration Register HW_S0 HW_S1 Addr 2A 2B 7 HWS7 (Continued) 6 HWS6 5 HWS5 4 HWS4 3 HWS3 2 HWS2 1 HWS1 HWS9 0 HWS0 HWS8 This is a 10 bit wide register that records the measured value of the horizontal sync in number of pixels during the vertical blanking time, providing the STAT bit in D_CNT register is zero. This register resets to zero after the STAT bit in the D_CNTLS register is read, and not re-enabled until the next vertical sync. Also note that all six HWINDOW related registers must be read before STAT can reset them to zero in order to prevent updates during reading. Horizontal Window Measured Duration Register HW_DM0 HW_DM1 Addr 2C 2D 7 HWDM7 6 HWDM6 5 HWDM5 4 HWDM4 3 HWDM3 2 HWDM2 HWDM10 1 HWDM1 HWDM9 0 HWDM0 HWDM8 This is an 11 bit wide register that records the measured value of the duration of the data window on the selected video line in number of pixels, during any valid data detection period (as set by bit 1 of the register TEST1). Note: Only the video detect on the selected WINDOW video line is enabled using the D_CNTL register. This register resets to zero after the STAT bit in the D_CNTLS register is read, and not re-enabled until the next vertical sync. Also note that all six HWINDOW related registers must be read before STAT can reset them to zero in order to prevent updates during reading. Horizontal Window Data Register HW_DAT0 HW_DAT1 HW_DAT2 HW_DAT3 HW_DAT4 HW_DAT5 HW_DAT6 HW_DAT7 HW_DAT8 Addr 2E 2F 30 31 32 33 34 35 36 7 HWD07 HWD17 HWD27 HWD37 HWD47 HWD57 HWD67 HWD77 HWD87 6 HWD06 HWD16 HWD26 HWD36 HWD46 HWD56 HWD66 HWD76 HWD86 5 HWD05 HWD15 HWD25 HWD35 HWD45 HWD55 HWD65 HWD75 HWD85 4 HWD04 HWD14 HWD24 HWD34 HWD44 HWD54 HWD64 HWD74 HWD84 3 HWD03 HWD13 HWD23 HWD33 HWD43 HWD53 HWD63 HWD73 HWD83 2 HWD02 HWD12 HWD22 HWD32 HWD42 HWD52 HWD62 HWD72 HWD82 1 HWD01 HWD11 HWD21 HWD31 HWD41 HWD51 HWD61 HWD71 HWD81 0 HWD00 HWD10 HWD20 HWD30 HWD40 HWD50 HWD60 HWD70 HWD80 Data Control Shadow Register D_CNTLS Addr 37 7 STAT 6 WD 5 G1 4 G0 3 B1 2 B0 1 R1 0 R0 This register is a shadow of the D_CNTL register. Reading this register will cause the STAT bit to reset to 0, which will allow new data to be transferred into the window and data registers after the next valid data transmission block. Test Register 0 Register TEST0 Addr 38 7 RSV 6 RSV 5 TEE 4 RSV 3 RSV 2 BCE 1 RSV 0 RSV This register is for testing the LM1270 during production. All bits in this register should be set to “0” for proper operation. Test Register 1 Register TEST1 Addr 39 7 CHGRG 6 RSV 5 RDIR 4 IRPT 3 AID 2 BL/INT 1 LIMIT 0 INTLC Bit 0: If this bit is “0” (default), then normal progressive scan mode is enabled. If set to “1”, then interlace mode is enabled. Bit 1: This bit limits the period during which video data may be detected. If the bit is set to a 1 (default), then the valid data active period is limited to the vertical blanking time, as set by the vertical blanking register. If a string of 72 clock pulses is received during this time it is accepted as valid. If a string of 72 pulses is not received until during the active video time, then this data is ignored. If the bit is set to “0”, then the first 72 pulse clock string that is detected is considered to be valid, even if this is during the active video time. 25 www.national.com LM1270 Register Descriptions (Continued) Bit 2: If this bit is set to “0”, then the output BLANKING/INTERRUPT pin is set to blanking function (default). If the output is set to “1”, then the output functions as an interrupt following the level set in the STAT bit of D_CNTL register. Bit 3: If this bit is set to “0” (default), then the I2C compatible address is automatically incremented on sequential read or write operations. If this bit is set to “1”, the automatic increment is disabled. Bit 4: If this bit is set to “0” (default), the video and window interface registers are changed only during vertical blanking. If it is set to “1”, then the registers can be changed at any time. The registers controlled by this bit are Contrast A (09), Contrast B (0A), Emphasis (0B), Center Frequency (0C), and the window start and stop positions (0F through 16). Bit 5: This is a test register. It should always be set to a “0” (default) for normal operation. Bit 6: Reserved. Bit 7: When the PLL changes its scale, this bit momentarily goes high. www.national.com 26 LM1270 Hi-Brite 200 MHz I2C Compatible RGB Image Enhancer with Video Auto Sizing Physical Dimensions unless otherwise noted inches (millimeters) Order Number LM1270NA NS Package Number N24D LIFE SUPPORT POLICY NATIONAL’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF NATIONAL SEMICONDUCTOR CORPORATION. As used herein: 1. Life support devices or systems are devices or systems which, (a) are intended for surgical implant into the body, or (b) support or sustain life, and whose failure to perform when properly used in accordance with instructions for use provided in the labeling, can be reasonably expected to result in a significant injury to the user. National Semiconductor Americas Customer Support Center Email: new.feedback@nsc.com Tel: 1-800-272-9959 www.national.com National Semiconductor Europe Customer Support Center Fax: +49 (0) 180-530 85 86 Email: europe.support@nsc.com Deutsch Tel: +49 (0) 69 9508 6208 English Tel: +44 (0) 870 24 0 2171 Français Tel: +33 (0) 1 41 91 8790 2. A critical component is any component of a life support device or system whose failure to perform can be reasonably expected to cause the failure of the life support device or system, or to affect its safety or effectiveness. National Semiconductor Asia Pacific Customer Support Center Email: ap.support@nsc.com National Semiconductor Japan Customer Support Center Fax: 81-3-5639-7507 Email: jpn.feedback@nsc.com Tel: 81-3-5639-7560 National does not assume any responsibility for use of any circuitry described, no circuit patent licenses are implied and National reserves the right at any time without notice to change said circuitry and specifications.
LM1270 价格&库存

很抱歉,暂时无法提供与“LM1270”相匹配的价格&库存,您可以联系我们找货

免费人工找货