SAA7128H; SAA7129H Digital video encoder Rev. 03 -- 9 December 2004 Product data sheet 1. General description The SAA7128H; SAA7129H encodes digital CR-Y-CB video data to an NTSC, PAL or SECAM CVBS or S-video signal. Simultaneously, RGB or bypassed but interpolated CR-Y-CB signals are available via three additional DACs. The circuit at a 54 MHz multiplexed digital D1 input port accepts two ITU-R BT.656 compatible CR-Y-CB data streams with 720 active pixels per line in 4 : 2 : 2 multiplexed formats, for example MPEG decoded data with overlay and MPEG decoded data without overlay, where one data stream is latched at the rising clock edge and the other at the falling clock edge. It includes a sync/clock generator and on-chip DACs. 2. Features Monolithic CMOS 3.3 V device, 5 V I2C-bus optional Digital PAL/NTSC/SECAM encoder System pixel frequency 13.5 MHz 54 MHz double-speed multiplexed D1 interface capable of splitting data into two separate channels (encoded and baseband) Three Digital-to-Analog Converters (DACs) for CVBS (CSYNC), VBS (CVBS) and C (CVBS) two times oversampled with 10-bit resolution (signals in brackets optional) Three DACs for RED (CR), GREEN (Y) and BLUE (CB) two times oversampled with 9-bit resolution (signals in brackets optional) An advanced composite sync is available on the CVBS output for RGB display centering Real-time control of subcarrier Cross-color reduction filter Closed captioning encoding and World Standard Teletext (WST) and North-American Broadcast Text System (NABTS) teletext encoding including sequencer and filter Copy Generation Management System (CGMS) encoding (CGMS described by standard CPR-1204 of EIAJ); 20 bits in lines 20/283 (NTSC) can be loaded via I2C-bus Fast I2C-bus control port (400 kHz) Line 23 Wide Screen Signalling (WSS) encoding Video Programming System (VPS) data encoding in line 16 (50/625 lines counting) Encoder can be master or slave Programmable horizontal and vertical input synchronization phase Programmable horizontal sync output phase Internal Color Bar Generator (CBG) SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Macrovision(R) Pay-per-View copy protection system rev. 7.01 and rev. 6.1 optional; this applies to SAA7128H only. The device is protected by US patents 4631603, 4577216 and 4819098 and other intellectual property rights; use of the Macrovision anti-copy process in the device is licensed for non-commercial home use only. Reverse engineering or disassembly is prohibited; please contact your nearest Philips Semiconductors sales office for more information. Controlled rise/fall times of output syncs and blanking On-chip crystal oscillator (3rd-harmonic or fundamental crystal) Down mode (low output voltage) or power-save mode of DACs QFP44 package 3. Quick reference data Table 1: Quick reference data VDDD = 3.0 V to 3.6 V; Tamb = 0 C to 70 C; unless otherwise specified. Symbol Parameter VDDA analog supply voltage VDDD digital supply voltage IDDA analog supply current [1] IDDD digital supply current [1] Vi input signal voltage levels TTL compatible Vo(p-p) analog output signal voltages Y, C and CVBS without load (peak-to-peak value) 1.25 1.35 1.50 V RL load resistance 75 - 300 LElf(i) low frequency integral linearity error - - 3 LSB LElf(d) low frequency differential linearity error - - 1 LSB Tamb ambient temperature 0 - 70 C [1] Conditions VDDD = 3.3 V Min Typ Max Unit 3.15 3.3 3.45 V 3.0 3.3 3.6 V - 130 150 mA - 75 100 mA At maximum supply voltage with highly active input signals. 4. Ordering information Table 2: Ordering information Type number Package Name Description Version SAA7128H QFP44 plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mm SOT307-2 SAA7129H 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 2 of 55 xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxxxxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxx x x 40 VDD(I2C) SA XTALI XTALO RCV1 RCV2 TTXRQ XCLK SCL 42 35 41 34 7 8 43 37 4 25 28 VDDA4 31 36 20 I2C-BUS INTERFACE 21 SYNC/CLOCK SAA7128H SAA7129H I2C-bus control clock and timing I2C-bus control I2C-bus control MP7 to MP0 LLC1 VDDA3 VDDA2 9 to 16 MPpos MPA I2C-bus control Y Y MP FADER MPB ENCODER CB-CR VP C 30 CVBS (CSYNC) 27 VBS (CVBS) 24 C (CVBS) D OUTPUT INTERFACE A 22 I2C-bus control TTX I2C-bus I2C-bus control 44 32 control 33 Y 23 D CB-CR 26 RGB PROCESSOR A 5 18 38 VSSD2 VSSD3 6 17 39 2 3 19 VDDD2 VDDD3 SP AP RTCI 29 VSSA1 VSSA2 VSSA3 RED GREEN BLUE mhb572 VDDD1 Fig 1. Block diagram Digital video encoder 3 of 55 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. VSSD1 SAA7128H; SAA7129H Rev. 03 -- 9 December 2004 SWITCH MPneg Philips Semiconductors RESET_N SDA 5. Block diagram 9397 750 14325 Product data sheet VDDA1 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 6. Pinning information 34 XTALO 35 XTALI 36 VDDA4 37 XCLK 38 VSSD3 39 VDDD3 40 RESET_N 41 SCL 42 SDA 43 TTXRQ 44 TTX 6.1 Pinning RES 1 33 VSSA3 SP 2 32 VSSA2 AP 3 31 VDDA3 LLC1 4 30 CVBS VSSD1 5 VDDD1 6 RCV1 7 RCV2 8 26 GREEN MP7 9 25 VDDA1 29 BLUE SAA7128H SAA7129H 28 VDDA2 27 VBS VSSA1 22 SA 21 VDD(I2C) 20 RTCI 19 VSSD2 18 VDDD2 17 MP0 16 MP1 15 MP2 14 23 RED MP3 13 24 C MP5 11 MP4 12 MP6 10 001aac194 Fig 2. Pin configuration 6.2 Pin description Table 3: Pinning Symbol Pin Type Description RES 1 - reserved pin; do not connect SP 2 I test pin; connected to digital ground for normal operation AP 3 I test pin; connected to digital ground for normal operation LLC1 4 I line-locked clock input; this is the 27 MHz master clock VSSD1 5 supply digital ground 1 VDDD1 6 supply digital supply voltage 1 RCV1 7 I/O raster control 1 for video port; this pin receives/provides a VS/FS/FSEQ signal RCV2 8 I/O raster control 2 for video port; this pin provides an HS pulse of programmable length or receives an HS pulse 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 4 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 3: Pinning...continued Symbol Pin Type Description MP7 9 I MP6 10 I MP5 11 I double-speed 54 MHz MPEG port; it is an input for ITU-R BT.656 style multiplexed CR-Y-CB data; data is sampled on the rising and falling clock edge; data sampled on the rising edge is then sent to the encoding part of the device; data sampled on the falling edge is sent to the RGB part of the device (or vice versa, depending on programming) MP4 12 I MP3 13 I MP2 14 I MP1 15 I MP0 16 I VDDD2 17 supply digital supply voltage 2 VSSD2 18 supply digital ground 2 RTCI 19 I real-time control input; if the LLC1 clock is provided by an SAA7113 or SAA7118, RTCI should be connected to the RTCO pin of the respective decoder to improve the signal quality VDD(I2C) 20 supply sense input for I2C-bus voltage; connect to I2C-bus supply SA 21 I select I2C-bus address; LOW selects slave address 88h, HIGH selects slave address 8Ch VSSA1 22 supply analog ground 1 for RED (CR), C (CVBS) and GREEN (Y) outputs RED 23 O analog output of RED (CR) signal C 24 O analog output of chrominance (CVBS) signal VDDA1 25 supply analog supply voltage 1 for RED (CR) and C (CVBS) outputs GREEN 26 O analog output of GREEN (Y) signal VBS 27 O analog output of VBS (CVBS) signal VDDA2 28 supply analog supply voltage 2 for VBS (CVBS) and GREEN (Y) outputs BLUE 29 O analog output of BLUE (CB) signal CVBS 30 O analog output of CVBS (CSYNC) signal VDDA3 31 supply analog supply voltage 3 for BLUE (CB) and CVBS (CSYNC) outputs VSSA2 32 supply analog ground 2 for VBS (CVBS), BLUE (CB) and CVBS (CSYNC) outputs VSSA3 33 supply analog ground 3 for the DAC reference ladder and the oscillator XTALO 34 O crystal oscillator output XTALI 35 I crystal oscillator input; if the oscillator is not used, this pin should be connected to ground VDDA4 36 supply analog supply voltage 4 for the DAC reference ladder and the oscillator XCLK 37 O clock output of the crystal oscillator VSSD3 38 supply digital ground 3 VDDD3 39 supply digital supply voltage 3 RESET_N 40 I Reset input, active LOW. After reset is applied, all digital I/Os are in input mode; PAL black burst on CVBS, VBS and C; RGB outputs set to lowest voltage. The I2C-bus receiver waits for the START condition. SCL 41 I/(O) serial clock input (I2C-bus) with inactive output path SDA 42 I/O serial data input/output (I2C-bus) TTXRQ 43 O teletext request output, indicating when text bits are requested TTX 44 I teletext bit stream input 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 5 of 55 Philips Semiconductors SAA7128H; SAA7129H Digital video encoder 7. Functional description The digital video encoder encodes digital luminance and color difference signals into analog CVBS, S-video and simultaneously RGB or CR-Y-CB signals. NTSC-M, PAL-B/G, SECAM and sub-standards are supported. Both interlaced and non-interlaced operation is possible for all standards. The basic encoder function consists of subcarrier generation and color modulation and insertion of synchronization signals. Luminance and chrominance signals are filtered in accordance with the standard requirements of RS170A and ITU-R BT.470-3. For ease of post analog filtering the signals are twice oversampled with respect to the pixel clock before digital-to-analog conversion. The total filter transfer characteristics are illustrated in Figure 8 to Figure 13. The DACs for Y, C and CVBS are realized with full 10-bit resolution; 9-bit resolution for RGB output. The CR-Y-CB to RGB dematrix can be bypassed optionally in order to provide the upsampled CR-Y-CB input signals. The 8-bit multiplexed CR-Y-CB formats are ITU-R BT.656 (D1 format) compatible, but the SAV and EAV codes can be decoded optionally when the device is operated in slave mode. Two independent data streams can be processed, one latched by the rising edge of LLC1, the other latched by the falling edge of LLC1. The purpose of that is e.g. to forward one of the data streams containing both video and On-Screen Display (OSD) information to the RGB outputs, and the other stream containing video only to the encoded outputs CVBS and S-video. For optimum display of RGB signals through a euro-connector TV set, an early composite sync pulse (up to 31 LLC1 clock periods) can be provided at the CVBS output. As a further alternative, the VBS and C outputs may provide a second and third CVBS signal. It is also possible to connect a Philips digital video decoder (SAA7111A, SAA7113 or SAA7118) to the SAA7128H; SAA7129H. Via the RTCI pin, connected to RTCO of a decoder, information concerning actual subcarrier, PAL-ID and definite subcarrier phase can be inserted. The device synthesizes all necessary internal signals, color subcarrier frequency and synchronization signals from that clock. Wide screen signalling data can be loaded via the I2C-bus and is inserted into line 23 for standards using 50 Hz field rate. VPS data for program dependent automatic start and stop of such featured VCRs is loadable via I2C-bus. The IC also contains closed caption and extended data services encoding (line 21), and supports anti-taping signal generation in accordance with Macrovision. It is also possible to load data for copy generation management system into line 20 of every field (525/60 line counting). A number of possibilities are provided for setting different video parameters, such as: 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 6 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder * Black and blanking level control * Color subcarrier frequency * Variable burst amplitude, etc. During reset (RESET_N = LOW) and after reset is released, all digital I/O stages are set to input mode and the encoder is set to PAL mode and outputs a `black burst' signal on CVBS and S-video outputs, while RGB outputs are set to their lowest output voltages. A reset forces the I2C-bus interface to abort any running bus transfer. 7.1 Versatile fader Important note: whenever the fader is activated with the SYMP bit set to a logic 1 (enabling the detection of embedded Start of Active Video (SAV) and End of Active Video (EAV)), codes 00h and FFh are not allowed within the actual video data (as prescribed by ITU-R BT.656). If SAV (00h) has been detected, the fader automatically passes 100% of the respective signal until SAV is detected. Within the digital video encoder, two data streams can be faded against each other; these data streams can be input to the double speed MPEG port, which is able to separate two independent 27 MHz data streams MPA and MPB via a cross switch controlled by EDGE1 and EDGE2. MPpos MPA EDGE1 = 0 1= 1 GE ED ED GE MPneg EDGE2 = 1 2= 0 MPB mhb574 Fig 3. Cross switch 7.1.1 Configuration examples Figure 4 to Figure 7 show examples on how to configure the fader between the input ports and the outputs, separated into the composite (and S-video) encoder and the RGB encoder. 7.1.1.1 Configuration 1 Input MPA can be faded into MPB. The resulting output of the fader is then encoded simultaneously to composite (and S-video) and RGB output (RGBIN = ENCIN = 1). In this example, either MPA or MPB could be an overlay (menu) signal to be faded smoothly in and out. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 7 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder FADER MPA MP MPB VP ENCODER PATH e.g. video recorder RGB PATH e.g. TV OUTPUT mhb575 Fig 4. Configuration 1 7.1.1.2 Configuration 2 Input MPA can be faded into MPB. The resulting output of the fader is then encoded to RGB output, while the signal coming from MPB is fed directly to composite (and S-video) output (RGBIN = 1, ENCIN = 0). Also in this example, either MPA or MPB could be an overlay (menu) signal to be faded smoothly in and out, whereas the overlay appears only in the RGB output connected to the TV set. FADER MPA MP MPB VP ENCODER PATH e.g. video recorder RGB PATH e.g. TV OUTPUT mhb576 Fig 5. Configuration 2 7.1.1.3 Configuration 3 Input MPB is passed directly to the RGB output, assuming e.g. it contains video including overlay. MPA is equivalently passed through the inactive fader to the composite (and S-video) output, assuming e.g. it contains video excluding overlay (RGBIN = 0, ENCIN = 1). MPA FADER BYPASS MPB ENCODER PATH e.g. video recorder RGB PATH e.g. TV mhb577 Fig 6. Configuration 3 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 8 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 7.1.1.4 Configuration 4 Only MPB input is in use; its signal is both composite (and S-video) and RGB encoded (RGBIN = ENCIN = 0). MPA ENCODER PATH e.g. video recorder MPB RGB PATH e.g. TV mhb578 Fig 7. Configuration 4 7.1.2 Parameters of the fader Basically, there are three independent fade factors available, allowing for the equation: Output = (FADEx x In1) + [(1 - FADEx) x In2] Where x = 1, 2 or 3. Factor FADE1 is effective, when a color in the data stream fed to the MPEG port fader input is recognized as being between KEY1L and KEY1U. That means, the color is not identified by a single numeric value, but an upper and lower threshold in a 24-bit YUV color space can be defined. FADE1 = 00h results in 100 % signal at the MPEG port fader input and 0 % signal at the fader video port input. Variation of 63 steps is possible up to FADE1 = 3Fh, resulting in 0 % signal at the MPEG port fader input and 100 % signal at the fader video port input. Factor FADE2 is effective, when a color in the data stream fed to the MPEG port fader input is recognized as being between KEY2L and KEY2U. FADE2 is to be seen in conjunction with a color that is defined by a 24-bit internal Color Look-Up Table (CLUT). FADE2 = 00h results in 100 % of the internally defined LUT color and 0 % signal at the fader video port input. Variation of 63 steps is possible up to FADE2 = 3Fh, resulting in 0 % of the internally defined LUT color and 100 % signal at the fader video port input. Finally, factor FADE3 is effective, when a color in the data stream fed to the MPEG port fader input is recognized as neither being between KEY1L and KEY1U nor being between KEY2L and KEY2H. FADE3 = 00h results in 100 % signal at the MPEG port fader input and 0 % signal at the fader video port input. Variation of 63 steps is possible up to FADE3 = 3Fh, resulting in 0 % signal at the MPEG port fader input and 100 % signal at the fader video port input. Optionally, all upper and lower thresholds can be ignored, enabling to fade signals only against the LUT color. If bit CFADM is set HIGH, all data at the MPEG port fader are faded against the LUT color, if bit CFADV is set HIGH, all data at the video port fader are faded against the LUT color. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 9 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 7.2 Data manager In the data manager, a pre-defined color look-up table located in this block can be read out in a pre-defined sequence (8 steps per active video line) as an alternative to the external video data, achieving a color bar test pattern generator without the need for an external data source. 7.3 Encoder 7.3.1 Video path The encoder generates out of Y, U and V baseband signals luminance and color subcarrier output signals, suitable for use as CVBS or separate Y and C signals. Luminance is modified in gain and in offset (latter programmable in a certain range to enable different black level set-ups). A blanking level can be set after insertion of a fixed synchronization pulse tip level in accordance with standard composite synchronization schemes. Other manipulations used for the Macrovision anti-taping process such as additional insertion of AGC super-white pulses (programmable in height) are supported by the SAA7128H only. In order to enable easy post analog filtering, luminance is interpolated from a 13.5 MHz data rate to a 27 MHz data rate, providing luminance in 10-bit resolution. The transfer characteristics of the luminance interpolation filter are illustrated in Figure 10 and Figure 11. Appropriate transients at start/end of active video and for synchronization pulses are ensured. Chrominance is modified in gain (programmable separately for U and V), standard dependent burst is inserted, before baseband color signals are interpolated from a 6.75 MHz data rate to a 27 MHz data rate. One of the interpolation stages can be bypassed, thus providing a higher color bandwidth, which can be made use of for Y and C output. The transfer characteristics of the chrominance interpolation filter are illustrated in Figure 8 and Figure 9. The amplitude, beginning and ending of the inserted burst, is programmable in a certain range that is suitable for standard signals and for special effects. Behind the succeeding quadrature modulator, color in a 10-bit resolution is provided on the subcarrier. The numeric ratio between Y and C outputs is in accordance with the respective standards. 7.3.2 Teletext insertion and encoding Pin TTX receives a WST or NABTS teletext bitstream sampled at the LLC clock. Two protocols are provided: * At each rising edge of output signal (TTXRQ) a single teletext bit has to be provided after a programmable delay at input pin TTX * The signal TTXRQ performs only a single LOW-to-HIGH transition and remains at HIGH-level for 360, 296 or 288 teletext bits, depending on the chosen standard. Phase variant interpolation is achieved on this bitstream in the internal teletext encoder, providing sufficient small phase jitter on the output text lines. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 10 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder TTXRQ provides a fully programmable request signal to the teletext source, indicating the insertion period of bitstream at lines which are selectable independently for both fields. The internal insertion window for text is set to 360 (PAL-WST), 296 (NTSC-WST) or 288 (NABTS) teletext bits including clock run-in bits. The protocol and timing are illustrated in Figure 23. 7.3.3 Video Programming System (VPS) encoding Five bytes of VPS information can be loaded via the I2C-bus and will be encoded in the appropriate format into line 16. 7.3.4 Closed caption encoder Using this circuit, data in accordance with the specification of closed caption or extended data service, delivered by the control interface, can be encoded (line 21). Two dedicated pairs of bytes (two bytes per field), each pair preceded by run-in clocks and framing code, are possible. The actual line number where data is to be encoded in, can be modified in a certain range. The data clock frequency is in accordance with the definition for NTSC-M standard 32 times horizontal line frequency. Data LOW at the output of the DACs corresponds to 0 IRE, data HIGH at the output of the DACs corresponds to approximately 50 IRE. It is also possible to encode closed caption data for 50 Hz field frequencies at 32 times horizontal line frequency. 7.3.5 Anti-taping (SAA7128H only) For more information contact your nearest Philips Semiconductors sales office. 7.4 RGB processor This block contains a dematrix in order to produce red, green and blue signals to be fed to a SCART plug. Before Y, CB and CR signals are de-matrixed, individual gain adjustment for Y and color difference signals and 2 times oversampling for luminance and 4 times oversampling for color difference signals is performed. The transfer curves of luminance and color difference components of RGB are illustrated in Figure 12 and Figure 13 respectively. 7.5 SECAM processor SECAM specific pre-processing is achieved by a pre-emphasis of color difference signals (for gain and phase see Figure 14 and Figure 15 respectively). A baseband frequency modulator with a reference frequency shifted from 4.286 MHz to DC carries out SECAM modulation in accordance with appropriate standard or optional wide clipping limits. After HF pre-emphasis, line-by-line sequential carriers with black reference of 4.25 MHz (Db) and 4.40625 MHz (Dr) are generated on a DC reference carrier (anti-Cloche filter; see Figure 16 and Figure 17) using specified values for FSC programming bytes. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 11 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Alternating phase reset in accordance with SECAM standard is carried out automatically. During vertical blanking, the so-called `bottle pulses' are not provided. 7.6 Output interface/DACs In the output interface, encoded Y and C signals are converted from digital-to-analog in a 10-bit resolution. Y and C signals are also combined in a 10-bit CVBS signal. The CVBS output occurs with the same processing delay (equal to 82 LLC clock periods, measured from MP input to the analog outputs) as the Y, C and RGB outputs. Absolute amplitude at the input of the DAC for CVBS is reduced by 1516 with respect to Y and C DACs to make maximum use of conversion ranges. Red, green and blue signals are also converted from digital-to-analog, each providing a 9-bit resolution. Outputs of the DACs can be set together via software control to minimum output voltage (approximately 0.2 V DC) for either purpose. Alternatively, the buffers can be switched into 3-state output condition; this allows for a `wired AND' configuration with other 3-state outputs and can also be used as a power-save mode. 7.7 Synchronization The synchronization of the SAA7128H; SAA7129H is able to operate in two modes; slave mode and master mode. In master mode, see Figure 19, the circuit generates all necessary timings in the video signal itself, and it can provide timing signals at the RCV1 and RCV2 ports. In slave mode, it accepts timing information either from the RCV pins or from the embedded timing data of the ITU-R BT.656 data stream. For the SAA7128H; SAA7129H, the only difference between master and slave mode is that it ignores the timing information at its inputs in master mode. Thus, if in slave mode, any timing information is missing, the IC will continue running free without a visible effect. But there must not be any additional pulses (with wrong phase) because the circuit will not ignore them. In slave mode, see Figure 18, an interface circuit decides which signal is expected at the RCV1 port and which information is taken from its active slope. The polarity can be chosen. If PRCV1 is logic 0, the rising slope will be active. The signal can be: * A Vertical Sync (VS) pulse; the active slope sets the vertical phase * An odd/even signal; the active slope sets the vertical phase, the internal field flag to odd and optionally sets the horizontal phase * A Field Sequence (FSEQ) signal; it marks the first field of the 4 (NTSC) or 8 (PAL) or 12 (SECAM) field sequences; in addition to the odd/even signal, it also sets the PAL phase and optionally defines the subcarrier phase. On the RCV2 port, the IC can provide a horizontal pulse with programmable start and stop phase; this pulse can be inhibited in the vertical blanking period to build up, for example, a composite blanking signal. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 12 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder The horizontal phase can be set via a separate input RCV2. In the event of VS pulses at RCV1, this is mandatory. It is also possible to set the signal path to blank via this input. From the ITU-R BT.656 data stream, the SAA7128H; SAA7129H decodes only the start of the first line in the odd field. All other information is ignored and may miss. If this kind of slave mode is active, the RCV pins may be switched to output mode. In slave mode, the horizontal trigger phase can be programmed to any point in the line, the vertical phase from line 0 to line 15 counted from the first serration pulse in half line steps. Whenever synchronization information cannot be derived directly from the inputs, the SAA7128H; SAA7129H will calculate it from the internal horizontal, vertical and PAL phase. This gives good flexibility with respect to external synchronization, but the circuit does not suppress illegal settings. In such an event, the odd/even information may vanish as it does in the non-interlaced modes. In master mode, the line lengths are fixed to 1728 clocks at 50 Hz and 1716 clocks at 60 Hz. To allow non-interlaced frames, the field lengths can be varied by 0.5 lines. In the event of non-interlace, the SAA7128H; SAA7129H does not provide odd/even information and the output signal does not contain the PAL `Bruch sequence'. At the RCV1 pin the IC can provide: * A Vertical Sync (VS) signal with 2.5 (50 Hz) or 3 (60 Hz) lines duration * An odd/even signal which is LOW in odd fields * A Field Sequence (FSEQ) signal which is HIGH in the first field of the 4 or 8 or 12 field sequences. At the RCV2 pin, there is a horizontal pulse of programmable phase and duration available. This pulse can be suppressed in the programmable inactive part of a field, giving a composite blank signal. The directions and polarities of the RCV ports can be chosen independently. Timing references can be found in Table 55 and Table 63. 7.8 Clock The input to LLC1 can either be an external clock source or the buffered on-chip clock XCLK. The internal crystal oscillator can be run with either a 3rd-harmonic or a fundamental crystal frequency. 7.9 I2C-bus interface The I2C-bus interface is a standard slave transceiver, supporting 7-bit slave addresses and 400 kbit/s guaranteed transfer rate. It uses 8-bit subaddressing with an auto-increment function. All registers are write and readable, except one read only status byte. The I2C-bus slave address is defined as 88h with pin 21 (SA) tied LOW and as 8Ch with pin 21 (SA) tied HIGH. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 13 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 7.10 Input levels and formats The SAA7128H; SAA7129H expects digital Y, CB and CR data with levels (digital codes) in accordance with ITU-R BT.601. For C and CVBS outputs, deviating amplitudes of the color difference signals can be compensated by an independent gain control setting, while gain for luminance is set to predefined values, distinguishable for 7.5 IRE set-up or without set-up. The RGB, respectively CR-Y-CB path features a gain setting individually for luminance (GY) and color difference signals (GCD). Reference levels are measured with a color bar, 100 % white, 100 % amplitude and 100 % saturation. Table 4: Color ITU-R BT.601 signal component levels Signals [1] Y CB CR R [2] G [2] B [2] White 235 128 128 235 235 235 Yellow 210 16 146 235 235 16 Cyan 170 166 16 16 235 235 Green 145 54 34 16 235 16 Magenta 106 202 222 235 16 235 Red 81 90 240 235 16 16 Blue 41 240 110 16 16 235 Black 16 128 128 16 16 16 [1] Transformation: R = Y + 1.3707 x (CR - 128) G = Y - 0.3365 x (CB - 128) - 0.6982 x (CR - 128) B = Y + 1.7324 x (CB - 128). [2] Representation of R, G and B (or CR, Y and CB) at the output is 9 bits at 27 MHz. Table 5: 8-bit multiplexed format (similar to ITU-R BT.601 ) Time Bits 0 1 2 3 4 5 6 7 Sample CB0 Y0 CR0 Y1 CB2 Y2 CR2 Y3 Luminance pixel number 0 Color pixel number 0 1 9397 750 14325 Product data sheet 2 3 2 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 14 of 55 xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Table 6: Philips Semiconductors 9397 750 14325 Product data sheet 7.11 Bit allocation map Slave receiver (slave address 88h) Register function Subaddress Data byte [1] D7 D6 D5 D4 D3 D2 D1 D0 Status byte (read only) 00h VER2 VER1 VER0 CCRDO CCRDE 0 FSEQ O_E Null 01h to 25h 0 0 0 0 0 0 0 0 Wide screen signal 26h WSS7 WSS6 WSS5 WSS4 WSS3 WSS2 WSS1 WSS0 Wide screen signal 27h WSSON 0 WSS13 WSS12 WSS11 WSS10 WSS9 WSS8 DECCOL DECFIS BS5 BS4 BS3 BS2 BS1 BS0 29h 0 0 BE5 BE4 BE3 BE2 BE1 BE0 Copy generation 0 2Ah CG07 CG06 CG05 CG04 CG03 CG02 CG01 CG00 Copy generation 1 2Bh CG15 CG14 CG13 CG12 CG11 CG10 CG09 CG08 CG enable, copy generation 2 2Ch CGEN 0 0 0 CG19 CG18 CG17 CG16 Output port control 2Dh CVBSEN1 CVBSEN0 CVBSTRI YTRI CTRI RTRI GTRI BTRI Null 2Eh to 37h 0 0 0 0 0 0 0 0 Gain luminance for RGB 38h 0 0 0 GY4 GY3 GY2 GY1 GY0 Gain color difference for RGB 39h 0 0 0 GCD4 GCD3 GCD2 GCD1 GCD0 Input port control 1 3Ah CBENB 0 0 SYMP DEMOFF CSYNC MP2C VP2C Key color 1 lower limit U 42h KEY1LU7 KEY1LU6 KEY1LU5 KEY1LU4 KEY1LU3 KEY1LU2 KEY1LU1 KEY1LU0 Key color 1 lower limit V 43h KEY1LV7 KEY1LV6 KEY1LV5 KEY1LV4 KEY1LV3 KEY1LV2 KEY1LV1 KEY1LV0 Key color 1 lower limit Y 44h KEY1LY7 KEY1LY6 KEY1LY5 KEY1LY4 KEY1LY3 KEY1LY2 KEY1LY1 KEY1LY0 Key color 2 lower limit U 45h KEY2LU7 KEY2LU6 KEY2LU5 KEY2LU4 KEY2LU3 KEY2LU2 KEY2LU1 KEY2LU0 Key color 2 lower limit V 46h KEY2LV7 KEY2LV6 KEY2LV5 KEY2LV4 KEY2LV3 KEY2LV2 KEY2LV1 KEY2LV0 Key color 2 lower limit Y 47h KEY2LY7 KEY2LY6 KEY2LY5 KEY2LY4 KEY2LY3 KEY2LY2 KEY2LY1 KEY2LY0 Key color 1 upper limit U 48h KEY1UU7 KEY1UU6 KEY1UU5 KEY1UU4 KEY1UU3 KEY1UU2 KEY1UU1 KEY1UU0 Key color 1 upper limit V 49h KEY1UV7 KEY1UV6 KEY1UV5 KEY1UV4 KEY1UV3 KEY1UV2 KEY1UV1 KEY1UV0 Key color 1 upper limit Y 4Ah KEY1UY7 KEY1UY6 KEY1UY5 KEY1UY4 KEY1UY3 KEY1UY2 KEY1UY1 KEY1UY0 Key color 2 upper limit U 4Bh KEY2UU7 KEY2UU6 KEY2UU5 KEY2UU4 KEY2UU3 KEY2UU2 KEY2UU1 KEY2UU0 Key color 2 upper limit V 4Ch KEY2UV7 KEY2UV6 KEY2UV5 KEY2UV4 KEY2UV3 KEY2UV2 KEY2UV1 KEY2UV0 Key color 2 upper limit Y 4Dh KEY2UY7 KEY2UY6 KEY2UY5 KEY2UY4 KEY2UY3 KEY2UY2 KEY2UY1 KEY2UY0 Fade factor key color 1 4Eh 0 0 FADE15 FADE14 FADE13 FADE12 FADE11 FADE10 CFade, Fade factor key color 2 4Fh CFADEM CFADEV FADE25 FADE24 FADE23 FADE22 FADE21 FADE20 Digital video encoder 15 of 55 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. 28h Burst end SAA7128H; SAA7129H Rev. 03 -- 9 December 2004 Real-time control, burst start xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Slave receiver (slave address 88h)...continued Register function Subaddress Philips Semiconductors 9397 750 14325 Product data sheet Table 6: Data byte [1] D7 D6 D5 D4 D3 D2 D1 D0 FADE32 FADE31 FADE30 0 0 FADE35 FADE34 FADE33 Look-up table key color 2 U 51h LUTU7 LUTU6 LUTU5 LUTU4 LUTU3 LUTU2 LUTU1 LUTU0 Look-up table key color 2 V 52h LUTV7 LUTV6 LUTV5 LUTV4 LUTV3 LUTV2 LUTV1 LUTV0 Look-up table key color 2 Y 53h LUTY7 LUTY6 LUTY5 LUTY4 LUTY3 LUTY2 LUTY1 LUTY0 VPS enable, input control 2 54h VPSEN 0 ENCIN RGBIN DELIN VPSEL EDGE2 EDGE1 VPS byte 5 55h VPS57 VPS56 VPS55 VPS54 VPS53 VPS52 VPS51 VPS50 VPS byte 11 56h VPS117 VPS116 VPS115 VPS114 VPS113 VPS112 VPS111 VPS110 VPS byte 12 57h VPS127 VPS126 VPS125 VPS124 VPS123 VPS122 VPS121 VPS120 VPS byte 13 58h VPS137 VPS136 VPS135 VPS134 VPS133 VPS132 VPS131 VPS130 VPS byte 14 59h VPS147 VPS146 VPS145 VPS144 VPS143 VPS142 VPS141 VPS140 Chrominance phase 5Ah CHPS7 CHPS6 CHPS5 CHPS4 CHPS3 CHPS2 CHPS1 CHPS0 Gain U 5Bh GAINU7 GAINU6 GAINU5 GAINU4 GAINU3 GAINU2 GAINU1 GAINU0 Gain V 5Ch GAINV7 GAINV6 GAINV5 GAINV4 GAINV3 GAINV2 GAINV1 GAINV0 Gain U MSB, real-time control, black level 5Dh GAINU8 DECOE BLCKL5 BLCKL4 BLCKL3 BLCKL2 BLCKL1 BLCKL0 Gain V MSB, real-time control, blanking level 5Eh GAINV8 DECPH BLNNL5 BLNNL4 BLNNL3 BLNNL2 BLNNL1 BLNNL0 CCR, blanking level VBI 5Fh CCRS1 CCRS0 BLNVB5 BLNVB4 BLNVB3 BLNVB2 BLNVB1 BLNVB0 Null 60h 0 0 0 0 0 0 0 0 Standard control 61h DOWNB DOWNA INPI YGS SECAM SCBW PAL FISE RTC enable, burst amplitude 62h RTCE BSTA6 BSTA5 BSTA4 BSTA3 BSTA2 BSTA1 BSTA0 Subcarrier 0 63h FSC07 FSC06 FSC05 FSC04 FSC03 FSC02 FSC01 FSC00 Subcarrier 1 64h FSC15 FSC14 FSC13 FSC12 FSC11 FSC10 FSC09 FSC08 Subcarrier 2 65h FSC23 FSC22 FSC21 FSC20 FSC19 FSC18 FSC17 FSC16 Subcarrier 3 66h FSC31 FSC30 FSC29 FSC28 FSC27 FSC26 FSC25 FSC24 Line 21 odd 0 67h L21O07 L21O06 L21O05 L21O04 L21O03 L21O02 L21O01 L21O00 Line 21 odd 1 68h L21O17 L21O16 L21O15 L21O14 L21O13 L21O12 L21O11 L21O10 Line 21 even 0 69h L21E07 L21E06 L21E05 L21E04 L21E03 L21E02 L21E01 L21E00 Line 21 even 1 6Ah L21E17 L21E16 L21E15 L21E14 L21E13 L21E12 L21E11 L21E10 RCV port control 6Bh SRCV11 SRCV10 TRCV2 ORCV1 PRCV1 CBLF ORCV2 PRCV2 Digital video encoder 16 of 55 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. 50h SAA7128H; SAA7129H Rev. 03 -- 9 December 2004 Fade factor other xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx Slave receiver (slave address 88h)...continued Register function Subaddress Data byte [1] D7 D6 D5 D4 D3 D2 D1 D0 HTRIG6 HTRIG5 HTRIG4 HTRIG3 HTRIG2 HTRIG1 HTRIG0 Trigger control 6Ch HTRIG7 Trigger control 6Dh HTRIG10 HTRIG9 HTRIG8 VTRIG4 VTRIG3 VTRIG2 VTRIG1 VTRIG0 Multi control 6Eh SBLBN BLCKON PHRES1 PHRES0 LDEL1 LDEL0 FLC1 FLC0 Closed caption, teletext enable 6Fh CCEN1 CCEN0 TTXEN SCCLN4 SCCLN3 SCCLN2 SCCLN1 SCCLN0 RCV2 output start 70h RCV2S7 RCV2S6 RCV2S5 RCV2S4 RCV2S3 RCV2S2 RCV2S1 RCV2S0 RCV2 output end 71h RCV2E7 RCV2E6 RCV2E5 RCV2E4 RCV2E3 RCV2E2 RCV2E1 RCV2E0 MSBs RCV2 output 72h 0 RCV2E10 RCV2E9 RCV2E8 0 RCV2S10 RCV2S9 RCV2S8 TTX request H start 73h TTXHS7 TTXHS6 TTXHS5 TTXHS4 TTXHS3 TTXHS2 TTXHS1 TTXHS0 TTX request H delay 74h TTXHD7 TTXHD6 TTXHD5 TTXHD4 TTXHD3 TTXHD2 TTXHD1 TTXHD0 75h CSYNCA4 CSYNCA3 CSYNCA2 CSYNCA1 CSYNCA0 VS_S2 VS_S1 VS_S0 TTX odd request vertical start 76h TTXOVS7 TTXOVS6 TTXOVS5 TTXOVS4 TTXOVS3 TTXOVS2 TTXOVS1 TTXOVS0 TTX odd request vertical end 77h TTXOVE7 TTXOVE6 TTXOVE5 TTXOVE4 TTXOVE3 TTXOVE2 TTXOVE1 TTXOVE0 TTX even request vertical start 78h TTXEVS7 TTXEVS6 TTXEVS5 TTXEVS4 TTXEVS3 TTXEVS2 TTXEVS1 TTXEVS0 TTX even request vertical end 79h TTXEVE7 TTXEVE6 TTXEVE5 TTXEVE4 TTXEVE3 TTXEVE2 TTXEVE1 TTXEVE0 First active line 7Ah FAL7 FAL6 FAL5 FAL4 FAL3 FAL2 FAL1 FAL0 Last active line 7Bh LAL7 LAL6 LAL5 LAL4 LAL3 LAL2 LAL1 LAL0 TTX mode, MSB vertical 7Ch TTX60 LAL8 TTXO FAL8 TTXEVE8 TTXOVE8 TTXEVS8 TTXOVS8 Null 7Dh 0 0 0 0 0 0 0 0 Disable TTX line 7Eh LINE12 LINE11 LINE10 LINE9 LINE8 LINE7 LINE6 LINE5 Disable TTX line 7Fh LINE20 LINE19 LINE18 LINE17 LINE16 LINE15 LINE14 LINE13 Digital video encoder 17 of 55 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. All bits labelled `0' are reserved. They must be programmed with logic 0. SAA7128H; SAA7129H Rev. 03 -- 9 December 2004 CSYNC advance, Vsync shift [1] Philips Semiconductors 9397 750 14325 Product data sheet Table 6: SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 7.12 I2C-bus format Table 7: I2C-bus address; see Table 8 S SLAVE ADDRESS Table 8: ACK SUBADDRESS ACK DATA 0 ACK -------- DATA n ACK P Explanation of Table 7 Part Description S START condition SLAVE ADDRESS 1000 100X or 1000 110X [1] ACK acknowledge, generated by the slave SUBADDRESS [2] subaddress byte DATA data byte -------- continued data bytes and ACKs P STOP condition [1] X is the read/write control bit; X = logic 0 is order to write; X = logic 1 is order to read. [2] If more than 1 byte DATA is transmitted, then auto-increment of the subaddress is performed. 7.13 Slave receiver Table 9: Subaddress 26h Bit Symbol Description 7 WSS7 wide screen signalling bits: enhanced services field 6 WSS6 5 WSS5 4 WSS4 3 WSS3 2 WSS2 1 WSS1 0 WSS0 Table 10: wide screen signalling bits: aspect ratio field Subaddress 27h Bit Symbol Description 7 WSSON 0 = Wide screen signalling output is disabled; default state after reset, 1 = Wide screen signalling output is enabled. 6 - this bit is reserved and must be set to logic 0 5 WSS13 wide screen signalling bits: reserved field 4 WSS12 3 WSS11 2 WSS10 1 WSS9 0 WSS8 wide screen signalling bits: subtitles field 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 18 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 11: Subaddress 28h Bit Symbol 7 DECCOL Description 0 = disable color detection bit of RTCI input, 1 = enable color detection bit of RTCI input; bit RTCE must be set to logic 1, see Figure 22 6 DECFIS 0 = field sequence as FISE in subaddress 61, 1 = field sequence as FISE bit in RTCI input; bit RTCE must be set to logic 1, see Figure 22 5 BS5 4 BS4 PAL: BS[5:0] = 33 (21h); default value after reset 3 BS3 NTSC: BS[5:0] = 25 (19h). 2 BS2 1 BS1 0 BS0 Table 12: starting point of burst in clock cycles: Subaddress 29h Bit Symbol Description 7 - these 2 bits are reserved; each must be set to logic 0 6 - 5 BE5 4 BE4 PAL: BE[5:0] = 29 (1Dh); default value after reset 3 BE3 NTSC: BE[5:0] = 29 (1Dh). 2 BE2 1 BE1 0 BE0 Table 13: ending point of burst in clock cycles: Subaddress 2Ah Bit Symbol 7 to 0 CG[07:00] LSB of the byte is encoded immediately after run-in, the MSB of the byte has to carry the CRCC bit, in accordance with the definition of copy generation management system encoding format Table 14: Description Subaddress 2Bh Bit Symbol 7 to 0 CG[15:08] second byte; the MSB of the byte has to carry the CRCC bit, in accordance with the definition of copy generation management system encoding format Table 15: Description Subaddress 2Ch Bit Symbol 7 CGEN Description 0 = copy generation data output is disabled; default state after reset, 1 = copy generation data output is enabled. 6 - 5 - 4 - these 3 bits are reserved; each must be set to logic 0 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 19 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 15: Subaddress 2Ch...continued Bit Symbol Description 3 CG19 remaining bits of copy generation code 2 CG18 1 CG17 0 CG16 Table 16: Subaddress 2Dh Bit Symbol 7 CVBSEN1 0 = luminance output signal is switched to Y DAC; default state after reset, Description 6 CVBSEN0 0 = chrominance output signal is switched to C DAC; default state after reset, 5 CVBSTRI 1 = CVBS output signal is switched to Y DAC. 1 = CVBS output signal is switched to C DAC. 0 = DAC for CVBS output in 3-state mode (high-impedance), 1 = DAC for CVBS output in normal operation mode; default state after reset. 4 YTRI 0 = DAC for Y output in 3-state mode (high-impedance), 1 = DAC for Y output in normal operation mode; default state after reset. 3 CTRI 0 = DAC for C output in 3-state mode (high-impedance), 1 = DAC for C output in normal operation mode; default state after reset. 2 RTRI 0 = DAC for RED output in 3-state mode (high-impedance), 1 = DAC for RED output in normal operation mode; default state after reset. 1 GTRI 0 = DAC for GREEN output in 3-state mode (high-impedance), 1 = DAC for GREEN output in normal operation mode; default state after reset. 0 BTRI 0 = DAC for BLUE output in 3-state mode (high-impedance), 1 = DAC for BLUE output in normal operation mode; default state after reset. Table 17: Subaddress 38h Bit Symbol Description 7 to 5 - these 3 bits are reserved; each must be set to logic 0 4 to 0 GY[4:0] gain luminance of RGB (CR, Y and CB) output, ranging from (1 - 1632) to (1 + 1532); suggested nominal value = -6 (11010b), depending on external application Table 18: Subaddress 39h Bit Symbol Description 7 to 5 - these 3 bits are reserved; each must be set to logic 0 4 to 0 GCD[4:0] gain color difference of RGB (CR, Y and CB) output, ranging from (1 - 1632) to (1 + 1532); suggested nominal value = -6 (11010b), depending on external application 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 20 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 19: Subaddress 3Ah Bit Symbol 7 CBENB Description 0 = data from input ports is encoded; default state after reset, 1 = color bar with fixed colors is encoded. 6 - 5 - 4 SYMP these 2 bits are reserved; each must be set to a logic 0 0 = horizontal and vertical trigger is taken from RCV2 and RCV1, respectively; default state after reset, 1 = horizontal and vertical trigger is decoded out of ITU-R BT.656 compatible data at MPEG port. 3 0 = YCBCR-to-RGB dematrix is active; default state after reset, DEMOFF 1 = YCBCR-to-RGB dematrix is bypassed. 2 CSYNC 0 = CVBS output signal is switched to CVBS DAC; default state after reset, 1 = advanced composite sync is switched to CVBS DAC. 1 MP2C 0 = input data is twos complement from MPEG port fader input, 1 = input data is straight binary from MPEG port fader input; default state after reset. 0 VP2C 0 = input data is twos complement from video port fader input, 1 = input data is straight binary from video port fader input; default state after reset. Table 20: Subaddresses 42h to 44h and 48h to 4Ah Address Byte Description 42h, 48h KEY1LU[7:0] Key color 1 lower and upper limits for U, V and Y; if MPEG input signal is KEY1UU[7:0] within the limits of key color 1 the incoming signals at the video port and 43h, 49h KEY1LV[7:0] MPEG port are added together according to the equation: KEY1UV[7:0] 44h, 4Ah KEY1LY[7:0] KEY1UY[7:0] Table 21: FADE1 x video signal + (1 - FADE1) x MPEG signal Default value of all bytes after reset = 80h. Subaddresses 45h to 47h and 4Bh to 4Dh Address Byte Description 45h, 4Bh KEY2LU[7:0] Key color 2 lower and upper limits for U, V and Y; if MPEG input signal is KEY2UU[7:0] within the limits of key color 2 the incoming signals at the video port and 46h, 4Ch KEY2LV[7:0] MPEG port are added together according to the equation: KEY2UV[7:0] 47h, 4Dh KEY2LY[7:0] KEY2UY[7:0] FADE2 x video signal + (1 - FADE2) x LUT values Default value of all bytes after reset = 80h. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 21 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 22: Subaddress 4Eh Bit Symbol Description 7 to 6 - these 2 bits are reserved; each must be set to logic 0 5 to 0 FADE1[5:0] these 6 bits form factor FADE1 which determines the ratio between the MPEG and video input signal in the resulting video data stream if the key color 1 is detected in the MPEG input signal: FADE1 = 00h: 100 % MPEG, 0 % video FADE1 = 3Fh: 100 % video, 0 % MPEG; default value after reset. Table 23: Subaddress 4Fh Bit Symbol Description 7 CFADEM 0 = fader operates in normal mode; default state after reset, 1 = the entire video input stream is faded with the color stored in the LUT (subaddresses 51h to 53h) regardless of the MPEG input signal; the color keys are disabled. 6 CFADEV 0 = fader operates in normal mode; default state after reset, 1 = the entire MPEG input stream is faded with the color stored in the LUT (subaddresses 51h to 53h) regardless of the video input signal; the color keys are disabled. 5 to 0 FADE2[5:0] these 6 bits form factor FADE2 which determines the ratio between the LUT color values (subaddresses 51h to 53h) and the video input signal in the resulting video data stream if the key color 2 is detected in the MPEG input signal: FADE2 = 00h: 100 % LUT color, 0 % video FADE2 = 3Fh: 100 % video, 0 % LUT color; default value after reset. Table 24: Subaddress 50h Bit Symbol Description 7 to 6 - these 2 bits are reserved; each must be a logic 0 5 to 0 FADE3[5:0] these 6 bits form factor FADE3 which determines the ratio between the MPEG and video input signal in the resulting video data stream if neither the key color 1 nor the key color 2 is detected in the MPEG input signal: FADE3 = 00h: 100 % MPEG, 0 % video FADE3 = 3Fh: 100 % video, 0 % MPEG; default value after reset. Table 25: Subaddress 51h Bit Symbol 7 to 0 LUTU[7:0] LUT for the color values inserted in case of key color 2 U detection in the MPEG input data stream; LUTU[7:0] = 80h; default value after reset Table 26: Description Subaddress 52h Bit Symbol Description 7 to 0 LUTV[7:0] LUT for the color values inserted in case of key color 2 V detection in the MPEG input data stream; LUTV[7:0] = 80h; default value after reset 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 22 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 27: Subaddress 53h Bit Symbol 7 to 0 LUTY[7:0] LUT for the color values inserted in case of key color 2 Y detection in the MPEG input data stream; LUTY[7:0] = 80h; default value after reset Table 28: Description Subaddress 54h Bit Symbol Description 7 VPSEN 0 = video programming system data insertion is disabled; default state after reset, 1 = video programming system data insertion in line 16 is enabled. 6 - this bit is not used and should be set to logic 0 5 ENCIN 0 = encoder path is fed with MPB input data; fader is bypassed; default state after reset, 1 = encoder path is fed with output signal of fader; see Section 7.1. 4 RGBIN 0 = RGB path is fed with MPB input data; fader is bypassed; default state after reset, 1 = RGB path is fed with output signal of fader; see Section 7.1. 3 DELIN 0 = not supported in current version; do not use, 1 = recommended value; default state after reset. 2 VPSEL 0 = not supported in current version; do not use, 1 = recommended value; default state after reset. 1 EDGE2 0 = MPB data is sampled on the rising clock edge; default state after reset, 1 = MPB data is sampled on the falling clock edge. 0 EDGE1 0 = MPA data is sampled on the rising clock edge; default state after reset, 1 = MPA data is sampled on the falling clock edge. Table 29: Subaddress 55h Bit Symbol Description 7 to 0 VPS5[7:0] fifth byte of video programming system data in line 16; LSB first Table 30: Subaddress 56h Bit Symbol 7 to 0 VPS11[7:0] eleventh byte of video programming system data in line 16; LSB first Description Table 31: Subaddress 57h Bit Symbol 7 to 0 VPS12[7:0] twelfth byte of video programming system data in line 16; LSB first Table 32: Subaddress 58h Description Bit Symbol 7 to 0 VPS13[7:0] thirteenth byte of video programming system data in line 16; LSB first Description 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 23 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 33: Subaddress 59h Bit Symbol 7 to 0 VPS14[7:0] fourteenth byte of video programming system data in line 16; LSB first Description Table 34: Subaddress 5Ah Bit Symbol Description 7 to 0 CHPS[7:0] phase of encoded color subcarrier (including burst) relative to horizontal sync; can be adjusted in steps of 360/256 degrees: 0Fh = PAL-B/G and data from input ports 3Ah = PAL-B/G and data from look-up table 35h = NTSC-M and data from input ports 57h = NTSC-M and data from look-up table. Table 35: Subaddress 5Bh Bit Symbol 7 to 0 GAINU[7:0] these are the 8 LSBs of the 9-bit code that selects the variable gain for the CB signal; input representation in accordance with ITU-R BT.601; see Table 36; the MSB is held in subaddress 5Dh; see Table 39 Description Table 36: GAINU values Conditions [1] Encoding White-to-black = 92.5 IRE GAINU = -2.17 x nominal to +2.16 x nominal GAINU[8:0] = 0 output subcarrier of U contribution = 0 GAINU[8:0] = 118 (76h) output subcarrier of U contribution = nominal White-to-black = 100 IRE GAINU = -2.05 x nominal to +2.04 x nominal GAINU[8:0] = 0 output subcarrier of U contribution = 0 GAINU[8:0] = 125 (7Dh) output subcarrier of U contribution = nominal GAINU[8:0] = 106 (6Ah) nominal GAINU for SECAM encoding [1] All IRE values are rounded up. Table 37: Subaddress 5Ch Bit Symbol 7 to 0 GAINV[7:0] these are the 8 LSBs of the 9-bit code that selects the variable gain for the CR signal; input representation in accordance with ITU-R BT.601; see Table 38; the MSB is held in subaddress 5Eh; see Table 41 Table 38: GAINV values Description Conditions [1] Encoding White-to-black = 92.5 IRE GAINV = -1.55 x nominal to +1.55 x nominal GAINV[8:0] = 0 output subcarrier of V contribution = 0 GAINV[8:0] = 165 (A5h) output subcarrier of V contribution = nominal White-to-black = 100 IRE GAINV = -1.46 x nominal to +1.46 x nominal GAINV[8:0] = 0 output subcarrier of V contribution = 0 GAINV[8:0] = 175 (AFh) output subcarrier of V contribution = nominal 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 24 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 38: GAINV values...continued Conditions [1] Encoding GAINV[8:0] = 129 (81h) nominal GAINV for SECAM encoding [1] All IRE values are rounded up. Table 39: Subaddress 5Dh Bit Symbol Description 7 GAINU8 MSB of the 9-bit code that sets the variable gain for the CB signal; see Table 35. 6 DECOE real-time control: 0 = disable odd/even field control bit from RTCI 1 = enable odd/even field control bit from RTCI; see Figure 22. 5 to 0 Table 40: BLCKL[5:0] variable black level; input representation in accordance with ITU-R BT.601; see Table 40 BLCKL values Conditions [1] Encoding [1] White-to-sync = 140 IRE [2] recommended value: BLCKL = 58 (3Ah) BLCKL = 0 [2] BLCKL = 63 output black level = 29 IRE (3Fh) [2] White-to-sync = 143 BLCKL = output black level = 49 IRE IRE [3] 0 [3] recommended value: BLCKL = 51 (33h) output black level = 27 IRE BLCKL = 63 (3Fh) [3] output black level = 47 IRE [1] All IRE values are rounded up. [2] Output black level/IRE = BLCKL x 2/6.29 + 28.9. [3] Output black level/IRE = BLCKL x 2/6.18 + 26.5. Table 41: Subaddress 5Eh Bit Symbol Description 7 GAINV8 MSB of the 9-bit code that sets the variable gain for the CR signal; see Table 37. 6 DECPH real-time control: 0 = disable subcarrier phase reset bit from RTCI 1 = enable subcarrier phase reset bit from RTCI; see Figure 22. BLNNL[5:0] variable blanking level; see Table 42 5 to 0 Table 42: BLNNL values Conditions [1] Encoding [1] White-to-sync = 140 IRE [2] recommended value: BLNNL = 46 (2Eh) BLNNL = 0 [2] BLNNL = 63 output blanking level = 25 IRE (3Fh) [2] White-to-sync = 143 BLNNL = 0 [3] output blanking level = 45 IRE IRE [3] recommended value: BLNNL = 53 (35h) output blanking level = 26 IRE 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 25 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 42: BLNNL values...continued Conditions [1] Encoding [1] BLNNL = 63 (3Fh) [3] output blanking level = 46 IRE [1] All IRE values are rounded up. [2] Output black level/IRE = BLNNL x 2/6.29 + 25.4. [3] Output black level/IRE = BLNNL x 2/6.18 + 25.9; default after reset: 35h. Table 43: Subaddress 5Fh Bit Symbol Description 7 CCRS1 6 CCRS0 these 2 bits select the cross-color reduction filter in luminance; see Table 44 and Figure 10 5 BLNVB5 4 BLNVB4 3 BLNVB3 2 BLNVB2 1 BLNVB1 0 BLNVB0 Table 44: these 6 bits select the variable blanking level during vertical blanking; interval is typically identical to value of BLNNL Selection of cross-color reduction filter CCRS1 CCRS0 Description 0 0 no cross-color reduction 0 1 cross-color reduction #1 active 1 0 cross-color reduction #2 active 1 1 cross-color reduction #3 active Table 45: Subaddress 61h Bit Symbol Description 7 DOWNB 0 = DACs for R, G and B in normal operational mode, 1 = DACs for R, G and B forced to lowest output voltage; default state after reset. 6 DOWNA 0 = DACs for CVBS, Y and C in normal operational mode; default state after reset, 1 = DACs for CVBS, Y and C forced to lowest output voltage. 5 INPI 0 = PAL switch phase is nominal; default state after reset, 1 = PAL switch phase is inverted compared to nominal if RTC is enabled; see Table 46. 4 YGS 0 = luminance gain for white - black 100 IRE; default state after reset, 1 = luminance gain for white - black 92.5 IRE including 7.5 IRE set-up of black. 3 SECAM 0 = no SECAM encoding; default state after reset, 1 = SECAM encoding activated; bit PAL has to be set to logic 0. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 26 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 45: Subaddress 61h...continued Bit Symbol Description 2 SCBW 0 = enlarged bandwidth for chrominance encoding (for overall transfer characteristic of chrominance in baseband representation see Figure 8 and 9), 1 = standard bandwidth for chrominance encoding (for overall transfer characteristic of chrominance in baseband representation see Figure 8 and 9); default state after reset. 1 PAL 0 = NTSC encoding (non-alternating V component), 1 = PAL encoding (alternating V component); default state after reset. 0 FISE 0 = 864 total pixel clocks per line; default state after reset, 1 = 858 total pixel clocks per line. Table 46: Subaddress 62h Bit Symbol Description 7 RTCE 0 = no real-time control of generated subcarrier frequency; default state after reset, 1 = real-time control of generated subcarrier frequency through SAA7113 or SAA7118; for timing, see Figure 22. 6 to 0 Table 47: BSTA[6:0] amplitude of color burst; input representation in accordance with ITU-R BT.601; see Table 47 BSTA values Conditions [1] Encoding White-to-black = 92.5 IRE; burst = 40 IRE; NTSC encoding recommended value: BSTA = 63 (3Fh) BSTA = 0 to 2.02 x nominal White-to-black = 92.5 IRE; burst = 40 IRE; PAL encoding recommended value: BSTA = 45 (2Dh) BSTA = 0 to 2.82 x nominal White-to-black = 100 IRE; burst = 43 IRE; NTSC encoding recommended value: BSTA = 67 (43h) BSTA = 0 to 1.90 x nominal White-to-black = 100 IRE; burst = 43 IRE; PAL encoding recommended value: BSTA = 47 (2Fh); default value after reset BSTA = 0 to 3.02 x nominal Fixed burst amplitude with SECAM encoding [1] All IRE values are rounded up. Table 48: Subaddresses 63h to 66h Address Byte Description 63h FSC[07:00] these 4 bytes are used to program the subcarrier frequency; FSC[31:24] is the most significant byte, FSC[07:00] is the least significant byte: 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 27 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 48: Subaddresses 63h to 66h...continued Address Byte 64h FSC[15:08] Description fsc = subcarrier frequency (in multiples of line frequency) fllc = clock frequency (in multiples of line frequency). 65h FSC[23:16] 66h FSC[31:24] [1] f sc 32 FSC = round --------- x 2 f llc [1] Examples: a) NTSC-M: fsc = 227.5, fllc = 1716 FSC = 569408543 (21F07C1Fh). b) PAL-B/G: fsc = 283.7516, fllc = 1728 FSC = 705268427 (2A098ACBh). c) SECAM: fsc = 274.304, fllc = 1728 FSC = 681786290 (28A33BB2h). Table 49: Subaddress 67h Bit Symbol 7 to 0 L21O[07:00] first byte of captioning data, odd field; LSB of the byte is encoded immediately after run-in and framing code, the MSB of the byte has to carry the parity bit, in accordance with the definition of line 21 encoding format Table 50: Description Subaddress 68h Bit Symbol 7 to 0 L21O[17:10] second byte of captioning data, odd field; the MSB of the byte has to carry the parity bit, in accordance with the definition of line 21 encoding format Table 51: Description Subaddress 69h Bit Symbol 7 to 0 L21E[07:00] first byte of extended data, even field; LSB of the byte is encoded immediately after run-in and framing code, the MSB of the byte has to carry the parity bit, in accordance with the definition of line 21 encoding format Table 52: Description Subaddress 6Ah Bit Symbol 7 to 0 L21E[17:10] second byte of extended data, even field; the MSB of the byte has to carry the parity bit, in accordance with the definition of line 21 encoding format Table 53: Description Subaddress 6Bh Bit Symbol Description 7 SRCV11 these 2 bits define signal type on pin RCV1; see Table 54 6 SRCV10 5 TRCV2 0 = horizontal synchronization is taken from RCV1 port (at bit SYMP = LOW) or from decoded frame sync of ITU-R BT.656 input (at bit SYMP = HIGH); default state after reset, 1 = horizontal synchronization is taken from RCV2 port (at bit SYMP = LOW). 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 28 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 53: Subaddress 6Bh...continued Bit Symbol Description 4 ORCV1 0 = pin RCV1 is switched to input; default state after reset, 1 = pin RCV1 is switched to output. 3 PRCV1 0 = polarity of RCV1 as output is active HIGH, rising edge is taken when input; default state after reset, 1 = polarity of RCV1 as output is active LOW, falling edge is taken when input. 2 CBLF when CBLF = 0: If ORCV2 = 1, pin RCV2 provides an HREF signal (horizontal reference pulse that is defined by RCV2S and RCV2E, also during vertical blanking interval); default state after reset If ORCV2 = 0 and bit SYMP = 0, signal input to RCV2 is used for horizontal synchronization only (if TRCV2 = 1); default state after reset. when CBLF = 1: If ORCV2 = 1, pin RCV2 provides a `composite-blanking-not' signal, for example a reference pulse that is defined by RCV2S and RCV2E, excluding vertical blanking interval, which is defined by FAL and LAL If ORCV2 = 0 and bit SYMP = 0, signal input to RCV2 is used for horizontal synchronization (if TRCV2 = 1) and as an internal blanking signal. 1 ORCV2 0 = pin RCV2 is switched to input; default state after reset, 0 PRCV2 0 = polarity of RCV2 as output is active HIGH, rising edge is taken when input, respectively; default state after reset, 1 = pin RCV2 is switched to output. 1 = polarity of RCV2 as output is active LOW, falling edge is taken when input, respectively. Table 54: Selection of the signal type on pin RCV1 SRCV11 SRCV10 RCV1 Function 0 0 VS Vertical Sync each field; default state after reset 0 1 FS Frame Sync (odd/even). 1 0 FSEQ Field Sequence, vertical sync every fourth field (PAL = 0), eighth field (PAL = 1) or twelfth field (SECAM = 1). 1 1 - not applicable Table 55: Subaddress 6Ch Bit Symbol 7 to 0 HTRIG[7:0] These are the 8 LSBs of the 11-bit code that sets the horizontal trigger phase related to the signal on RCV1 or RCV2 input. The 3 MSBs are held in subaddress 6Dh; see Table 56. Values above 1715 (FISE = 1) or 1727 (FISE = 0) are not allowed. Increasing HTRIG[10:0] decreases delays of all internally generated timing signals. Reference mark: analog output horizontal sync (leading slope) coincides with active edge of RCV used for triggering at HTRIG[10:0] = 4Fh (79). Description 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 29 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 56: Subaddress 6Dh Bit Symbol Description 7 HTRIG10 these are the 3 MSBs of the horizontal trigger phase code; see Table 55 6 HTRIG9 5 HTRIG8 4 VTRIG4 3 VTRIG3 2 VTRIG2 1 VTRIG1 0 VTRIG0 Table 57: sets the vertical trigger phase related to signal on RCV1 input; increasing VTRIG decreases delays of all internally generated timing signals, measured in half lines; variation range of VTRIG[4:0] = 0 to 31 (1Fh) Subaddress 6Eh Bit Symbol Description 7 SBLBN 0 = vertical blanking is defined by programming of FAL and LAL; default state after reset, 1 = vertical blanking is forced in accordance with ITU-R BT.624 (50 Hz) or RS170A (60 Hz). 6 BLCKON 0 = encoder in normal operation mode, 5 PHRES1 4 PHRES0 3 LDEL1 2 LDEL0 these 2 bits select the delay on luminance path with reference to chrominance path; see Table 59 1 FLC1 these 2 bits select field length control; see Table 60 0 FLC0 1 = output signal is forced to blanking level; default state after reset. Table 58: these 2 bits select the phase reset mode of the color subcarrier generator; see Table 58 Selection of phase reset mode PHRES1 PHRES0 Description 0 0 no reset or reset via RTCI from SAA7113 or SAA7118 if bit RTCE = 1; default value after reset 0 1 reset every two lines or SECAM specific if bit SECAM = 1 1 0 reset every eight fields 1 1 reset every four fields Table 59: Selection of luminance path delay LDEL1 LDEL0 Luminance path delay 0 0 no luminance delay; default value after reset 0 1 1 LLC luminance delay 1 0 2 LLC luminance delay 1 1 3 LLC luminance delay 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 30 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 60: Selection of field length control FLC1 FLC0 Description 0 0 interlaced 312.5 lines/field at 50 Hz, 262.5 lines/field at 60 Hz; default value after reset 0 1 non-interlaced 312 lines/field at 50 Hz, 262 lines/field at 60 Hz 1 0 non-interlaced 313 lines/field at 50 Hz, 263 lines/field at 60 Hz 1 1 Table 61: Subaddress 6Fh Bit Symbol Description 7 CCEN1 these 2 bits enable individual line 21 encoding; see Table 62 6 CCEN0 5 TTXEN 0 = disables teletext insertion; default state after reset, 1 = enables teletext insertion. 4 SCCLN4 3 SCCLN3 line = (SCCLN[4:0] + 4) for M-systems 2 SCCLN2 line = (SCCLN[4:0] + 1) for other systems. 1 SCCLN1 0 SCCLN0 Table 62: these 5 bits select the actual line where closed caption or extended data are encoded: Selection of line 21 encoding CCEN1 CCEN0 Line 21 encoding 0 0 line 21 encoding off; default value after reset 0 1 enables encoding in field 1 (odd) 1 0 enables encoding in field 2 (even) 1 1 enables encoding in both fields Table 63: Subaddress 70h Bit Symbol 7 to 0 RCV2S[7:0] these are the 8 LSBs of the 11-bit code that determines the start of the output signal on the RCV2 pin; the 3 MSBs of the 11-bit code are held at subaddress 72h; see Table 65; values above 1715 (FISE = 1) or 1727 (FISE = 0) are not allowed; leading sync slope at CVBS output coincides with leading slope of RCV2 out at RCV2S = 49h Description Table 64: Subaddress 71h Bit Symbol 7 to 0 RCV2E[7:0] these are the 8 LSBs of the 11-bit code that determines the end of the output signal on the RCV2 pin; the 3 MSBs of the 11-bit code are held at subaddress 72h; see Table 65; values above 1715 (FISE = 1) or 1727 (FISE = 0) are not allowed; leading sync slope at CVBS output coincides with trailing slope of RCV2 out at RCV2E = 49h Description 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 31 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 65: Subaddress 72h Bit Symbol Description 7 - this bit is reserved and must be set to a logic 0 these are the 3 MSBs of end of output signal code; see Table 64 6 RCV2E10 5 RCV2E9 4 RCV2E8 3 - this bit is reserved and must be set to a logic 0 these are the 3 MSBs of start of output signal code; see Table 63 2 RCV2S10 1 RCV2S9 0 RCV2S8 Table 66: Subaddress 73h Bit Symbol 7 to 0 TTXHS[7:0] start of signal on pin TTXRQ; see Figure 23: Description PAL: TTXHS[7:0] = 42h NTSC: TTXHS[7:0] = 54h. Table 67: Subaddress 74h Bit Symbol 7 to 0 TTXHD[7:0] indicates the delay in clock cycles between rising edge of TTXRQ output and valid data at pin TTX: Description minimum value: TTXHD[7:0] = 2. Table 68: Subaddress 75h Bit Symbol Description 7 CSYNCA4 6 CSYNCA3 advanced composite sync against RGB output from 0 to 31 LLC clock periods 5 CSYNCA2 4 CSYNCA1 3 CSYNCA0 2 VS_S2 1 VS_S1 0 VS_S0 Table 69: Subaddress 76h Bit Symbol 7 to 0 TTXOVS[7:0] These are the 8 LSBs of the 9-bit code that determines the first line of occurrence of signal on pin TTXRQ in odd field. The MSB is held in subaddress 7Ch; see Table 75: vertical sync shift between RCV1 and RCV2 (switched to output); in master mode it is possible to shift Hsync (RCV2; CBLF = 0) against Vsync (RCV1; SRCV11 = 0 and SRCV10 = 0): Standard value: VS_S[2:0] = 3. Description Remarks PAL: TTXOVS = 05h; NTSC: TTXOVS = 06h line = (TTXOVS[8:0] + 4) for M-systems line = (TTXOVS[8:0] + 1) for other systems. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 32 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 70: Subaddress 77h Bit Symbol 7 to 0 TTXOVE[7:0] These are the 8 LSBs of the 9-bit code that determines the last line of occurrence of signal on pin TTXRQ in odd field. The MSB is held in subaddress 7Ch; see Table 75: Description Remarks PAL: TTXOVE = 16h; NTSC: TTXOVE = 10h Last line = (TTXOVE[8:0] + 3) for M-systems Last line = TTXOVE[8:0] for other systems. Table 71: Subaddress 78h Bit Symbol 7 to 0 TTXEVS[7:0] These are the 8 LSBs of the 9-bit code that determines the first line of occurrence of signal on pin TTXRQ in even field. The MSB is held in subaddress 7Ch; see Table 75: Description Remarks PAL: TTXEVS = 04h; NTSC: TTXEVS = 05h first line = (TTXEVS[8:0] + 4) for M-systems first line = (TTXEVS[8:0] + 1) for other systems. Table 72: Subaddress 79h Bit Symbol 7 to 0 TTXEVE[7:0] These are the 8 LSBs of the 9-bit code that determines the last line of occurrence of signal on pin TTXRQ in even field. The MSB is held in subaddress 7Ch; see Table 75: Description Remarks PAL: TTXEVE = 16h; NTSC: TTXEVE = 10h last line = (TTXEVE[8:0] + 3) for M-systems last line = TTXEVE[8:0] for other systems. Table 73: Subaddress 7Ah Bit Symbol Description 7 to 0 FAL[7:0] These are the 8 LSBs of the 9-bit code that determines the first active line. The MSB is held in subaddress 7Ch; see Table 75; FAL[8:0] = 0 coincides with the first field synchronization pulse: first active line = (FAL[8:0] + 4) for M-systems first active line = (FAL[8:0] + 1) for other systems. Table 74: Subaddress 7Bh Bit Symbol Description 7 to 0 LAL[7:0] These are the 8 LSBs of the 9-bit code that determines the last active line. The MSB is held in subaddress 7Ch; see Table 75; LAL[8:0] = 0 coincides with the first field synchronization pulse: last active line = (LAL[8:0] + 3) for M-systems last active line = LAL[8:0] for other systems. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 33 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 75: Subaddress 7Ch Bit Symbol Description 7 TTX60 0 = enables NABTS (FISE = 1) or European teletext (FISE = 0); default state after reset, 1 = enables World Standard Teletext 60 Hz (FISE = 1). 6 LAL8 MSB of the last active line code; see Table 74 5 TTXO 0 = new teletext protocol selected: at each rising edge of TTXRQ a single teletext bit is requested; see Figure 23; default state after reset, 1 = old teletext protocol selected: the encoder provides a window of TTXRQ going HIGH; the length of the window depends on the chosen teletext standard; see Figure 23. 4 FAL8 MSB of the first active line code; see Table 73 3 TTXEVE8 MSB of the 9-bit code that selects the last line of occurrence of signal on pin TTXRQ in even field; see Table 72 2 TTXOVE8 MSB of the 9-bit code that selects the last line of occurrence of signal on pin TTXRQ in odd field; see Table 70 1 TTXEVS8 MSB of the 9-bit code that selects the first line of occurrence of signal on pin TTXRQ in even field; see Table 71 0 TTXOVS8 MSB of the 9-bit code that selects the first line of occurrence of signal on pin TTXRQ in odd field; see Table 69 Table 76: Subaddress 7Eh Bit Symbol Description 7 to 0 LINE[12:5] Individual lines in both fields (PAL counting) can be disabled for insertion of teletext by the respective LINE bits. Disabled line = LINEnn (50 Hz field rate). This bit mask is effective only, if the lines are enabled by TTXOVS/TTXOVE and TTXEVS/TTXEVE. Table 77: Subaddress 7Fh Bit Symbol 7 to 0 LINE[20:13] Individual lines in both fields (PAL counting) can be disabled for insertion of teletext by the respective LINE bits. Disabled line = LINEnn (50 Hz field rate). This bit mask is effective only, if the lines are enabled by TTXOVS/TTXOVE and TTXEVS/TTXEVE. Description 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 34 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 7.14 Slave transmitter The slave transmitter slave address is 89h. Table 78: Subaddress 00h Bit Symbol Description 7 VER2 6 VER1 5 VER0 these 3 bits form the version identification number of the device: it will be changed with all versions of the IC that have different programming models; current version is 000b 4 CCRDO 1 = closed caption bytes of the odd field have been encoded, 0 = the bit is reset after information has been written to the subaddresses 67h and 68h; it is set immediately after the data has been encoded. 3 CCRDE 1 = closed caption bytes of the even field have been encoded, 0 = the bit is reset after information has been written to the subaddresses 69h and 6Ah; it is set immediately after the data has been encoded. 2 - not used; set to logic 0 1 FSEQ 1 = during first field of a sequence (repetition rate: NTSC = 4 fields, PAL = 8 fields, SECAM = 12 fields), 0 O_E 1 = during even field, 0 = not first field of a sequence. 0 = during odd field. mbe737 6 Gv (dB) -6 -18 (1) (2) -30 -42 -54 0 2 4 6 8 10 12 14 f (MHz) (1) SCBW = 1 (2) SCBW = 0 Fig 8. Chrominance transfer characteristic 1 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 35 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder mbe735 2 Gv (dB) 0 (1) (2) -2 -4 -6 0 0.4 0.8 1.2 f (MHz) 1.6 (1) SCBW = 1 (2) SCBW = 0 Fig 9. Chrominance transfer characteristic 2 mgd672 6 Gv (dB) (4) (2) (3) -6 (1) -18 -30 -42 -54 0 2 4 6 8 10 12 14 f (MHz) (1) CCRS1 = 0; CCRS0 = 1 (2) CCRS1 = 1; CCRS0 = 0 (3) CCRS1 = 1; CCRS0 = 1 (4) CCRS1 = 0; CCRS0 = 0 Fig 10. Luminance transfer characteristic 1 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 36 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder mbe736 1 Gv (dB) (1) 0 -1 -2 -3 -4 -5 0 2 4 f (MHz) 6 (1) CCRS1 = 0; CCRS0 = 0 Fig 11. Luminance transfer characteristic 2 mgb708 6 Gv (dB) -6 -18 -30 -42 -54 0 2 4 6 8 10 12 14 f (MHz) Fig 12. Luminance transfer characteristic in RGB 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 37 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder mgb706 6 Gv (dB) -6 -18 -30 -42 -54 0 2 4 6 8 10 12 14 f (MHz) Fig 13. Color difference transfer characteristic in RGB mgb705 10 Gv (dB) 8 6 4 2 0 0 0.4 0.8 1.2 1.6 f (MHz) Fig 14. Gain of SECAM pre-emphasis 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 38 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder mgb704 30 (deg) 20 10 0 0 0.4 0.8 1.2 1.6 f (MHz) Fig 15. Phase of SECAM pre-emphasis mgb703 20 Gv (dB) 16 12 8 4 0 0 0.4 0.8 1.2 1.6 f (MHz) Fig 16. Gain of SECAM anti-Cloche 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 39 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder mgb702 80 (deg) 60 40 20 0 0 0.4 0.8 1.2 1.6 f (MHz) Fig 17. Phase of SECAM anti-Cloche CVBS output RCV2 input 79 LLC MP input 82 LLC mhb579 (1) HTRIG = 0 (2) PRCV2 = 0 (3) TRCV2 = 1 (4) ORCV2 = 0 Fig 18. Sync and video input timing 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 40 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder CVBS output RCV2 output mhb580 73 LLC (1) RCV2S = 0 (2) PRCV2 = 0 (3) ORCV2 = 1 Fig 19. Sync and video output timing 8. Limiting values Table 79: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). All ground pins connected together and all supply pins connected together. Symbol Parameter VDDD Conditions Min Max Unit digital supply voltage -0.5 +4.6 V VDDA analog supply voltage -0.5 +4.6 V Vo(A) output voltage at analog output -0.5 VDDA + 0.5 V Vi(D) input voltage at digital inputs or I/O pins outputs in 3-state -0.5 +5.5 V Vo(D) output voltage at digital outputs outputs active -0.5 VDDD + 0.5 V VSS voltage difference between VSSAall and VSSDall - 100 mV Tstg storage temperature -65 +150 C Tamb ambient temperature Vesd electrostatic discharge voltage [1] Class 2 according to EIA/JESD22-114-B. [2] Class A according to EIA/JESD22-115-A. 0 70 C human body model [1] - 2000 V machine model [2] - 150 V 9. Thermal characteristics Table 80: Symbol Rth(j-a) [1] Thermal characteristics Parameter Conditions thermal resistance from junction to ambient in free air [1] Typ Unit 53 K/W The overall Rth(j-a) value can vary depending on the board layout. To minimize the effective Rth(j-a) all power and ground pins must be connected to the power and ground layers directly. An ample copper area directly under the SAA7128H; SAA7129H with several through-hole platings, which connect to the ground layer (four-layer board: second layer), can also reduce the effective Rth(j-a). Please do not use any solder-stop varnish under the chip. In addition the usage of soldering glue with a high thermal conductance after curing is recommended. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 41 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 10. Characteristics Table 81: Characteristics VDDD = 3.0 V to 3.6 V; Tamb = 0 C to 70 C; unless otherwise specified. Symbol Parameter Conditions Min Typ Max Unit Supply VDDA analog supply voltage 3.15 3.3 3.45 V VDDD digital supply voltage 3.0 3.3 3.6 V IDDA analog supply current [1] - 130 150 mA digital supply current [1] - 75 100 mA IDDD VDDD = 3.3 V Inputs: LLC1, RCV1, RCV2, MP7 to MP0, RTCI, SA, RESET_N and TTX VIL LOW-level input voltage -0.5 - +0.8 V VIH HIGH-level input voltage 2.0 - VDDD + 0.3 V ILI input leakage current - - 1 A Ci input capacitance clocks - - 10 pF data - - 8 pF I/Os at high-impedance - - 8 pF Outputs: RCV1, RCV2 and TTXRQ VOL LOW-level output voltage IOL = 2 mA - - 0.4 V VOH HIGH-level output voltage IOH = -2 mA 2.4 - - V -0.5 - +0.3VDD(I2C) V I2C-bus: SDA and SCL VIL LOW-level input voltage VIH HIGH-level input voltage 0.7VDD(I2C) - VDD(I2C) + 0.3 V Ii input current Vi = LOW or HIGH -10 - +10 A VOL LOW-level output voltage (pin SDA) IOL = 3 mA - - 0.4 V Io output current during acknowledge 3 - - mA 34 - 41 ns Clock timing: LLC1 and XCLK [2] TLLC1 cycle time duty factor tHIGH/TLLC1 LLC1 input 40 - 60 % duty factor tHIGH/TXCLK XCLK output 50 % (typical) 40 - 60 % tr tf rise time [2] - - 5 ns fall time [2] - - 6 ns Input timing: RCV1, RCV2, MP7 to MP0, RTCI, SA and TTX tSU;DAT input data set-up time 6 - - ns tHD;DAT input data hold time 3 - - ns - - 30 MHz -50 x 10-6 - +50 x 10-6 0 - 70 Crystal oscillator fn nominal frequency (usually 27 MHz) f/fn permissible deviation of nominal frequency 3rd harmonic [3] Crystal specification Tamb ambient temperature 9397 750 14325 Product data sheet C (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 42 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder Table 81: Characteristics...continued VDDD = 3.0 V to 3.6 V; Tamb = 0 C to 70 C; unless otherwise specified. Symbol Parameter CL Conditions Min Typ Max Unit load capacitance 8 - - pF RS series resistance - - 80 Cmot motional capacitance (typical) 1.5 - 20 % - 1.5 + 20 % fF Cpar parallel capacitance (typical) 3.5 - 20 % - 3.5 + 20 % pF Data and reference signal output timing CL output load capacitance 7.5 - 40 pF th output hold time 4 - - ns td output delay time - - 18 ns Outputs: C, VBS, CVBS and RGB Vo(p-p) output signal voltage (peak-to-peak value) [4] 1.25 1.35 1.50 V V inequality of output signal voltages [5] - - 2 % Rint internal serial resistance 1 - 3 RL output load resistance 75 - 300 B output signal bandwidth of DACs -3 dB 10 - - MHz LElf(i) low frequency integral linearity error of DACs - - 3 LSB LElf(d) low frequency differential linearity error of DACs - - 1 LSB td(pipe)(MP) total pipeline delay from MP port 27 MHz - - 82 LLC [1] At maximum supply voltage with highly active input signals. [2] The data is for both input and output direction. [3] If an internal oscillator is used, crystal deviation of nominal frequency is directly proportional to the deviation of subcarrier frequency and line/field frequency. [4] For full digital range, without load, VDDA = 3.3 V. The typical minimum output voltage (digital zero at DAC) is 0.2 V. [5] Referring to peak-to-peak analog voltages resulting from identical peak-to-peak digital codes. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 43 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder TLLC1 t HIGH 2.6 V 1.5 V 0.6 V LLC1 tf t SU; DAT t HD; DAT MPpos MP input data t SU; DAT not valid tr t HD; DAT 2.0 V not valid MPneg MPpos 0.8 V td th 2.4 V valid output data not valid valid 0.6 V mhb581 Fig 20. Clock data timing LLC CB(0) MP(n) Y(0) CR(0) Y(1) CB(2) RCV2 mgb699 The data demultiplexing phase is coupled to the internal horizontal phase. The phase of the RCV2 signal is programmed to 262 for 50 Hz and to 234 for 60 Hz in this example in output mode (RCV2S). Fig 21. Functional timing 10.1 Explanation of RTCI data bits Refer to Figure 22: * The HPLL increment is not evaluated by the SAA7128H; SAA7129H. * The SAA7128H; SAA7129H generates the subcarrier frequency from the FSCPLL increment if enabled (see last bullet). * The PAL bit indicates the line with inverted (R - Y) component of color difference signal. * If the reset bit is enabled (RTCE = 1; DECPH = 1; PHRES = 00), the phase of the subcarrier is reset in each line whenever the reset bit of RTCI input is set to logic 1. * If the FISE bit is enabled (RTCE = 1; DECFIS = 1), the SAA7128H; SAA7129H takes this bit instead of the FISE bit in subaddress 61h. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 44 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder * If the odd/even bit is enabled (RTCE = 1; DECOE = 1), the SAA7128H; SAA7129H ignores its internally generated odd/even flag and takes the odd/even bit from RTCI input. * If the color detection bit is enabled (RTCE = 1; DECCOL = 1) and no color was detected (color detection bit = 0), the subcarrier frequency is generated by the SAA7128H; SAA7129H. In the other case (color detection bit = 1) the subcarrier frequency is evaluated out of FSCPLL increment. If the color detection bit is disabled (RTCE = 1; DECCOL = 0), the subcarrier frequency is evaluated out of FSCPLL increment, independent of the color detection bit of RTCI input. HIGH-to-LOW transition count start LOW HPLL increment (1) 128 RTCI 13 time slot: 0 1 3 bits reserved 4 bits reserved (2) FSCPLL increment (1) 0 22 14 (3) (5) (4) 0 19 not used in SAA7128H/29H (1) 64 valid sample invalid sample 67 69 68 72 74 8/LLC 001aac192 (6) (1) SAA7113 and SAA7118 support RTC level 3.1. (2) Sequence bit: PAL: 0 = (R-Y) line normal, 1 = (R-Y) line inverted; NTSC: 0 = no change. (3) FISE bit: 0 = 50 Hz, 1 = 60 Hz. (4) Odd/even bit: odd_even from external. (5) Color detection: 0 = no color detected, 1 = color detected. (6) Reserved bits: 229 with 50 Hz systems, 226 with 60 Hz systems. Fig 22. RTCI timing 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 45 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 10.2 Teletext timing Time tFD is the time needed to interpolate input data TTX and insert it into the CVBS and VBS output signal, such that it appears at tTTX = 9.78 s (PAL) or tTTX = 10.5 s (NTSC) after the leading edge of the horizontal synchronization pulse. Time tPD is the pipeline delay time introduced by the source that is gated by TTXRQ in order to deliver TTX data. This delay is programmable by register TTXHD. For every active HIGH state at output pin TTXRQ, a new teletext bit must be provided by the source (new protocol) or a window of TTXRQ going HIGH is provided and the number of teletext bits, depending on the chosen teletext standard, is requested at input pin TTX (old protocol). Since the beginning of the pulses representing the TTXRQ signal and the delay between the rising edge of TTXRQ and valid teletext input data are fully programmable (TTXHS and TTXHD), the TTX data is always inserted at the correct position after the leading edge of outgoing horizontal synchronization pulse. Time ti(TTXW) is the internally used insertion window for TTX data; it has a constant length that allows insertion of 360 teletext bits at a text data rate of 6.9375 Mbit/s (PAL), 296 teletext bits at a text data rate of 5.7272 Mbit/s (WST) or 288 teletext bits at a text data rate of 5.7272 Mbit/s (NABTS). The insertion window is not opened if the control bit TTXEN is logic 0. Using appropriate programming, all suitable lines of the odd field (TTXOVS and TTXOVE) plus all suitable lines of the even field (TTXEVS and TTXEVE) can be used for teletext insertion. CVBS/Y t TTX text bit #: t i(TTXW) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 TTX t PD t FD TTXRQ (new) TTXRQ (old) mhb504 Fig 23. Teletext timing 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 46 of 55 xxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x xxxxxxxxxxxxxx xxxxxxxxxx xxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxx xxxxxxxxxxxxxx xxxxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxx xxxxx x x 10 pF 10 pF use one capacitor for each VDDD 27.0 MHz 1 nF X1 3rd harmonic 35 0.1 F DGND AGND 0.1 F use one capacitor for each VDDA AGND XTALO VDDD1 to VDDD3 VDDA4 VDDA1 to VDDA3 34 6, 17, 39 36 25, 28, 31 2 (1) 30 CVBS DAC1 4.7 75 2 (1) 27 VBS DAC2 10 AGND 75 digital inputs and outputs 10 AGND 75 SAA7128H SAA7129H 2 (1) 23 RED DAC4 23 2 (1) 26 GREEN 23 23 AGND 75 5, 18, 38 22, 32, 33 VSSD1 to VSSD3 VSSA1 to VSSA3 DGND (1) Typical value. (2) For 100100 color bar. Fig 24. Application circuit AGND UG (2) 0.70 V (p-p) UB (2) 0.70 V (p-p) AGND mhb583 Digital video encoder 47 of 55 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. 2 (1) 29 BLUE UR (2) 0.70 V (p-p) AGND 75 DAC6 UC (2) 0.89 V (p-p) AGND 75 DAC5 UVBS (2) 1.00 V (p-p) SAA7128H; SAA7129H Rev. 03 -- 9 December 2004 2 (1) 24 C DAC3 UCVBS (2) 1.23 V (p-p) Philips Semiconductors 10 H XTALI +3.3 V analog 0.1 F 11. Application information 9397 750 14325 Product data sheet +3.3 V digital DGND SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 11.1 Analog output voltages The analog output voltages are dependent on the open-loop voltage of the operational amplifiers for full-scale conversion (typical value 1.35 V), the internal series resistor (typical value 2 ), the external series resistor and the external load impedance. The digital output signals in front of the DACs under nominal conditions occupy different conversion ranges, as indicated in Table 82 for a 100100 color bar signal. Values for the external series resistors result in a 75 load. Table 82: Digital output signals conversion range Ordering information Conversion range (peak-to-peak) CVBS sync-tip to peak-carrier Y (VBS) sync-tip to white (digits) (digits) RGB (Y) black to white at GDY = GDC = -6 (digits) 1016 712 881 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 48 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 12. Package outline QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 10 x 10 x 1.75 mm SOT307-2 c y X A 33 23 34 22 ZE e E HE A A2 wM (A 3) A1 bp Lp pin 1 index L 12 44 1 detail X 11 wM bp e ZD v M A D B HD v M B 0 2.5 5 mm scale DIMENSIONS (mm are the original dimensions) UNIT A max. A1 A2 A3 bp c D (1) E (1) e HD HE L Lp v w y mm 2.1 0.25 0.05 1.85 1.65 0.25 0.4 0.2 0.25 0.14 10.1 9.9 10.1 9.9 0.8 12.9 12.3 12.9 12.3 1.3 0.95 0.55 0.15 0.15 0.1 Z D (1) Z E (1) 1.2 0.8 1.2 0.8 o 10 o 0 Note 1. Plastic or metal protrusions of 0.25 mm maximum per side are not included. OUTLINE VERSION REFERENCES IEC JEDEC JEITA EUROPEAN PROJECTION ISSUE DATE 97-08-01 03-02-25 SOT307-2 Fig 25. Package outline SOT307-2 (QFP44) 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 49 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 13. Soldering 13.1 Introduction to soldering surface mount packages This text gives a very brief insight to a complex technology. A more in-depth account of soldering ICs can be found in our Data Handbook IC26; Integrated Circuit Packages (document order number 9398 652 90011). There is no soldering method that is ideal for all surface mount IC packages. Wave soldering can still be used for certain surface mount ICs, but it is not suitable for fine pitch SMDs. In these situations reflow soldering is recommended. 13.2 Reflow soldering Reflow soldering requires solder paste (a suspension of fine solder particles, flux and binding agent) to be applied to the printed-circuit board by screen printing, stencilling or pressure-syringe dispensing before package placement. Driven by legislation and environmental forces the worldwide use of lead-free solder pastes is increasing. Several methods exist for reflowing; for example, convection or convection/infrared heating in a conveyor type oven. Throughput times (preheating, soldering and cooling) vary between 100 seconds and 200 seconds depending on heating method. Typical reflow peak temperatures range from 215 C to 270 C depending on solder paste material. The top-surface temperature of the packages should preferably be kept: * below 225 C (SnPb process) or below 245 C (Pb-free process) - for all BGA, HTSSON..T and SSOP..T packages - for packages with a thickness 2.5 mm - for packages with a thickness < 2.5 mm and a volume 350 mm3 so called thick/large packages. * below 240 C (SnPb process) or below 260 C (Pb-free process) for packages with a thickness < 2.5 mm and a volume < 350 mm3 so called small/thin packages. Moisture sensitivity precautions, as indicated on packing, must be respected at all times. 13.3 Wave soldering Conventional single wave soldering is not recommended for surface mount devices (SMDs) or printed-circuit boards with a high component density, as solder bridging and non-wetting can present major problems. To overcome these problems the double-wave soldering method was specifically developed. If wave soldering is used the following conditions must be observed for optimal results: * Use a double-wave soldering method comprising a turbulent wave with high upward pressure followed by a smooth laminar wave. * For packages with leads on two sides and a pitch (e): - larger than or equal to 1.27 mm, the footprint longitudinal axis is preferred to be parallel to the transport direction of the printed-circuit board; 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 50 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder - smaller than 1.27 mm, the footprint longitudinal axis must be parallel to the transport direction of the printed-circuit board. The footprint must incorporate solder thieves at the downstream end. * For packages with leads on four sides, the footprint must be placed at a 45 angle to the transport direction of the printed-circuit board. The footprint must incorporate solder thieves downstream and at the side corners. During placement and before soldering, the package must be fixed with a droplet of adhesive. The adhesive can be applied by screen printing, pin transfer or syringe dispensing. The package can be soldered after the adhesive is cured. Typical dwell time of the leads in the wave ranges from 3 seconds to 4 seconds at 250 C or 265 C, depending on solder material applied, SnPb or Pb-free respectively. A mildly-activated flux will eliminate the need for removal of corrosive residues in most applications. 13.4 Manual soldering Fix the component by first soldering two diagonally-opposite end leads. Use a low voltage (24 V or less) soldering iron applied to the flat part of the lead. Contact time must be limited to 10 seconds at up to 300 C. When using a dedicated tool, all other leads can be soldered in one operation within 2 seconds to 5 seconds between 270 C and 320 C. 13.5 Package related soldering information Table 83: Suitability of surface mount IC packages for wave and reflow soldering methods Package [1] Soldering method Wave Reflow [2] BGA, HTSSON..T [3], LBGA, LFBGA, SQFP, SSOP..T [3], TFBGA, VFBGA, XSON not suitable suitable DHVQFN, HBCC, HBGA, HLQFP, HSO, HSOP, HSQFP, HSSON, HTQFP, HTSSOP, HVQFN, HVSON, SMS not suitable [4] suitable PLCC [5], SO, SOJ suitable suitable not recommended [5] [6] suitable SSOP, TSSOP, VSO, VSSOP not recommended [7] suitable CWQCCN..L [8], PMFP [9], WQCCN..L [8] not suitable LQFP, QFP, TQFP [1] For more detailed information on the BGA packages refer to the (LF)BGA Application Note (AN01026); order a copy from your Philips Semiconductors sales office. [2] All surface mount (SMD) packages are moisture sensitive. Depending upon the moisture content, the maximum temperature (with respect to time) and body size of the package, there is a risk that internal or external package cracks may occur due to vaporization of the moisture in them (the so called popcorn effect). For details, refer to the Drypack information in the Data Handbook IC26; Integrated Circuit Packages; Section: Packing Methods. [3] These transparent plastic packages are extremely sensitive to reflow soldering conditions and must on no account be processed through more than one soldering cycle or subjected to infrared reflow soldering with peak temperature exceeding 217 C 10 C measured in the atmosphere of the reflow oven. The package body peak temperature must be kept as low as possible. 9397 750 14325 Product data sheet not suitable (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 51 of 55 Philips Semiconductors SAA7128H; SAA7129H Digital video encoder [4] These packages are not suitable for wave soldering. On versions with the heatsink on the bottom side, the solder cannot penetrate between the printed-circuit board and the heatsink. On versions with the heatsink on the top side, the solder might be deposited on the heatsink surface. [5] If wave soldering is considered, then the package must be placed at a 45 angle to the solder wave direction. The package footprint must incorporate solder thieves downstream and at the side corners. [6] Wave soldering is suitable for LQFP, QFP and TQFP packages with a pitch (e) larger than 0.8 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.65 mm. [7] Wave soldering is suitable for SSOP, TSSOP, VSO and VSSOP packages with a pitch (e) equal to or larger than 0.65 mm; it is definitely not suitable for packages with a pitch (e) equal to or smaller than 0.5 mm. [8] Image sensor packages in principle should not be soldered. They are mounted in sockets or delivered pre-mounted on flex foil. However, the image sensor package can be mounted by the client on a flex foil by using a hot bar soldering process. The appropriate soldering profile can be provided on request. [9] Hot bar soldering or manual soldering is suitable for PMFP packages. 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 52 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 14. Revision history Table 84: Revision history Document ID Release date Data sheet status Change notice Doc. number Supersedes SAA7128H_SAA7129H_3 20041209 Product data sheet - 9397 750 14325 SAA7128H_7129H_2 Modifications: * * * Added Table 79 "Limiting values" Updated Table 80 "Thermal characteristics" Changed the type number of some referenced ICs. SAA7128H_7129H_2 20021015 Product specification - 9397 750 09727 SAA7128H_7129H_1 000308 Product specification - 9397 750 06127 9397 750 14325 Product data sheet SAA7128H_7129H_1 (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 53 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 15. Data sheet status Level Data sheet status [1] Product status [2] [3] Definition I Objective data Development This data sheet contains data from the objective specification for product development. Philips Semiconductors reserves the right to change the specification in any manner without notice. II Preliminary data Qualification This data sheet contains data from the preliminary specification. Supplementary data will be published at a later date. Philips Semiconductors reserves the right to change the specification without notice, in order to improve the design and supply the best possible product. III Product data Production This data sheet contains data from the product specification. Philips Semiconductors reserves the right to make changes at any time in order to improve the design, manufacturing and supply. Relevant changes will be communicated via a Customer Product/Process Change Notification (CPCN). [1] Please consult the most recently issued data sheet before initiating or completing a design. [2] The product status of the device(s) described in this data sheet may have changed since this data sheet was published. The latest information is available on the Internet at URL http://www.semiconductors.philips.com. [3] For data sheets describing multiple type numbers, the highest-level product status determines the data sheet status. 16. Definitions Short-form specification -- The data in a short-form specification is extracted from a full data sheet with the same type number and title. For detailed information see the relevant data sheet or data handbook. Limiting values definition -- Limiting values given are in accordance with the Absolute Maximum Rating System (IEC 60134). Stress above one or more of the limiting values may cause permanent damage to the device. These are stress ratings only and operation of the device at these or at any other conditions above those given in the Characteristics sections of the specification is not implied. Exposure to limiting values for extended periods may affect device reliability. responsibility or liability for the use of any of these products, conveys no license or title under any patent, copyright, or mask work right to these products, and makes no representations or warranties that these products are free from patent, copyright, or mask work right infringement, unless otherwise specified. 18. Licenses Purchase of Philips I2C-bus components Purchase of Philips I2C-bus components conveys a license under the Philips' I2C-bus patent to use the components in the I2C-bus system provided the system conforms to the I2C-bus specification defined by Koninklijke Philips Electronics N.V. This specification can be ordered using the code 9398 393 40011. Application information -- Applications that are described herein for any of these products are for illustrative purposes only. Philips Semiconductors make no representation or warranty that such applications will be suitable for the specified use without further testing or modification. 17. Disclaimers 19. Patents Life support -- These products are not designed for use in life support appliances, devices, or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips Semiconductors customers using or selling these products for use in such applications do so at their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application. Notice is herewith given that the subject device uses one or more of the following patents and that each of these patents may have corresponding patents in other jurisdictions. Right to make changes -- Philips Semiconductors reserves the right to make changes in the products - including circuits, standard cells, and/or software - described or contained herein in order to improve design and/or performance. When the product is in full production (status `Production'), relevant changes will be communicated via a Customer Product/Process Change Notification (CPCN). Philips Semiconductors assumes no US 4631603 -- owned by Macrovision Corporation US 4577216 -- owned by Macrovision Corporation US 4819098 -- owned by Macrovision Corporation 20. Trademarks Macrovision -- is a registered trademark of Macrovision Corporation 21. Contact information For additional information, please visit: http://www.semiconductors.philips.com For sales office addresses, send an email to: sales.addresses@www.semiconductors.philips.com 9397 750 14325 Product data sheet (c) Koninklijke Philips Electronics N.V. 2004. All rights reserved. Rev. 03 -- 9 December 2004 54 of 55 SAA7128H; SAA7129H Philips Semiconductors Digital video encoder 22. Contents 1 2 3 4 5 6 6.1 6.2 7 7.1 7.1.1 7.1.1.1 7.1.1.2 7.1.1.3 7.1.1.4 7.1.2 7.2 7.3 7.3.1 7.3.2 7.3.3 7.3.4 7.3.5 7.4 7.5 7.6 7.7 7.8 7.9 7.10 7.11 7.12 7.13 7.14 8 9 10 10.1 10.2 11 11.1 12 13 13.1 General description . . . . . . . . . . . . . . . . . . . . . . 1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Quick reference data . . . . . . . . . . . . . . . . . . . . . 2 Ordering information . . . . . . . . . . . . . . . . . . . . . 2 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Pinning information . . . . . . . . . . . . . . . . . . . . . . 4 Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 4 Functional description . . . . . . . . . . . . . . . . . . . 6 Versatile fader . . . . . . . . . . . . . . . . . . . . . . . . . . 7 Configuration examples . . . . . . . . . . . . . . . . . . 7 Configuration 1 . . . . . . . . . . . . . . . . . . . . . . . . . 7 Configuration 2 . . . . . . . . . . . . . . . . . . . . . . . . . 8 Configuration 3 . . . . . . . . . . . . . . . . . . . . . . . . . 8 Configuration 4 . . . . . . . . . . . . . . . . . . . . . . . . . 9 Parameters of the fader . . . . . . . . . . . . . . . . . . 9 Data manager . . . . . . . . . . . . . . . . . . . . . . . . . 10 Encoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Video path. . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Teletext insertion and encoding . . . . . . . . . . . 10 Video Programming System (VPS) encoding. 11 Closed caption encoder . . . . . . . . . . . . . . . . . 11 Anti-taping (SAA7128H only) . . . . . . . . . . . . . 11 RGB processor . . . . . . . . . . . . . . . . . . . . . . . . 11 SECAM processor . . . . . . . . . . . . . . . . . . . . . 11 Output interface/DACs . . . . . . . . . . . . . . . . . . 12 Synchronization . . . . . . . . . . . . . . . . . . . . . . . 12 Clock. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 I2C-bus interface . . . . . . . . . . . . . . . . . . . . . . . 13 Input levels and formats . . . . . . . . . . . . . . . . . 14 Bit allocation map . . . . . . . . . . . . . . . . . . . . . . 15 I2C-bus format. . . . . . . . . . . . . . . . . . . . . . . . . 18 Slave receiver . . . . . . . . . . . . . . . . . . . . . . . . . 18 Slave transmitter . . . . . . . . . . . . . . . . . . . . . . . 35 Limiting values. . . . . . . . . . . . . . . . . . . . . . . . . 41 Thermal characteristics. . . . . . . . . . . . . . . . . . 41 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 42 Explanation of RTCI data bits . . . . . . . . . . . . . 44 Teletext timing . . . . . . . . . . . . . . . . . . . . . . . . . 46 Application information. . . . . . . . . . . . . . . . . . 47 Analog output voltages . . . . . . . . . . . . . . . . . . 48 Package outline . . . . . . . . . . . . . . . . . . . . . . . . 49 Soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Introduction to soldering surface mount packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 13.2 13.3 13.4 13.5 14 15 16 17 18 19 20 21 Reflow soldering. . . . . . . . . . . . . . . . . . . . . . . Wave soldering. . . . . . . . . . . . . . . . . . . . . . . . Manual soldering . . . . . . . . . . . . . . . . . . . . . . Package related soldering information . . . . . . Revision history . . . . . . . . . . . . . . . . . . . . . . . Data sheet status. . . . . . . . . . . . . . . . . . . . . . . Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Patents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . Contact information . . . . . . . . . . . . . . . . . . . . 50 50 51 51 53 54 54 54 54 54 54 54 (c) Koninklijke Philips Electronics N.V. 2004 All rights are reserved. Reproduction in whole or in part is prohibited without the prior written consent of the copyright owner. The information presented in this document does not form part of any quotation or contract, is believed to be accurate and reliable and may be changed without notice. No liability will be accepted by the publisher for any consequence of its use. Publication thereof does not convey nor imply any license under patent- or other industrial or intellectual property rights. Date of release: 9 December 2004 Document number: 9397 750 14325 Published in The Netherlands