ZiLOG Totally Logical PRELIMINARY PRODUCT SPECIFICATION Z86129/130/131 NTSC LINE 21 DECODER FEATURES Speed Pin Count/ Standard On-Screen Display Automatic Data Extraction Devices (MHz) Package Types Temp. Range & Closed Captioning V-Chip Time of Day 286129 12 18-Pin DIP, SOIC 0 to +70C Yes Yes Yes 286130 12 18-Pin DIP, SOIC 0 to +70C No Yes" Yes 286131 12 18-Pin DIP, SOIC 0 to +70C No No Yes Note: *The 286130 recovers the line 21 data in both of field1 and field2. It also has V-Chip-specific registers and the output (pin-13) to control program blocking with minimal communications between the Z86130 and the host processor. * Complete Stand-Alone Line 21 Decoder for Closed- Captions and Extended Data Services (XDS). Preprogrammed to Provide Full Compliance with EIA-608 Specifications for Extended Data Services. * Automatic Extraction and Serial Output of Special XDS Packets such as Time of Day, Local Time Zone, and Pro- gram Blocking (V-Chip). * Cost-Effective Solution for NTSC Violence Blocking inside Picture-in-Picture (PiP) Windows. * Minimal Communications and Control Overhead Pro- vides Simple Implementation of Violence Blocking, Closed Captioning, and Auto Clock Set Features. * Programmable, Full Screen On-Screen Display (OSD) for Creating OSD or Captions inside a Picture-in-Picture (PiP) Window (286129 only). * [C Serial Data and Control Communication User-Programmable Horizontal Display Position for easy OSD Centering and Adjustment (Z86129 only). GENERAL DESCRIPTION The Z86129/130/131 is a stand-alone integrated circuit, ca- pable of processing Vertical Blanking Interval (VBI) data from both fields of the video frame in data conforming to the transmission format defined in the Television Decoder Circuits Act of 1990 and in accordance with the Electronics Industry Association specification 608 (E[A608). The Line 21 data stream can consist of data from several data chan- nels multiplexed together. Field 1 has four data channels: two Cap- tions and two Text. Field 2 has five additional data channels: two Captions, two Text and Extended Data Services (XDS). XDS data structure is defined in EIA608. The Z86129 can recover and display data transmitted on any of these nine data chan- nels. The 2786130 and Z86131 are derivatives of the 286129. The Z86130 and Z86131 do not have OSD capability, but are ideally suited for Line 21 data slicer applications. The Z86129/130/131 can recover and output to a host pro- cessor via the IC serial bus the recovered XDS data packet defined in EIA608 as it is defined in the table above (Z86130 provides the raw Line 21 data, which must be de- coded properly for the applications). On-chip XDS filters in Z86129 is fully programmable, enabling recovery of only those XDS data packets selected by the user. The Z86131 is designed especially for extracting XDS time information with proper XDS filter setup for Automatic Clock-Set fea- tures in TVs, VCRs, and Set-Top boxes. And the 286130 is designed especially for V-Chip and Line 21 datarecovery. In addition, the Z86129/130 is ideally suited to monitor Line 21 of video displayed in a PiP window for violence blocking purposes. A block diagram of the Z86129/130/131 is illus- trated in Figures | and 2. DS007200-TVX0199ZiLOG DS007200-TVX0199 sng sppy GENERAL DESCRIPTION (Continued) 286129/130/131 NTSC Line 21 Decoder PRELIMINARY Figure 1. Z86129 Block Diagram Ajuo 6ZL98Z eL ee dt dau (W)SSA SSA ddl OL bL bo AiG |B) q a Eb Q sapooeq YOd VA LELLLI joyuog | SIS b pia [ass spy. 9 0urT 31 xnw? {S indng Oo z Gis SAN | b fe YLOSS | t JoyeJauasy yYoOsW Japereuy ft aia wo. SiO ZL) .4oe7 = 79| Aeidsig 7 Mo , | pl 2 19 wv! O BVH I 907 A 5. WY Ald d Aeidsiq 19 10d 5 seul] 9 no < 45 4 2 XNW ) 19 Lod o SSolppYy /OL 7) ypyey ip] Moxy JB9IIS JOSSA00Jq |. ONAS fe puewwoy |* y A x07) II Od Bay 1s81 rey6ig > $ Is - Moy Bay snjeis ABS MV 4007] aa sng eyeq = f UO [ouju0D @A0D8Y B saying leas a __| W719 218d a ~ aur] eyeq < q SL vl SlLp 9g286129/130/131 NTSC Line 21 Decoder ZiLOG JOSS9901q puewwos LYO $9Y yOd WA Bay ise, Bey snjeys HOd [0U0D [e1aS Pls g eur] 19 Loa 3 saposeq STs joujuoD plals 9 our] YoOSW yID YVHO W119 YVHD OTA Ald 19 LOG M34 MV sng ejeq Asaaooey W19 Bed dur] eyeq joyuoy 21607 99 ONASIN saul] 99 ONAS dWOD 1909] BdI1S ONASOD O@plA Figure 2. Z86130/131 Block Diagram PRELIMINARY DS007200-TVX0199Z86129/130/131 NTSC Line 21 Decoder ZiLOG PIN DESCRIPTION Vss [j 1* 18 |] RED* 2c SEL [| 1 18{] NC GREEN* [| 2 17 {] BOX* HSEL [2 17{] NC BLUE* [] 3 16[] SDO xouT [] 3 16|] SDO SEN [] 4 15{] SCK SEN [| 4 151] SCK HIN [] 5 14[] SDA HIN/XIN [5 14[] SDA sms [| 6 13] Vin/INTRO sms [| 6 131] Vin/INTRO(PB) VIDEO [] 7 12{] Yoo VIDEO [| 7 12] Vop CsYnc [| 8 11[] Vss(A) csync [| 8 11{] Vgs(A) LPF [| 9 10/1] RREF LPF [9 10{] RREF Figure 3. 286129, 18-Pin DIP/SOIC Figure 4. Z86130/131, 18-Pin DIP/SOIC Pin Configuration Pin Configuration Table 1. 286129 Pin Identification Table 2. Z86130/131 Pin Identification No Symbol Function Direction No Symbol Function Direction 1 Vgg Power Supply GND 1" PCSEL 1?C Slave Address Select !nput 2* GREEN Video Output Output 2 HSEL HIN/XTAL Select Input 3* BLUE Video Output Output 3 XOUT XTAL Output Output 4 SEN Serial Enable Input 4 SEN Serial Enable Input 5 HIN Horizontal In Input 5 HIN/XIN Horizontal In/XTAL Input = Input 6 SMS Serial Mode Select Input 6 SMS Serial Mode Select input 7 VIDEO Composite Video Input 7 VIDEO Composite Video Input 8 CSYNC Composite Sync Output 8 CSYNC Composite Sync Output 9 LPF Loop Filter Output 9 LPF Loop Filter Output 10 RREF Resistor Reference input 10 RREF Resistor Reference Input 11. Vgs(A) Pwr. Supply (Analog) GND 11 Vgg (a) Pwr. Supply (Analog) GND 12 Vpp Power Supply 12. Vpp Power Supply 13 Viy/INTRO. Vertical In/Interrupt Out In/Output 43 Vin/INTRO Vertical In/Interrupt Out In/Output 14 SDA Serial Data In/Output (PB) (Program Blocking) (Output) 15 SCK Serial Clock Input 14 SDA Serial Data In/Output 16 SDO Serial Data Out Output 15 SCK Serial Clock Input 17* BOX OSD Timing Signal Output 16 SDO Serial Data Out Output 18* RED Video Output Output 17 NC No Connect Note: *DIP and SOIC pin configuration are identical. 18 NC No Connect Notes: *DIP and SOIC pin configuration are identical; must be tied to Vss for current revision. A secondary IC address will be available in the future. This pin is used as PB (Program Blocking) output in 286130 to indicate whether the incoming video program is in the blocking set-up programmed. PRELIMINARY DS007200-TVX0199ZiLOG 286129/130/131 NTSC Line 21 Decoder ABSOLUTE MAXIMUM RATINGS* Symbol Parameter Value Unit Vpp DC Supply Voltage** -0.5 to 6.0 Vv VIN DC Input Voltage** 0.5 to Vpp +0.5 Vv Vout DC Output Voltage** 0.5 to Vpp +0.5 V lin DC Input Current per Pin +10 mA lout DC Output Current per Pin +20 mA lpp DC Supply Current +30 mA Pp Power Dissipation per Device 300 mw Tstg Storage Temperature 65 to +150 C TL Lead Temperature, 1 mm from Case for 10 seconds 260 C Notes: *Maximum ratings are those values beyond which damage to the device may occur. Functional operation should be restricted to the limits specified in the DC and AC Characteristics tables, pages 5 and 6, or the Pin Description section, page 9. **Voltages referenced to Vgs(A) and Vgs. STANDARD TEST CONDITIONS The characteristics listed in the following section apply for standard test conditions as noted. All voltages are refer- enced to Ground. Positive current flows into the referenced pin (5). +5V 2.1 kQ From Output Under Test 150 pF | 250 pA Figure 5. Standard Test Load DC ELECTRICAL CHARACTERISTICS Table 3. DC Electrical Characteristics (Ta = 0C to +70C; Vpp = +4.75V to +5.25V) Symbol Parameter Conditions Min Max Unit ViL Input Voltage Low 0 0.2 Vpop Vv Vin Input Voltage High 0.7 Vop Vop V VoL Output Voitage Low lo, = 1.00 mA ~ 0.4 Vv Vou Output Voltage High lon = 0.75 mA Vpp 0.4V - Vv lit Input Leakage OV, Vop -3.0 3.0 HA lop Supply Current Estimated* 30 mA Kf VCO Gain - TBD MHz/V ILp Loop Filter Current - TBD mA Note: Not guaranteed. DS007200-TVX0199 PRELIMINARYZ86129/130/131 NTSC Line 21 Decoder ZiLOG AC AND TIMING CHARACTERISTICS Table 4. Composite Video Input Parameter Conditions Amplitude 1.0V p-p +3 dB Polarity Sync tips negative Bandwidth 600 kHz Signal Type Interlaced Max Input R 470 ohms DC Offset Signal to be AC coupled with a minimum series capacitance of 0.1 UF ELECTRICAL CHARACTERISTICS Nonstandard Video Signals must exhibit the characteristics indicated in Table 5. Table 5. Characteristics Parameter Conditions Sync Amplitude 200 mV minimum Vertical Pulse Width 3H +0.5H Vertical Pulse Tilt 20 mV maximum H Timing Phase Step (Head Switch) +10 us maximum Fh Deviation (long term) +0.5% maximum Fh p-p Deviation (short term) 0.3% maximum Vertical Sync Signal The internal sync circuits lock to all 525 or 625 line signals having a vertical sync pulse that meets the following conditions: * Itis atleast 2H wide Itstarts at the proper 2H boundary for its field * If equalizing pulse serrations are present, they must be less than 0.125H in width. Minimum Signal-to-Noise The Z86129/130/131 functions down to a 25 dB signal-to-noise ratio (CCIR-weighted) with one error per row or better at that level. Ratio to Composite Video Input Horizontal Signal Input (preferably H Flyback and refer to 1 and 2 to use external XTAL or clock input for Z86130/131 only) Table 6. Horizontal Signal Input Parameter Conditions Amplitude CMOS level signal where Low <= 0.2 Vcc Video Lock Mode Polarity Any Frequency 15,734.263 Hz +3% HIN Lock Mode Polarity Any Frequency Same as Display Horizontal Flyback Pulse (HFB) pulse 6 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder Table 7. XTAL Input on HIN/XIN Table 8. Clock Input on HIN/XINZ86130/131 Only and XOUTZ86130/131 Only Parameter Conditions Parameter Conditions Frequency 32.768 KHz +/ 2% Frequency 32.768 KHz Frequency +/20ppm @ Ta=25C, CL=12.5pF tolerance Equivalent Epson C-001R 32.768K-A or Fox NC26, XTALS NC28 Line 21 Input Parameters (at 1.0V p-p) Note: Line 21 must be in its proper position to the leading edge of the Vertical Sync signal. Table 9. Line Input Parameters Parameter Conditions Cod Amplitude Code Zero Level 50 IRE 5 IRE, +15 IRE relative to Back Porch Start of Code 10.5 +0.5 ts (measured from the midpoint of the falling edge of the most recent clock run- in cycle to the midpoint of the rising edge of the start bit). Start of Data Timing Signals 3.972 ys, 0.00 usec, +0.30 us (measured from the midpoint of the falling edge of the most recent clock run-in cycle to the midpoint of the rising edge of the start bit). Table 10. Timing Signals Parameter Conditions Dot 768 x FH = 12.0839 MHz Dot Period 82.75 ns Character Cell Width 1.324 us (tH/48) Width of Row (Box) 45.018 us (34 chars = 17/24 x tH Width of Row (Char) Horizontal Display Timing 42.370 us (32 chars = 2/3 x tH The timing of the output signals Box and RGB have been set to make a centered display. The positioning of these outputs can be adjusted in 330 ns increments by writing a new value to the 286129 H Position Register (Address = 02h). DS007200-TVX0199 PRELIMINARY 7286129/130/131 NTSC Line 21 Decoder ZiLOG PIN DESCRIPTIONS (Z86129 ONLY) Inputs VIDEO (Pin 7). Composite NTSC video input, 1.0V p-p (nom), band limited to 600 kHz. The circuit operates with signal variation between 0.71.4V p-p. The polarity is syne tips negative. This signal pin should be AC coupled through a 0.1 pF capacitor and driven by a source impedance of 470 ohms or less. HIN (Pin 5). Horizontal Sync input signal at CMOS level must be supplied. When the device is used in VIDEO LOCK mode, this signal pulls the on-chip VCO within the proper range. The circuit uses the frequency of this signal which must be within +3% F,, but can be of either polarity. When used in the H LOCK mode, the VCO phase locks to the ris- ing edge of this signal. The HPOL bit of the H Position reg- ister can be set to operate with either polarity of input signal (usually the H Flyback signal). The timing difference be- tween HIN rising edge and the leading edge of composite sync (of VIDEO input) is one of the factors which affects the horizontal position of the display. Any shift resulting from the timing of this signal can be compensated for with the horizontal timing value in H Position Register. HLOCK is intended for use when the part is generating an OSD dis- play when no video signal is present. SMS (Pin 6). Mode select pin for the Serial Control Port. When this input is ata CMOS High state (1) the Serial Con- trol Port operates in the SPI mode. When the input is Low (0), the Serial Control Port operates in the PC slave mode. In SPI mode, the SEN pin must be tied High. (See Reset Operation section, below.) SEN (Pin 4). Enable signal for the SPI mode operation of the Serial Control Port. When this pin is Low (0), the SPI port is disabled and the SDO pin is in the high-impedance state. Transitions on the SCK and SDA pinsare ignored. SPI mode operation is enabled when SMS is High (1). SCK (Pin 15). Input pin for serial clock signal from the master control device. In I?C mode operation the clock rate is expected to be within IC limits. In SPI mode, the max- imum clock frequency is 10 MHz. Reset Operation. When the SMS and SEN pins are both in the Low (0) state, the part is in the Reset state. Therefore, in the C mode the SEN pin can be used as an NReset input. When SPI mode is used, if three wire operation is desired, both SMS and SEN can be tied together and used as the NReset input. In either mode, NReset must be held Low (0) for at least 100 ns. Input/Output Vin/INTRO (Pin 13). In external (EXT) vertical lock mode of operation, the internal vertical sync circuits lock to the Vin input signal applied at this pin. The part locks to the rising or falling edge of the signal in accordance with the setting of the V Polarity command. The default is rising edge. The Vy, pulse must be at least 2 lines wide. In INTRO Mode, when configured for internal vertical syn- chronization, this pin is an output pin providing an interrupt signal to the master control device in accordance with the settings in the Interrupt Mask Register. SDA (Pin 14). When the Serial Control Port has been set to C mode operation, this pin serves as the bidirectional data line for sending and receiving serial data. In SPI mode op- eration it operates as serial data input. SPI mode output data is available on the SDO pin. Outputs SDO (Pin 16). Provides the serial data output when SPI mode communications have been selected. This pin is not used in I7C mode operation. Box (Pin 17). Black box keying output is an active High, CMOS level signal used to key in the black box in the cap- tions/text displays. This output is in the high-impedance state when the background attribute is set to semi-transpar- ent. RED, GREEN, BLUE (Pins 2, 3, 18). Positive acting CMOS levels signals. Color Mode: Red, Green and Blue character video outputs for use in a color receiver. * Mono Mode: All three outputs carry the character lumi- nance information Note: The selection of Color/Mono Mode is user controlled in bit D, of the Configuration Register (Address=00h). (See Internal Registers section, page 33). CSync (Pin 8). Sync slice level. A 0.1-pF capacitor must be tied between this pin and analog ground Vg.(A). This ca- pacitor stores the sync slice level voltage. LPF (Pin 9). Loop Filter. A series RC low-pass filter must be tied between this pin and analog ground Vgo(A). There must also be second capacitor from the pin to Vgs(A). 8 PRELIMINARY DS007200-TVX0199ZiLOG RREF (Pin 10). Reference setting resistor. Resistor must be 10 kOhms, +2%. Power Supply Vpp (Pin 12). The voltage on this pin isnominally 5.0 Volts and may range between 4.75 to 5.25 Volts with respect to the Ves pins. 286129/130/131 NTSC Line 21 Decoder Vss (Pins 1, 11). These pins are the lowest potential power pins for the analog and digital circuits. They are normally tied to system ground. Note: The recommended printed circuit pattern for implement- ing the power connection and critical components is in the Application Information section, page 58. PIN DESCRIPTIONS (Z86130/131 ONLY) Inputs VIDEO (Pin 7). Composite NTSC video input, 1.0V p-p (nom), band limited to 600 kHz. The circuit operates with signal variation between 0.71.4V p-p. The polarity is syne tips negative. This signal pin should be AC coupled through a 0.1 pF capacitor and driven by a source impedance of 470 ohms or less. HIN/XIN (Pin 5). This pin can function in two different modes. When XTAL mode has been selected (see HIN de- scription below) the horizontal sync signal is generated on the chip using an external 32.768-kHz crystal circuit, as il- lustrated below. This circuit must be connected between pin 5 and 3. 286130/131 Pin 5 ; (C1. myCI< sr0r) (WRITE=28h) 2c One-Byte Write (Command) SLAVE WRITE strt ADDR oN STOP - (WRITE=28h) Z86129/130/131 NTSC Line 21 Decoder Reading Data Using the IC Bus With the exception of the Serial Status (SS) register, which may be read at any time, each read operation must be set up before the data can be read from the serial output registers of the Z86129/130/131. Data is set up for a read operation either automatically or manually. XDS data reads are set up automatically upon recovery by setting a valid XDS FIL- TER register selection. All other data read operations must be set up manually using the READ SELECT commands RDS1 and RDS2. These commands load the selected data byte or pair of bytes into the serial output register(s), set the SS register RD2 bit according to the number of data bytes requested and set the SS register DAV bit to indicate avail- ability of data. The Z86129/130/131 I?C Bus supports one, two and three byte read sequences. All read sequences output the SS reg- ister as the first output byte. If the serial status DAV bit is set, a two or three byte read sequence can then be initiated, beginning with a new STRT condition. If the DAV bit is not set, the ?C master device should not attempt to read any data bytes or the desired data can be lost from the Z86129/130/131output registers. The number of data bytes available is indicated by the state of the RD2 bit of the serial status. In a typical read operation the status byte is read and the DAV and RD2 bits are ex- amined. If one or two data bytes are available they are read in sequence separated by acknowledges. Note: In all I2C Read operations (one, two, and three byte as defined in Figure 13) the most recent byte read from the Z86129/130/131 should be acknowledged by the master with a NACK (Not ACKnowledge). It is also necessary to read all available data in a read operation to clear the DAV bit and permit subsequent reads. DAV is cleared by the master clocking out the eighth bit of the most recent data-byte read. DAV is never cleared by just reading the SSB (one-byte read) alone. All data is output MSB first. The masters sequence for reading two data bytes (total of three bytes including SSB) from the Z86129/130/131 is as: Start Slave Address Read/Slave ACK SS Byte/Master ACK Note: Status Register RDY bit must be read and checked pri- Byte (siave)/Master ACK or to the STRT condition of either WRITE sequence. See One Byte (slave)/Master NACK Byte Read (Status Only) in Figure 13 for more information on Stop reading the Status Register. Figure 12. }C Bus WRITE (Command) DS007200-TVX0199 PRELIMINARY 25286129/130/131 NTSC Line 21 Decoder ZiLOG SERIAL COMMUNICATIONS INTERFACE (Continued) I7c-One Byte Read (Status Only) SLAVE ADDR (READ=29h) (SSB) x NACK I2C-Two Byte Read (Status & Data) xX SLAVE sna READ sTaT ADDR KX SRS OK ma (READ=29h) (SSB) ack no Byte Read (Status, Data1, & a) Ga) sve SX SERA READY READ ADDR SK SRR READ DATA2 Stop Condition. A Low-to-High transition of SDA with SCK High is a stop condition which terminates all commu- nications. Acknowledge. All address and data words are serially transmitted to and from the Z86129/130/131 in eight-bit words. A ninth-bit time is used for the acknowledge. The device acknowledges by pulling the SDA bus Low during the ninth bit. A Not Acknowledge (NACK) is provided by SDA=High during the ninth clock time. (READ=29h) te thigh Now (SSB) NACK 2 . . SCK CX Note: In all IC Read operations defined herein, the most . recent byte read from the Z86129/130/131 must be ac- tsu.sta knowledged by the master with a NACK (Not ACKnowl- tyD.DAT Kell toy part |_'su.sto edge). tHD.STA Figure 13. I?C Bus READ (Command) SDA (IN) \ / \ t Clock and Data Transitions. The SCK and SDA bus lines t _ tou BUF are normally pulled High with a resistor. Data on the SDA AA z [ bus may only change during SCK Low time periods. Data gpa (OUT) \ Y changes during SCK High periods indicate a start or stop condition as defined in Table 16. Figure 14. C Serial Timing Start Condition. A High-to-Low transition of SDA with SCK High is a start condition which must precede any other command. Table 16. I?C Serial Timing Symbol Parameter Min Max Units fsck Clock Frequency 100 kHz tlow Clock Pulse Width Low 4.7 - us tHigh Clock Pulse Width High 4.0 - us tr SDA and SCL Rise Time - 1.0 us te SDA and SCL Fall Time - 300 ns taa Clock Low to Data Out Valid 0.1 3.5 us tgur Bus Free Time 4.7 - us tub STA Start Hold Time 4.0 ~ LS tsu.STA Start Set-up Time 47 - us tup DAT Data In Hold Time 0 - us tsu.DAT Data In Set-up Time 250 - ns tsu.sto Stop Set-up Time 47 - us too Data Out Hold Time 100 - ns t Input Filter Time Constant 100 ns 26 PRELIMINARY DS007200-TVX0199ZiLOG SPI Bus Operation When the SMS pin is High the 286129/130/131 is in the SPI serial control mode. The clock line should be tied to the SCK pin. The DATA IN signal and DATA OUT signal from the master device should be connected to the SDA and SDO pins respectively. The SEN pin is used to select the Z86129/130/131 when there are multiple peripherals on the bus. As noted above, when both the SMS and SEN pins are Low, the part is in the RESET state. When the SPI bus is used in a dedicated fashion between the master and the Z86129/130/131, both the SEN and SMS pins would be tied High. The RESET function would require that both of these pins be tied to the NRESET signal. To ensure synchroni- zation, the master should send the serial synchronization signal after the reset is released. When the SPI mode is used in a multiple peripheral envi- ronment, the SEN pin is used as the Z86129/130/131 enable signal. SMS could then be used for the NRESET signal as long as reset was only applied while SEN was Low. In this case, there would be no requirement for the master to send a serial synchronization string after reset if there was at least 100 ns between the end of reset and the start of port enable. A command string can be interrupted at any time and the port resynchronized by sending the Serial Sync signal or by the rising edge of SEN. The SPI bus is a three wire bus when used in a dedicated manner between the Z86129/130/131 and the master de- vice. If other peripherals are connected to the bus, then the SEN pin must be used to place this device on the bus at the appropriate time. When SEN is Low, the SDO pin enters tri-state and transitions on the SCK and SDA pins are ig- nored. If data output is not required from the Z86129/130/13 1, then control can be accomplished using only the SCK and SDA pins. Because this type of operation precludes the ability to check the RDY bit, it is very important that commands be spaced by at least two frames (66 msec) to ensure that one command has been executed before initiating another. The bus is controlled by the master device, which generates the serial clock (SCK) and initiates all actions. Clocking data in on SDA simultaneously produces data out on SDO. The master should always check for the appropriate hand- shake signal before executing any command other than NOP. Writing to the part requires that the RDY bit be set while reading from the part requires checking the SS register to see if the DAV bit is set. Both of these bits are contained Z86129/130/131 NTSC Line 21 Decoder in the Serial Status (SS) register. Writing to the Z86129/130/131 concurrently outputs the contents of the SS register, MSB first, unless other data is being output as a result of one of the READ commands. If it is desired to read the SS without executing a command, the NOP com- mand can be written at any time, even if the serial status RDY bit is not set. The RDY status bit is driven onto the SDO pin between command transmissions. The controlling MCU can test the state of this pin without clocking in order to determine if subsequent serial transfers are possible. The DAV bit can only be checked by outputting the contents of the SS reg- ister. Writing to the SPI Bus All write commands are either one or two byte commands. The number of data bytes to be received by the Z86129/130/131 is inherent in the command. If the master writes more bytes than expected, the command may be over- written or corrupted by the extraneous bytes. A write to the Z86129/130/131 should always be preceded by executing a Status read to verify that the device is ready. The serial status is output by the device concurrent with the input of any command byte. If the RDY bit of the serial sta- tus register is set, the master device can write a new com- mand. The command and data bytes are written MSB first. The first byte ofatwo byte command is sent first. The bits are clocked into the Z86129/130/131 by placing the data on the SDA input and bringing SCK High. Reading Data Using the SPI Bus With the exception of the SS read, each read operation must be set up before the data can actually be read from the serial output registers of the device. Data is set up for a read op- eration either automatically or manually. XDS data is set up for READ automatically upon recovery by setting a valid XDS FILTER register selection. All other data read oper- ations must be set up manually, using the READ SELECT commands RDS] and RDS2. These commands load the se- lected data byte or pair of bytes into the serial output reg- isters, set the SS register RD2 bit according to the number of data bytes requested and set the serial status DAV bit to indicate availability of data. The Z86129/130/131 SPI Bus supports two and three byte read sequences. In SPI mode, the SS must be read before a read sequence is started so that the DAV and RD2 bits can be checked. The number of data bytes available is indicated by the state of the RD2 bit. The special command READ] or READ? is then used to read the one or two available data DS007200-TVX0199 PRELIMINARY 27286129/130/131 NTSC Line 21 Decoder ZiLOG SERIAL COMMUNICATIONS INTERFACE (Continued) bytes. The serial status is clocked out during the write of the READ1 or READ2 command. The data byte or bytes are then clocked-out in sequence, MSB first, while NOP commands are written into the device. Data bits are clocked- out on the rising edge of SCK. All available data bytes must be read to clear the DAV bit and permit subsequent reads. The SPI Bus Protocol 1. The first bit of the first output byte is driven out on SDO following the rising edge of SCK on the most re- cent bit (LSB) of the READ1 or READ2 command. 2. Three-wire bus with Clock signal on SCK pin, Serial Data Input on SDA pin and Serial Data Output on SDO pin. SEN pin Low disabled the port, placing SDO in tri- state. Signal transitions on SCK and SDA are ignored. SEN pin High enables the port for operation. SEN and SMS pins Low is a hardware reset for the part. These pins must be held Low for at least 100 ns. Serial synchronization can be established by clocking in the minimum required SSR string of FFh, FFh, FEh. More than two bytes of FFh may be input but the string must end with FEh. 28 PRELIMINARY DS007200-TVX0199ZiLOG COMMANDS Serial Port Commands The majority of the Z86129/130/131 commands are com- mon to both the I@C and SPI modes. In the IC mode, the commands must be contained within the Start-Slave Ad- dress sequence. Text or Caption display commands are available only in 286129. Note: In the following Command descriptions, the letter h' fol- lowing a command code designates Hexadecimal nota- tion. Reset RESET = FBh, FCh, 00h. RESET isa three byte command sequence in SPI or I2C mode. The RESET command estab- lishes all the specified default settings in the device, but it does not reset the serial port itself. This sequence can be en- tered without RDY being set. No Operation NOP = 00h. NOP is a one-byte command for use in SPI or I-C mode. The NOP command does not affect the status of the RDY bit in the Serial Status (SS) register and can be ex- ecuted independent of the RDY status. Serial Sync Bytes SSB = FFh.....,FFh,FEh. Serial Sync Bytes are used in SPI mode only. This command actually consists of a string of single-byte commands in the form FFh,....FFh,FEh. SPI mode communications can be synchronized by sending a synchronizing data string to the part. This string should con- sist of at least two SSB bytes of FFh followed by one SSB byte of FEh. At the end of the FEh byte the port is ready for use. Table 17. Basic Serial Commands SerialCommand CommandCode Note RESET FBh, FCh, 00h SPI or PC NOP 00h SPI or ?C SSB FFh,...FFh,FEh SPI mode only 286129/130/131 NTSC Line 21 Decoder Caption/Text Display Mode Commands (286129 only) CPTX = 10h-1Fh. Caption and Text display mode com- mands. These commands select the desired Line 21 data stream (Closed Caption or Text) for display. Bit CM7 CM6 CMS CM4 CM3 CM2 CM1- CMO 0 0 0 1 FLD | LANG | CPTX | DONOF RAV RAV RAV RAW RAV RWW RW RAW Figure 15. CPTXCaption/Text Display (CPTX = 10h-1Fh) Caption and Text display commands are one byte com- mands. A data channel can be selected for display with the display either enabled (DEC ON) or disabled (DEC OFF). All these commands turn off an active XDS display mode. Table 18 summarizes the devices Caption and Text display modes and the proper command code to activate them: Table 18. Caption and Display Commands CPTX Command Code CPTX Command Decoder ON Decoder OFF CC1 47h 16h CC2 15h 14h CC3 1Fh 1Eh CC4 1Dh 1Ch T1 13h 12h T2 11h 10h T3 1Bh 1A T4 19h 18 XDS Display Mode and 16 Second Erase Timer Commands (Z86129 Only) XDS DISP = 20h-27h. XDS Display commands are one byte commands. These commands control the selection of XDS display modes and the state of the 16 Second Erase Timer. The 16 Second Erase Timer is active only for Cap- tion and XDS display modes. The 16 Second Erase Timer has no affect on TEXT mode displays. DS007200-TVX0199 PRELIMINARY 29286129/130/131 NTSC Line 21 Decoder COMMANDS (Continued) Table 19. XDS Display Commands XDS Display XDS Display Command Code Command 16 Sec TmrON 16 Sec Tmr OFF XDSG 23h 27h XDSF 2th 25h 16 Second Erase 20h 24h Timer Note: Changing the ON/OFF state of the 16 Second Erase Tim- er has no affect on the current display mode in operation. Read And Write Commands Read Selects. There are two Read Select commands (RDS1 and RDS2) in the Z86129/130/131. Each command is one byte in size and indicates that a read should take place. RDS1 specifies that one byte are read from the Z86129/130/131. Likewise, RDS2 indicates that two bytes are read. RDS1 = 40h-47h. RDS1 is a one-byte command used to initiate a one-byte read sequence by moving the contents of the register identified by the address field (AD00:02) of the command to the output register. Addresses Oh7h are valid in the RDSI command field AD00:02. Bit CM7 CM6 CM5 CM4 CM3 CM2 CMt CMO 0 1 0 |AD04) ADO3| ADO2} ADO1;AD00 Ww Ww Ww Ww w Ww Ww Ww Figure 16. RDS1Read One Byte (RDS1 = 40h-47h) RDS2 = 60h-66h. RDS2 is a one byte command which is used to initiate a two byte read sequence by moving the con- tents of the two consecutive registers, starting with the one identified by the address portion of the command (AD00:AD02), to the output registers and setting the RD2 bit in the SS register. Only Addresses Oh6h are valid in the RDS2 command field AD00:02. Bit 7 6 5 4 3 2 1 0 0 1 1 AD04 | ADO3| ADO2| ADO1} ADOO Ww Ww Ww WwW WwW WwW WwW Ww Figure 17. RSD2Read Two Bytes (RDS2 = 60h-66h) ZiLOG Note: For XDS data recovery, when the XDS Filter Register (see Internal Registers section, page 33) is enabled for the desired packets, the Z86129/130/131 automatically establishes the two-byte recovery mode and move the re- covered data bytes to the output register. Reading Data From The Z86129/130/131 READ1 = F8h. Command to read one byte in the SPI mode. READ2 = F9h. Command to read two bytes in the SPI mode. Bit 7 6 5 4 3 2 1 0 1 1 1 1 1 0 0 | RD2 Ww W WwW w wW WwW w w Figure 18. READxRead x Bytes (READ1/2 = F8h/F9h) The READx commands do not affect the status of the RDY bit in the Serial Status (SS) register and can be executed in- dependent of the RDY status. In both serial communications modes, the DAV bit in the SS register indicates when data is available. When the RD2 bit is Low, DAV is cleared on the rising edge of SCK at the LSB of the first data byte. When the RD2 bit is High, DAV is cleared on the rising edge of SCK at the LSB of the second data byte. The RD2 bit is only valid if DAV is High. Reading in the ?C mode is selected by the R/NW bit in the Slave Address byte. The first byte after the Slave Address byte is SS followed by the data in output buffers A and B in that order. If the instruction being executed is a one- byte read, then buffer A contains the read data and buffer B con- tains all ones. Writing to the Z86129/130/131 WRxx = COh-DFh Bit 7 6 5 4 3 2 1 0 1 1 0 | ADO4; ADO3 | ADO2| ADO1! ADOO WwW WwW Ww WwW Ww WwW Ww WwW Figure 19. WRxxWrite Register xx (WRx = COh-DFh) 30 PRELIMINARY DS007200-TVX0199ZiLOG The WRITE commands require two bytes to execute. The first byte is the write command and includes the Z86129 reg- ister address (AD00:04) being written. The second byte is the data to be written. OSD Display Mode Commands (Z86129 Only) OSD commands are one and two byte commands. They are used to control the loading of data for OSD display and their 286129/130/131 NTSC Line 21 Decoder presentation to the screen. Normally OSD display mode uses 15 TV lines per display row to enhance the screen ap- pearance. The following tables summarize the single- and two-byte control commands for the Z86129/130/131 On- Screen Display. Table 20. Single-Byte OSD Display Mode Commands (286129 Only) Command Name Code Command Function RETURN 30h Carriage return for OSD when in TEXTSET mode CLRE 31h OSD equivalent of delete to end of row (DER) TEXTSET 32h Establishes a TEXT type of OSD display POPSET 33h Establishes a pop-on type of OSD display FLIP 36h OSD equivalent of pop-on caption end of caption (EOC) OEDM 37h OSD equivalent of erase displayed memory OENM 38h OSD equivalent of erase non-displayed memory Table 21. Two-Byte OSD Display Mode Commands (Z86129 Only) First Second Command Name Byte Byte Command Function POP ROW SEL (with AOh rrh Sets display row and moves cursor to char column 1. The low order Double-High Option) nibble of rr designates the display row. Bit 5 of rr specifies a Doubie- High row. For example: rr = OEh would select display row 14. rr = 23h would select display row three, Doubie-High. PHYS ROW SEL Ath rrh Sets the physical row, where the low order nibble of rr designates the physical row. rr can be any value from 00h to OFh. CURSOR SET A2h cch Places the cursor at the character column position designated by cc, which can be any value from 00h to 20h (column 0-32). Zero is the PAC space. WRITE CHAR A3h ddh Writes the data byte dd to the current cursor location and then incre- ments the cursor. WRITE MAP A4h rh Maps the current physical row to the display row designated by the low nibble of the rr byte. Bit 4 of rr= 1 enables display of the row. Bit 5 of rr = 1 indicates a Double-High row. WRITE CHAR DBL WIDE A5h ddh Same as A3 command but specifies a Double-Wide character. WAIT A6h nnh Sets the RDY bit of SS and then suspends serial command execution for approximately the number of frames designated by the nn byte. Figure 20 illustrates the two different character sets, Graph- ics or Extended, that share the address space COhFFh. The Graphics Character set is in force when the OSD display is in Drop Shadow mode (the default condition). The two-byte commands GRAPHICS and EXTENDED can be used to switch from the Graphics Characters to the Extended Characters and vice versa. An OSD screen can only use one set at a time. DS007200-TVX0199 PRELIMINARY 31286129/130/131 NTSC Line 21 Decoder ZiLOG COMMANDS (Continued) OY | a, PT] TY A AAA III C4 ITT" CJT]. (> [T]3 > +1 (3 Cos Ma Cot ett OO Or (), Deo C3 C2: ADA mM oO OC OS | Ray TD O- | Oe | CG Dis O c- Oe I?2PS456/789ABCDEF TT TT] =O OD Figure 20. Z86129 Graphics or Extended Character Set 32 PRELIMINARY DS007200-TVX0199ZiLOG INTERNAL REGISTERS Information controlling the setup and operation of the Z86129/130/131 are maintained in several registers. The user may read or alter the contents of these registers as re- quired. Some registers are not available in Z86130/131 for not supporting OSD or XDS filtering. The availability of the internal register depends on the function of the Z86129/130/131. This section describes all the internal reg- ister in the Z86129/130/131. Serial Status (SS) Register Address = Not Required Bit D7 De Ds Dy Dz; D, D;, Dy RDY | DAV | RD2 |WOVR! INTR ;ROVR; FLD | LOCK R R R R R R R R Figure 21. Serial Status Register (Address not required) Do-LOCK. Active High, indicating that the internal sync circuits are locked. May be used as an indication of the pres- ence of a video signal. D,-FLD. Signals the current video field. Low = Field 2, High = Field 1. D2-ROVR. Active High, indicating that the data available in the output buffer has not been read out and new data has been written over it. D3-INTR. Active High, indicating that an interrupt other than DAV is pending. D,-WOVR. Active High, indicating a serial input data over- run. DsRD2. Signals the number of bytes available for output. Low = | byte, High = 2 bytes. D,-DAV. Active High, indicating that data is available to be read out. D7-RDY. Active High, indicating that the port input buffer is empty. Only the NOP, RESET and READ instructions may be sent if RDY is Low. Configuration Register Address = 00h Bit D; De Ds Dy D3 Dy, D, Do res res res res | VLK | HLK |MONO| TvS RAW RAV RW RIW Figure 22. Configuration Register (Address = 00h) 286129/130/131 NTSC Line 21 Decoder Do-TVS. Selects the television standard. High selects PAL and Low selects NTSC. The default is NTSC. When PAL is selected the display defaults to 15 TV scan lines per dis- play row. D,MONO. Selects monochrome operation. Active High, indicating that character luminance is output on all three color pins (RGB). The default is Low, selecting COLOR operation. D2-HLK. Selects the horizontal signal source to be used to lock the VCO: Low = Internal, High = HIN. The default is Internal. D3-VLK. Selects the vertical signal source to be used to es- tablish vertical sync lock: Low = Internal, High = Vyy. The default is Internal. When Internal lock is enabled the Vin/INTRO pin defaults to the INTRO output mode. Inter- rupts should not be selected in the Interrupt Mask register if VLK mode is used. D,D7-res. Reserved. Display Register Address = 01h Bit D) De Ds Dy Dz D, D;,~ Do 015 | ODRP| CENH| C15 | CORP| TENH; 115 | TORP RAW RAV RW RAV RAV RAW RW RIW Figure 23. Display Register (Address = 01h) Do-TDRP. Selects Drop Shadow or Full Box in TEXT mode: High = DROP SHADOW and Low = BOX. The de- fault is Low. D,-T15. Selects the number of TV lines per character row in a TEXT display: High = 15 lines/row and Low = 13 lines/row. The default is Low. D2-TENH. Enables Enhanced Attributes for a TEXT dis- play: High = Disabled, Low = Enabled. The default is Low. D3CDRP. Selects Drop Shadow or Full Box in CAPTION mode: High = DROP SHADOW and Low = BOX. The de- fault is Low. D4-C15. Selects the number of TV lines per character row in a CAPTION display: High = 15 lines/row and Low = 13 lines/row. The default is Low. DsCENH. Enables Enhanced Attributes for a CAPTION display: High = Disabled, Low = Enabled. The default is Low. DS007200-TVX0199 PRELIMINARY 33286129/130/131 NTSC Line 21 Decoder INTERNAL REGISTERS (Continued) Note: OSD and XDS display modes always have Enhanced At- tributes enabled. Dg-ODRP. Selects Drop Shadow or Full Box in the OSD and XDS display modes: High = DROP SHADOW and Low = BOX. The default is High. D7015. Selects the number of TV lines per character row in the OSD and XDS display modes: High = 15 lines/row and Low = 13 lines/row. The default is High. H Position Register Address = 02h Bit D7 De Ds Dy Dz D> Dy Do BLUBX| HPO | hs hg h3 hz hy No RW RAV RA RAW RAV RW RW RAW Figure 24. H Position Register (Address = 02h) DO-D5-h0-h5. Used to set the Horizontal Timing of the display. The default value in this register is 26h. Each count change represents an incremental timing change of 330 ns. Decreasing the value of this field moves the display to the RIGHT. Conversely, increasing the value of this field moves the display to the LEFT. Dg-HPO. Set the polarity to be used for locking to the HIN signal when in the EXT HLK mode: Low = Rising Edge, High = Falling Edge. The default is Low. D7-BLUBX. Designates color of BOX: High = Blue Box and Low = Black Box. The default is Low. Text Position Register Address = 03h Bit D, De Os Dy Dz; Dy D;, Do Y3 Y2 yi Yo X3 X X} Xo RAW RAV RAW RAW RAW RW RW R/W Figure 25. Text Position Register (Address = 03h) Do-D3-x9-x3. Sets the Number Of Rows in the TEXT dis- play. The default is 15 rows. D,4-D7-yp-y3. Sets the Base Row of the TEXT display. The default value in this register is set to FFh, which pro- duces a 15-row display with base row 15. Entering a new value in this register can alter the size and placement of the TEXT display. For example, to produce an 8 row TEXT dis- play with a base row of 12, this register should be set to C8h. ZiLOG If the value of the x andy bits result in a display where TEXT rows are off the top of the screen, then the first row of the TEXT display starts in row | and have the number of rows determined by the x value. Line 21 Activity Register Address = 04h Bit D7 Dg Ds Dy Dz; Dy Dy Dg res res res res res res | XDS | SCH R R Figure 26. Line 21 Activity Register (Address = 04h) Dyo-SCH. Indicates data being processed in the Data Chan- nel selected for display, and becomes inactive if no data is received for the selected channel within the previous 16 sec- onds: High= Active, Low = Inactive. The reset state is Low. D,-XDS. Indicates XDS data is being processed, and be- comes inactive if no XDS data is received within the pre- vious 16 seconds: High = Active, Low = Inactive. The reset state is Low. D2-D7-res. Reserved. XDS Filter Register Address = 05h Ss, | s, | So | PUBL| MISC] CHAN] FUTR| CURR RAV RAW RAW RAW RW RWW RW sRIW Figure 27. XDS Filter Register (Address = 05h) Do-CURR. Selects Current Class packets for output through the Serial Control port when XDS recovery has been enabled. D,-FUTR. Selects Future Class packets for output through the Serial Control port when XDS recovery has been en- abled. D.CHAN. Selects Channel Information Class packets for output through the Serial Control port when XDS recovery has been enabled. D3MISC. Selects Miscellaneous Class packets for output through the Serial Control port when XDS recovery has been enabled. D,-PUBL. Selects Public Service Class packets for output through the Serial Control port when XDS recovery has been enabled. 34 PRELIMINARY DS007200-TVX0199ZiLOG DsD7-Sp-S2. Selects a set of secondary parameters (Table 22) to be used in filtering the XDS data when XDS recovery has been enabled. Table 22. XDS Secondary Filter Settings Secondary Filter Filter Value (s0:s2) All Oh Time Information th In Band Only 2h Program Rating* 3h VCR Information 4h Reserved 5h Reserved 6h Reserved 7h Notes: 1. Setting this register to OOh turns XDS data recovery off. Setting bits Dy through Dy enables XDS data recovery for the Classes selected as qualified by the Secondary Filter (bits DsD7). If Bits DpDy are all set to 1, all Classes of XDS data are output (even Reserved and Undefined). 2. The Time Information Only selection includes the Time of Day (TOD) and Local Time Zone (LTZ) packets. 3. VCR Information selects TOD, LTZ, Net ID, Local Call Let- ters, Impulse Capture, Tape Delay, Composite 2 and Out of Band Channel Number packets for recovery. 4. Program rating filter available on Z86129 only. Interrupt Request Register Address = 06h Bit D7 Ds Ds Dy Dz; Dy Dy Dy dTXT | dCAP | dXDS | dSCH| dLOK| EOF | DLE res RAV RAV RAW RW RAW R R R Figure 28. Interrupt Request Register (Address = 06h) Do-res. Reserved. D,-DLE. Active High, indicating that the data line has end- ed. This bit clears in each field a few lines after row 15. D2-EOF. Active High, indicating that the video signal is currently at the end of a field. This bit clears in each field a few lines after row 15. D3-dLOK. Active High, indicating that the state of the LOCK signal has changed. The SS register must be read to determine the current state. D,-dSCH. Active High, indicating that a change in selected channel activity has occurred. The Line 21 Activity register must be read in order to determine if the selected data chan- nel is active. 286129/130/131 NTSC Line 21 Decoder Ds-dXDS. Active High, indicating that a change in XDS ac- tivity has occurred. The Line 21 Activity register must be read to determine if XDS data is active. DsdXDS. Active High, indicating that achange in XDS ac- tivity has occurred. The Line 21 Activity register must be read to determine if XDS data is active. D,-dCAP. Active High, indicating that a change in a cap- tion data channel activity has occurred. The Caption Activ- ity Register (Address 08h) must be read to determine ex- actly which caption channels are now active. D7~dTXT. Active High, indicating that a change ina TEXT data channel activity has occurred. The Caption Activity Register (Address 08h) must be read to determine exactly which TEXT channels are now active. Note: Except as noted for the case of D, and Dy, the master de- vice must write a 1 to the appropriate bit in the Inter- rupt Request Register to clear the Interrupt. Writing a1 to any valid bit position the Interrupt Request Register is equivalent to CLEARing a interrupt request on that bit. Interrupt Mask Register Address = 07h Bit D7 De Ds Dy Dz; Dp. Dy Dg dLOK | EOF | DLE | DAV RW RW dTXT | dCAP | dXDS | dSCH RAV RAV RWW RAW RW RAW Figure 29. Interrupt Mask Register Address = 07h This register identifies which activities in the Interrupt Re- quest Register are used to cause an interrupt. Setting a bit to a 1 enables the interrupt when the corresponding event becomes active. Setting all bits of this register to zero dis- ables interrupts. Caption Activity Register Address = 08h. Caption Activity Register Address = 08h Bit D, Ds Ds; Dy Dz, Dy OD, Do T4 T3 T2 T1 cc4 | CC3 | CC2 | CC1 R R R R R R R R Figure 30. Caption Activity Register (Address = 08h) Do-D7-Activity Bits. Activity bits for Line 21 data chan- nels CC1-T4. Each bit is set High when a mode setting com- mand for its data channel has been received on Line 21. The bit is cleared to the Low state if no activity is detected in that data channel during the next 1216 seconds or if there is a loss of lock. DS007200-TVX0199 PRELIMINARY 35286129/130/131 NTSC Line 21 Decoder INTERNAL REGISTERS (Continued) ZiLOG Note: This register is not available in Z86130/131. The following registers from address 08h to address OEh are for Z86130 only MPAA Rating Blocking Control Register Address = 06h D7 is read only. DeDp are RW. Figure 31. MPAA Rating Blocking Control Register (Address = 06h) Do-G. The Z86130 outputs High on pin 13 when incoming video program is G rated in MPAA Rating and this bit is set High. D,-PG. The Z86130 outputs High on pin 13 when incom- ing video program is PG rated in MPAA Rating and this bit is set High. D2-PG-13. The Z86130 outputs High on pin 13 when in- coming video program is PG-13 rated in MPAA Rating and this bit is set High. D3-R. The Z86130 outputs High on pin 13 when incoming video program is R rated in MPAA Rating and this bit is set High. D,-NC-17. The Z86130 outputs High on pin 13 when in- coming video program is NC-17 rated in MPAA Rating and this bit is set High. Ds-X. The Z86130 outputs High on pin 13 when incoming video program is X rated in MPAA Rating and this bit is set High. D,-Not Rated. The Z86130 outputs High on pin 13 when incoming video program is Not Rated rated in MPAA Rating and this bit is set High. D7-res. This bit must be kept Low, 0. Note: The Z86130 outputs Low when a bit in this register is set to Low and the incoming video program has the corre- sponding MPAA rating. Pin 13 may require a proper pull-down resistor for Low output. It outputs High onto pin 13 only when a bit is set High and it recovers the cor- responding MPAA rating in the incoming video pro- gram. TV Parental Guidelines Rating Blocking Control Register Addresses = 09h-OBh D7Dg is read only. DsDpy are RW. Bit} D7 | Dg | Ds | Dy | Dz | Dy | Dy | Do Figure 32. TV Parental Guidelines Rating Blocking Control Register 1(Address = 09h) Do-TV-Y. The Z86130 outputs High on pin 13 when in- coming video program is TV-Y rated in TV Parental Guidelines Rating and this bit is set High. D,-TV-Y7. The Z86130 outputs High on pin 13 when in- coming video program is TV-Y7 rated in TV Parental Guidelines Rating and this bit is set High. D2-TV-G. The Z86130 outputs High on pin 13 when in- coming video program is TV-G rated in TV Parental Guidelines Rating and this bit is set High. D3-TV-PG. The Z86130 outputs High on pin 13 when in- coming video program is TV-PG rated in TV Parental Guidelines Rating and this bit is set High. D,4-TV-14. The Z86130 outputs High on pin 13 when in- coming video program is TV-14 rated in TV Parental Guidelines Rating and this bit is set High. Ds-TV-MA. The Z86130 outputs High on pin 13 when in- coming video program is TV-MA rated in TV Parental Guidelines Rating and this bit is set High. D,-D7-res. This bit must be kept Low, 0. 36 PRELIMINARY DS007200-TVX0199ZiLOG 2Z86129/130/131 NTSC Line 21 Decoder Note: The Z86130 outputs Low when a bit in this register is set to Low and the incoming video program has the corre- sponding TV Parental Guidelines rating. Pin 13 may re- quire a proper pull-down resistor for Low output. It outputs High onto pin 13 only when a bit is set High and it recovers the corresponding TV Parental Guidelines rating in the incoming video program. This control reg- ister is for the base rating of TV Parental Guidelines. D3 is read only. D7-D,, DoD, are RW. Bit] D> | Ds | Ds | Dg | D3 | Do | Dy | Dg Figure 33. TV Parental Guidelines Rating Blocking Control Register 2(Address = 0Ah) Do-TV-PG-S. The 286130 outputs High on pin 13 when incoming video program is T'VPG-S rated in TV Paren- tal Guidelines Rating and this bit is set High. D,-TV-14-S. The Z86 130 outputs High on pin 13 when in- coming video program is TV14S rated in TV Parental Guidelines Rating and this bit is set High. D2-TV-MA-S. The Z86130 outputs High on pin 13 when incoming video program is TVMA-S rated in TV Pa- rental Guidelines Rating and this bit is set High. D3-res. This bit must be kept Low, 0. Dy-TV-Y7-FV. The Z86130 outputs High on pin 13 when incoming video program is TV-Y7-FV rated in TV Pa- rental Guidelines Rating and this bit is set High. Ds-TV-PG-V. The Z86130 outputs High on pin 13 when incoming video program is TVPGV rated in TV Pa- rental Guidelines Rating and this bit is set High. Dg-TV-14-V. The Z86 130 outputs High on pin 13 when in- coming video program is TV14V rated in TV Parental Guidelines Rating and this bit is set High. D7-TV-MA-V. The Z86130 outputs High on pin 13 when incoming video program is TV-MA-V rated in TV Pa- rental Guidelines Rating and this bit is set High. Note: The Z86130 outputs Low when a bit in this register is set to Low and the incoming video program has the corre- sponding TV Parental Guidelines rating. Pin 13 may re- quire a proper pull-down resistor for Low output. It outputs High onto pin 13 only when a bit is set High and it recovers the corresponding TV Parental Guidelines rating in the incoming video program. This control reg- ister is for the S and V rated programs in TV Parental Guidelines rating. D;, D3D, are read only. DgDpy are RW. Bit| D7 | Dg | Os | Dg | D3 | Do | Dy | Do Figure 34. TV Parental Guidelines Rating Blocking Control Register 3 (Address = OBh) Do-TV-PG-D. When it is High, Z86130 outputs High on pin 13 if incoming video program is TVPGD rated in TV Parental Guidelines Rating. D,-TV-14D. The Z86 130 outputs High on pin 13 when in- coming video program is TV14D rated in TV Parental Guidelines Rating and this bit is set High. D,D3-res. This bit must be kept Low (0). D4-TV-PG-L. The Z86130 outputs High on pin 13 when incoming video program is TVPG-L rated in TV Pa- rental Guidelines Rating and this bit is set High. D;-TV-14-L. The Z86130 outputs High on pin 13 when in- coming video program is TV14-L rated in TV Parental Guidelines Rating and this bit is set High. Dg-TV-MA-L. The Z86130 outputs High on pin 13 when incoming video program is TV-MA-L rated in TV Pa- rental Guidelines Rating and this bit is set High. D7-res. This bit must be kept Low (0). Note: The 286130 outputs Low when a bit in this register is set to Low and the incoming video program has the corre- sponding TV Parental Guidelines rating. Pin 13 may re- quire a proper pull-down resistor for Low output. It outputs High onto pin 13 only when a bit is set High and it recovers the corresponding TV Parental Guidelines rating in the incoming video program. This control reg- ister is for the D and L rated programs in TV Parental Guidelines rating. DS007200-TVX0199 PRELIMINARY 37286129/130/131 NTSC Line 21 Decoder INTERNAL REGISTERS (Continued) Status Register Addresses = 0Ch-0Dh D7Dpy ARE READ ONLY. Bit] D; | Dg | Ds | Dy | D3 | Dp | Dy | Do Figure 35. Status Register 1 (Address = 0Ch) DoDg. These bits have the same format as the 7 LSbs(1, D, al, a0, r2, rl, r0) of the first byte of 2 rating bytes re- ceived. D7-B. This bit indicates the blocking status. When it is High, it indicates that the incoming video program falls into the set-up of program blocking. DzDg are read only. Bit} D> | Ds | Ds | Dg | D3 | Do | Dy | Do Figure 36. Status Register 2 (Address = 0Dh) Do~Dg. This bits have the same format as the 7 LSbs(1, (F)V, S, L, g2, g1, g0) of the second byte of 2 rating bytes received. D7-P. This bit indicates the validity of the recovered rat- ings. When it is High, it indicates that the recovered rating of the incoming video program is valid. Blocking Control Register= 0Eh D7Dy are RW. Bit] D> | Ds | Ds | Dg | Ds | Do | D, | Dy Figure 37. Blocking Control Register (Address = 0Ch) DoDg. These bits extend the program blocking time as pro- grammed when a channel change occurs on a program- blocking condition. These bits are optional control bits for the program-blocking vertical frame period of time will be incremented per the increment of 1 in this register. D7Block. This bit enables/disables the program blocking feature in Z86130. XDS Data Recovery The Z86129/130/131 is able to recover Extended Data Ser- vices (XDS) information from the input video signal. This data, formatted according to EIA608, can contain a wide variety of information about current and future programs, ZiLOG the channel currently tuned, other channels and miscella- neous data including time of day. XDS data is only present in the even field. The Z86129 can recover XDS data even while performing its normal caption decoder or OSD functions. XDS data packets are tagged according to a Class/Type sys- tem defined by EIA608. The Z86129/130/131 (time infor- mation only for the 786131) can be programmed to filter the XDS data stream to extract only the classes of interest to the application. An additional level of filtering is provid- ed that permits selection of certain groups of packets that are of use in specific applications. XDS filtering reduces the traffic on the serial bus, reduces the load of the TV/VCR control processor and simplifies external XDS decoding. XDS data recovery is enabled by selecting one or more classes in the XDS Filter register. Optionally, a secondary filter code can be specified which further limits the packets to be recovered. When XDS recovery is enabled filtered data pairs are loaded into the serial output registers of the Z86129/130/131 immediately upon receipt and in the order received. The DAV and RD? bits of the Serial Status (SS) register then go High, indicating the availability of two out- put bytes. The external TV control processor is not required to send a READ SELECT command in order to read these data bytes. When the XDS Filter register is set to 00h (the default state) XDS recovery is disabled. Caution: When XDS data recovery is enabled, the external controller should never perform any other read oper- ation, except SS reads, in the beginning of field 2. The user can most easily accomplish this task by us- ing the end of field (EOF) or data line end (DLE) in- terrupt to locate the end of field 2 or the vertical blanking interval (VBI) of field 1, and then perform the READ SELECT and READ functions during this portion of the video frame. Commands other than READ SELECTS do not interfere with XDS data re- covery regardless of their position in the video frame. Some examples of Z86129/130/131 WRITE commands that could be used to set the XDS Filter Register are indi- cated in Table 23 (time information only for the Z86131). The XDS Filter Register bit assignments are defined in the Z86129/130/131 Internal Registers section, page 33 of this document. 38 PRELIMINARY DS007200-TVX0199Z86129/130/131 NTSC Line 21 Decoder ZiLOG Table 23. XDS Data Extraction Example Filter Settings {Write COMMAND, Filter Code} XDS Filter Output {C5,41} All In Band, Current Class packets recovered. {C5,61} Program Rating, Current Class packets recovered. This Filter May be Used for V- Chip Data Packet Recovery. {C5,1F} All XDS packets recovered. {C5,01} All Current Class packets recovered. {C5,28} Time information recovered. This filter extracts the Time of Day (TOD) and Local Time Zone (LTZ) packets from the Miscellaneous Class data. This filter may be used to implement Auto Clock-Setting in TVs and VCRs. {C5,9F} VCR_ Information recovered. Selects TOD, LTZ, Net ID, Local Call Letters, Impulse Capture, Tape Delay, Compos- ite 2 and Out of Band Channel Number packets for recovery. Filtered XDS Data Format Filtered XDS data is output from the Z86129/130/131 inthe order it is received on Line 21. In other words, think of the Z86129/130/131 XDS filter function as creating a new, smaller stream of XDS data packets. This new data stream looks exactly as though the Class and Type specified in the XDS Filter Register (05h) are the only data encoded on Line 21 of field 2. The filtered data output from the Z86129/131 is in full compliance with EIA608 specifications for XDS data streams; headers and control codes intact. See Note paragraph in the next column for a special exception to this rule. XDS data and header information (including START, CONTINUE, and END commands) are passed through the filter for the XDS class and type specified in the XDS Filter Register. All other Line 21 data is filtered out and is not out- put or used to generate a Data Available Flag (DAV) in the Serial Status Register. To properly read filtered XDS data from the Type information. For example, in Z86129/130, in order to extract ONLY the Line 21 Program Rating information, the master must write the value 61h to the XDS Filter Register. The master should then poll the state of the DAV bit in the SSR until DAV = 1. As soon as DAV = 1, the master may initiate a 3-byte read in the normal manner (XDS data bytes always arrive in pairs, so it is safe to assume that RD2=1 when DAV=1 in the SSB). A 3-byte read always yields two data bytes, which in this case are the first two bytes of the Current Class, Pro- gram Rating Type XDS data stream encountered on Line21 field 2. The master device must then interpret those two bytes according to EIA608 specifications for Current Class, Program Rating Type data. Refer to EI[A608 for data formats. The XDS filters on the Z86129/130/131 greatly reduce the amount of field 2 data passed on to the master device for further processing and interpretation. However, the master device must still interpret the filtered data stream in accor- dance with EIA-608. The filtered data stream from the Z86129/131 is in full compliance with E[A608. In other words, the filtered data stream contains all the XDS com- mand and data packets, in standard EIA608 format, but only for the selected XDS Class and Type(s). Note: The Z86129/130 XDS filter for Program Rating infor- mation behaves differently than all other Z86129/130/131 predefined XDS filters. This change has been made to minimize the amount of data passed through the Program Rating XDS filter, thereby mini- mizing the interpretation and communications load on the master device. When the XDS Filter Register is set to 61h (Class=01h (Current), Type=05h (Program Rating) the only data from Line 21 field 2 that passes through the filter is: 1. Program Rating Packet: [xxh,xxh]. The Current Class Program Rating data byte pair as defined in EIA-608. The programs rating is encoded per EIA608 in the xxh byte pair. 2 The END Packet [0Fh,CHKSUM]. A two-byte packet that includes a CHKSUM computed per EIA-608. The checksum calculation includes the START packet [01h,05h] even though this value was not passed through 786129/130/131, the master device must first write the the filter. XDS Filter Register (05h) with its desired XDS Class and DS007200-TVX0199 PRELIMINARY 39286129/130/131 NTSC Line 21 Decoder ZiLOG Z86129/130/131 COMMANDS AND REGISTER SUMMARY (OSD AND CCD COMMANDS FOR Z86129 ONLY) Note: As discussed, some registers are not available in Z86129/130/131 for non-OSD features in Z86130/131, V-chip-specific features in Z86130, and Time extraction feature only in Z86131. Table 24. Z86129/130/131 Summary of Control Commands Command Command Name Code Function RESET FBh,FCh,00h RESETisa three-byte command sequence in SPI or I7C mode. The RESET command establishes all the specified default settings in the device, but it does not reset the serial port itself. This sequence can be entered without RDY being set. NOP 00h NOP is a one-byte command for use in SPI or I2C mode. The NOP command does not affect the status of the RDY bit in the Serial Status (SS) register and can be executed independent of the RDY status. SSB FFh,...Fh,FEh Serial Sync Bytes are used in SPI mode only. This command actually consists of a string of single-byte commands in the form FFh,....FFh,FEh. SPI mode communica- tions can be synchronized by sending a synchronizing data string to the part. This string should consist of at least two SSB bytes of FFh followed by one SSB byte of FEh. At the end of the FEh byte the port is ready for use. CPTX 10h-1Fh Selects a Closed Caption (CC1CC4) or TEXT (T1T4) data channel! for processing or display. DISP 20h-28h Selects a preprogrammed XDS screen template for display, with or without 16 Second Erase timer enabled. RDS1 40h-47h RDS1 is a one-byte command used to initiate a one byte read sequence by moving the contents of the register identified by the address field (AD00:02) of the command to the output register. Addresses Oh-7h are valid in the RDS1 command field AD00:02. RDS2 60h-66h RDS2 is a one-byte command which is used to initiate a two-byte read sequence by moving the contents of the two consecutive registers, starting with the one identified by the address portion of the command (AD00:AD02), to the output registers and setting the RD2 bit in the SS register. Only Addresses Oh-6h are valid in the RDS2 command field ADOO:02. READ1 F8h Command to read one byte in the SP! mode. READ2 F9h Command to read two bytes in the SPI mode. WRxx COh-DFh, XXh The WRITE commands require two bytes to execute. The first byte is the write com- mand and includes the 286129/130/131 register address (AD00:04) being written. The second byte (XXh) is the data to be written. 40 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder Table 25. Summary of Z86129/130/131 Internal Registers Register Name Address D7 Dg Ds D, D3 D2 Dy Do Serial Status Register None RDY DAV RD2 WOVR INTR ROVR FLD LOCK (SSR) Configuration 00h res res res res VLK HLK MONO TVS Display 01h 015 ODRP CENH C15 CDRP TENH T15 TDRP H Position 02h BLUBX = HPO hs hg hg hg hy ho Text Position 03h Y3 Y2 Y4 Yo X3 XQ XY Xp Line 21 Activity! 04h res res res res res res XDS SCH XDS Filter? 05h So $4 So PUBL MISC CHAN FUTR CURR Interrupt Request? 06h dTXT dCAP dXDS dSCH dLOK EOF DLE res Interrupt Mask? 07h dTXT dCAP dXDS dSCH dLOK EOF DLE DAV Caption Activity * 08h T4 T3 T2 T1 CC4 CC3 CCc2 CC1 MPAA Rating* 08h res Not X NC-17 R PG-13 PG G Rated TV Parental Guidelines 09h res res TV-MA = TV-14 s TV-PG TV-G TV-Y7 TV-Y Rating1* TV Parental Guidelines OAh TV-MA-V_ TV-14-V. TV-PG-V_ TV-Y7- res TV-MA-S_ TV-14-S TV-PG-S Rating2* FV TV Parental Guidelines OBh res TV-MA-L TV-14-L TV-PG-L res res Tv-14-D TV-PG-D Rating3* Status14 0Ch B 1 D al a0 12 r r0 Status24 ODh P 1 (F)V S L g2 g1 gO Block Control* OEh Block Block Time Notes: 1. These registers are not valid for the Z86130/131. 2. This register is valid in the Z86129/131. However, the 286131 recovers time information only. 3. Bits D4, Ds, Dg, D7 are not available in the Z86130/131; there is no Interrupt Output in the 286130. 4. These registers are only available in the 286130. DS007200-TVX0199 PRELIMINARY 41286129/130/131 NTSC Line 21 Decoder ZiLOG APPLICATION INFORMATIONS OF THE 286130 PROGRAM BLOCKING CONTROL The following matrix is for the program blocking validity dress 08h) and the first row is the rating informations in the of the MPAA Rating in the Z86130. The first column isthe incoming video program. control bits of the MPAA Blocking Control Register (Ad- G PG |PG-13; R |NC-17] X NR G PG R xX NR The following matrix is for the program blocking validity | Blocking Control Registers (Address 09h, 0Ah, OBh) and ofthe TV Parental Guideline Rating in the Z86130. Thefirst the first row is the rating informations in the incoming video column is the control bits of the TV Parental Guideline program. Y|Y7 |G PG 1 4 |-|FI-|-IV/S|L/D/VIV|V|S/SILIV|VIV/S|V|-IVIS|L|DIVIV|V|S V S|L/D/L/D/D;S|S/L|L/S S/LIDIL LID|DID|L D Y Y7 G PG PG-V PG-S PG-L PG-D 14 14-V 14-S 14-L 14-D MA MA-V MA-S MA-L Note: denotes a base rating. 42 PRELIMINARY DS007200-TVX0199ZiLOG ON-SCREEN DISPLAY (286129 Only) OSD Operation The Z86129 has a fully programmable, general purpose OSD built in. The user can supply information for display through the serial port. In addition to all the normal and ex- tended features of the VBI data display modes, OSD mode also has available added graphics characters, Double-High and Double- Wide characters and the ability to position the display anywhere on the screen with an adjustable (vertical) box size. The Double-High and double-wide characters are especially useful for creating OSD screens for display in- side a Picture-in-Picture (PiP) window. The OSD display mode can use either 13 or 15 lines per row, with box or drop shadow. The default is 15 scan lines per row and drop shad- ow. Enhanced attributes are always enabled. The 15 scan line per row display can only display 13 rows on-screen when in the NTSC mode. Rows 14 and 15 is off- screen and should not be addressed. In the PAL mode all rows are visible. The 15 scan lines per row mode display can display the full graphic characters and accented capital letters and descend- ers without the potential overlap that would result from the 13 scan line per row display. If the OSD display mode is changed to a 13 scan line per row mode, the top two scan lines of any graphics or accented capital letter is ORed together with the bottom two scan lines from the row above. In 13 line-drop shadow mode, the result is a side-shadow effect. Graphics characters should not be used in the 13 line- drop shadow mode. OSD Character Set There are 256 possible addresses in the OSD character set. Figure 38 illustrates the address map in the range 00hBFh. This portion of the addressable space contains the control 286129/130/131 NTSC Line 21 Decoder bytes and regular character set. The address map in the range COh-FFh is illustrated in Figure 20. These addresses are shared by the Extended Character set and the Graphics Character set. Any particular OSD screen can use one or the other of these sets of characters but not both. The character set in force is controlled by the type of display mode being invoked. When Drop Shadow is being used, by default, the Graphics Character set is displayed in response to an address in the COhFFh range. However, ifa BOX dis- play is used, the Extended Character set is invoked. In either case the user can switch to the other set by means of the ap- propriate command, GRAPHICS or EXTENDED. The V},\/INTRO pin serves as the input for a Vertical Pulse from the TV receiver when V Lock = Vjy mode is enabled. This mode permits an OSD display even when no video in- put is present. If this mode is not required, the default state V Lock = VIDEO should be active and this pin then carries the INTRO output signal. OSD Commands OSD commands are one and two byte commands. They are used to control the loading of data for OSD display and their presentation to the screen. Normally OSD display mode uses 15 TV lines per display row to enhance the OSD pre- sentation. The two byte commands enable direct access to any location on the display screen. The user may construct displays of his own choosing by using these commands. Each command byte pair consists of an instruction byte followed by a data byte (see the Sample Z86129 OSD Program on page 45). DS007200-TVX0199 PRELIMINARY 43286129/130/131 ZiLOG NTSC Line 21 Decoder 6 /BGADBCDEF fe as 1254 Ursin Foreground | Untire Foregreurd iki | minio ed ed Yelow | Yolow | Meg og i 5 op Seenttron | Op Semitron } Cpa | Somitror us | Seenitran cen kent Inrkgmad | Anrkgend | Anckgne|d | Anrkgnd | Anrkgnet | Aorkgrd | Rinekornet a aendeaballe Block. [Treximgs Dovit> Tr s Spo | rt Wide (Back td oque | Sernitron ye | Sernitron | Op Semitra Aerkgend | Are A} Anrkgmed | Bark Rorkgmed | Anircend | Ainekeoene | inekgenet | An ON-SCREEN DISPLAY (286129 ONLY) (Continued) =, Second { ? Nibtte. , First 2 =| LT" BBAR? Cat, -. 7 3 @1273456789:); <=>? 4 BABCDEFIGHIJKLMNO 5 PQRSTUVWAY Ze lito 6 dablcdelt ghii 7 porstuvwxyzco=Nhl 3 | |" elsn. 9 BY AC) leelyy Figure 38. OSD Character Set DS007200-TVX0199 PRELIMINARY 44ZiLOG 286129/130/131 NTSC Line 21 Decoder Note: In this product specification, one and two byte com- mands are written as one or two, two-digit Hex values, separated by a comma, within curly braces. For example, the WRITE CHAR command for entering the letter A as a single-width character would be presented in this document as {A3,41}. This command would write the letter A to the current cursor position of the display row being addressed. Refer to the Serial Communica- tions Interface and Commands sections, pages 24 and 29, respectively, for further details. The one byte commands provide a simple means of creating OSD displays using preset screen formats built into the part. These built-in modes provide the user with a simple way to generate OSD screens. Two preset display modes are avail- able called POPSET and TEXTSET. Using Popset POPSET provides an OSD mode that operates in a fashion similar to the Caption Pop-on mode. The POPSET com- mand organizes the memory into two eight row blocks, one visible on-screen and the other off-screen. An OSD screen can then be created by loading the off-screen memory by the command sequence POP ROW SEL, WRITE CHAR .. WRITE CHAR .. POP ROW SEL .. WRITE CHAR .. WRITE CHAR. The data can then be presented for on-screen display with the FLIP command. The following is an example of a command sequence that creates an OSD screen using the POPSET mode. It creates a typical menu screen used in television receivers. Note: In this document, commands are written as either a one- or two-byte HEX value, separated by a comma, within curly braces (for example, a two-byte OSD command is {A1,00}). Inthe sample program that follows, acomment field is writ- ten following the command to describe the action of the command or sequence of commands, where appropriate. The comment field is identified by an asterisk (*); any text following the asterisk is implied as a comment in the ex- amples that follow. Sample OSD Program OSD Command Function {33} *Select POP mode. Sets up the Z86129 internal memory organization to support POP mode. The first block of commands display > VIDEO in Double-Wide chars. Each character is entered with the WRITE CHARD command. {A0,02} *Select POPROW 2, cursor at character column1 {A2,00} *move cursor to 0 {A3,08} *PAC for RED chars written in PAC loca- tion. {A5,3e} *Double-Wide char > displays in char col 1&2 {A3,02} *Green mid code written to char col 3 {A5,56} V" written to char col 4 & 5. {A5,49} pr {A5,44} D {A5,45} PE {A5,4f} Q *The next block of commands display AUDIO in row 4 double-width. {A0,04} select poprow 4, cursor in char col 1 {A2,03} *cursor to char col 3 {A3,02} *Green mid code written to char col 3 {A5,41} *A written to char col 4 & 5. {A5,55} yu [A5,44] D [A5,49] p Note: *The next set of commands display the word TIME in row 6 with double-wide characters. Spacing is obtained without the A2 Cursor Set command to illustrate an alternate means of column alignment. DS007200-TVX0199 PRELIMINARY 45286129/130/131 NTSC Line 21 Decoder ON-SCREEN DISPLAY (286129 ONLY) (Continued) ZiLOG OSD OSD Command Function Command _ Function {A0,06} *Select poprow 6, cursor in char col 1 {A0,0a} *select poprow a {A3,02} Green mid code written to character col- {A2,03} *cursor to 3 umn 1 {A3,02} *Green char {A5,20} *Double-Wide space char written to charac- {A5,43} *O {A5,54} T written to char col 4 & 5. (Ab 4A =OF {A5,49} 1 : {A553} SP {A5,4d} _M {A5,45} ae {A5,45} E {A5,44} Dp? Note: *SET UP is displayed in row 8 using double-wide chars. {A5,20} on {A5,43} cr OSD {A5,41} A Command Function {A5,50} P {A0,08} Select POPROW 8 a oa a {A2,03} *cursor to 3 a } =o {A3,02} *Green characters {AS ,4f} er (A553). [AS,4e] N {A5,45} EP Note: *The line, Select: ENTER EXIT: MENU, appears in row AB BA mp 12, starting in character column 2. These are displayed as sin- ae _ gle-wide characters {A5,55} Uy {A5,50} p Note: *CLOSED CAPTION displayed in row 10 using double- wide characters. The last letter, N, appears in character column 30 and 31 46 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder OsD The following example presents an OSD display generated Command Function using TEXTSET. This screen paints on rather than pop on. {A0,0c} *select poprow c Features like flash are included in the command sequence {A3,06} *CYAN char for demonstration purposes. {A3,53} Ss The TEXT display is first set to 4 rows at the bottom of the {A3,65} te screen. {A3,6c} yp {A3,65} e" ospD {A3,63} co Command Function {A3,74} et {C3,D4} *set Textpos reg for base row 13, 4 rows {A3,3a} {C1,80} *set OSD display for BOX mode, 15 {A3,20} em lines/row {A3,45} E {C2,A6} *set BOX to Blue, keep HPOS unchanged {A3,4e} NN {32} select TEXTSET mode {A3,54} Ty *The next two commands are used for posi- {A3,45} rE tioning and color. {A3,52} *R? {A2,05} *cursor to char pos 5 {A3,20} en {A3,08} *mid code to make Red chars. Cursor {A3,20} om moves to 6 {A3,45} e {A3,B9} *mid code to start Flash, Cursor moves to 7 {A3, 78} we {A5,57} W Double-Wide, char col 7,8 {A3,69} xp {A5,41} A Double-Wide, char col 9,10 {A3,74} mp {A5,52} *R Double-Wide, char col 11,12 {A3,3a} > {A5,4E} *N Double-Wide, char col 13,14 {A3,20} xD {A5,49} *! Double-Wide, char col 15,16 {A3,4d} my {A5,4E} *N Double-Wide, char co! 17,18 {A3,45} pe {A5,47} *G' Double-Wide, char col 19,20 {A3,4e} NP {A5,20} ** Double-Wide, char col 21,22 {A3,55} TD {30} noun moves cursor to next row, char pos 5) emmens Bee emotes eS FopS naj "ror tocar posd {A3, 0A} *PAC sets color to Yellow, cursor moves to char pos 1 Using Textset {A3,54} *T single-width, cursor moves to char pos 2 TEXTSET features an OSD mode that paints on the screen {A3,68} *h! in a manner similar toa TEXT Mode display. The memory _ {A3,65} *e! is organized using the current information in the Text Po- _ {A3,72} YP sition register and the display follows the current setting in {A365} *Q) the Display register. The default display parameters for {A3,20} * OSD are 15 lines per row, Drop Shadow mode. The TEXT- {A3,69} ep SET command can be followed by successive WRITE {03,73} *e CHAR commands interspersed with the RETURN com- {A320} an mand at the appropriate points to paint on an OSD display A 3 61} wy starting at the top of the Text window as set by the Text Po- sition register and moving to the next line at each RETURN {A3,20} command. The display scrolls if a RETURN command is {A3,74} vt sent when at the bottom of the Text window. A subsequent _{A3,6F} 0 TEXTSET command clears the screen and generateanew _{A3,72} *T OSD screen. {A3,6E} ny {A3,61} a! DS007200-TVX0199 PRELIMINARY 47286129/130/131 NTSC Line 21 Decoder ON-SCREEN DISPLAY (Z86129 ONLY) (Continued) ZiLOG OSD OSD Command Function Command Function {A3,64} *q {A3,65} *@ {A3,6F} *Q {A3,63} * {A3,20} {A3,61} *g {A3,69} *? {A3,75} *y {A3,6E} nr {A3,74)_*t {3,20} * (43,60) {A3,74} * {A3,6F} oO {A3,68} h {A3,6E} 1 {A3,65} *@! {A3,73} *S? {A3,20} nt {A3,20} wO {A3,61} "aq! {A3,69} v {A3,72} r {A3,6D} *r! {A3,65} *e {A3,6D} *m! {A3,61} a! {A3,65} *e' {A3,2E} (A364) dl {30} *Return moves cursor to next row, char pos {A3,69} al 1 {A3,61} *Q {A350} *P (A374) {(A36C}*T {A365}. *e {A365} e (A3.6C} 1 (A361) a {A379} *y {A3,73} *s) {A3,2E} * {A3,65} *@! {A3,20} At this point, all 4 rows are on-screen. The following wait {A3,74} t command holds the display for a period = (12x16)/30 sec- {A3,61} al onds. {A3,6B} *K {A3,65} *@) {a6,c0} wait for 6.4 seconds. {A3,20} = {A3,61} *Q! Create a smooth scroll to clear the screen with the following {A3,6C} 4-row sequence. {A3,6C} | OSD aa aEh am Command Function (A3,65} xQ) Se, 5 ms row. ra a6,0 *wait rames aaa ma {30} *Return second row. roa {a6, Of} ath = so Return third row. Fa! a6, aH = So *Return fourth row. {A3,79} ny a6, {30} * {A3,70} *p! Create a new screen display. {A3,72} *c 48 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder OSD sequential menu screens with a built-in pause between the Command Function two displays. In this case, the WAIT is placed just before the most recent FLIP command, thereby allowing the entire welt y 8 {a3,74} t command sequence to be sent to the Z86129. The RDY bit {a3,68} h is set by the WAIT command, thus allowing the FLIP to be {a3,69} as, T input as well. S350) _* The command sequence would be as follows: {a3,77} *w OSD {a3,61} a Command Function {a3,73} *s' {33} *select pop mode {a3,20} {..} *screen generation commands for first dis- {a3,6f} *0 play {a3,6e} *n {..} {a3,6c} * {..} {a3,79} y {36} FLIP command flips memories, and pops {a3,20} we the first menu on-screen. {a3,61} ag! {38} OENM, to ensure non-displayed memory {a3,20} is erased. (23,74) *p {..} screen generation commands for second wa? Isp ay {a3,65} e {a3,73} *s) a a3,74 t - = } Return {A6,CO} wait 6 seconds {23,64} xi {36} *FLIP command flips memories, and pops * the second menu on-screen. {a3,6f} 0 {a3,6e} nN . : (a3,27} TD Using The Graphics Character Set {a3,74} ip The following example creates an OSD screen which illus- {a3,20} > trates several features of the Z86129 including the use of {23,70} *p the Graphics character set to generate a large font word. The (a3.61} a! particular features presented are purely for demonstration (a3, 6e} Fy! purposes and not intended to suggest a particular applica- tion. {a3,69} * {a3,63} #0 For the sake of brevity, the text to be displayed is pre- {a3,2e} mS sented as a string within quotes rather than as the actual com- Using the WAIT Command The WAIT command suspends serial port communications for a period of time. The TEXTSET example on page 47 used the WAIT command in two ways. First to hold a dis- play on-screen for a period of time before taking a second action. Then it was used to create a smooth scroll by timing the wait to the scroll rate. The WAIT command can also be used to control the ap- pearance of two OSD displays in sequence without tying mand sequences required. Single quotes ( ) signifies stan- dard characters while double quotes () signifies Double- Wide characters. OSD Command Function {33} select pop mode {A0,02} *select poprow 2 {A2,00} *Move cursor to 0 {A3,03} *PAC, GREEN chars THIS IS A DEMONSTRATION OF OSD up the master device for the total display time. In the fol- _ {A0,03} *select poprow 3 lowing example, the POPSET mode is used to pop ontwo _ {A200} *cursor to 0 DS007200-TVX0199 PRELIMINARY 49286129/130/131 NTSC Line 21 Decoder ZiLOG ON-SCREEN DISPLAY (286129 ONLY) (Continued) OSD OSD Command Function Command Function {A3,08} *PAC, RED char {A3,20} e The Z86129 has many features {A3,fb} *Graphic Cell {A3,20} {A0,04} *select poprow 4 {A3,ea} *Graphic Cell {A2,00} *cursor to 0 {A3,20} {A3,04} *Blue char {A3,ea} *Graphic Cell {A3,20} o besides displaying Captions. {A3,fa} *Graphic Cell {A3, f5} *Graphic Cell {A0,06} *select poprow 6 {A2,00} *Move cursor to 0 {A0,0c} *select poprow 12 {A3,07} *PAC, Cyan Underlined {A2,00} *Move cursor to 0 {A3,06} *PAC, Cyan chars Color and Underline may be used {A5,20} oe {A0,08} *select poprow 8 {A5,20} se {A2,00} *Move cursor to 0 {A5,20} {A3,0a} *PAC, Yellow chars {A5,20} {A3,20} em *Double-Wide {A3,ea} *Graphic Cell {A3,ea} *Graphic Cell {A0,09} *select poprow 9 {A3,20} me {A2,00} *Move cursor to 0 {A3,eb} *Graphic Ceil {A3,0c} *PAC, Magenta chars {A3,20} e Graphics can be created like {A3,eb} *Graphic Cell {A3,20} se The next group of commands use Graphic Char patternsto _{A3,eb} *Graphic Cell make the two-row word HELLO. The data byte of the {A3,20} em WRITE CHAR command is the address location for the _ {A3,eb} *Graphic Cell graphic cell desired as illustrated in Figure 9. {A3,d7} *Graphic Cell OSD {36} *flip Command Function * {A0,0b} *select poprow 11 {A2,00} *Move cursor to 0 {A3,06} PAC, Cyan chars * Manual Row Mapping and Control {84,30} *Set Graphics mode in case another user had changed it earlier. {A5,20} {A5,20} om {A5,20} uo {A5,20} ue {A3,20} oe {A3,eb} *Graphic Cell {A3,ea} *Graphic Cell For most OSD displays the POPSET, POP ROW SEL, FLIP, TEXTSET and RETURN commands should be used to control row positioning. TEXTSET mode provides automatic row allocation from top to bottom of the screen with all rows continuously vis- ible. Additionally, TEXTSET screens have a definable ver- tical window size and position and support automatic text scrolling at the bottom of the window. 50 PRELIMINARY DS007200-TVX0199ZiLOG POPSET screens are created in off-screen memory while the previous screen is displaying. Up to 8 rows of characters can be defined. These rows can be mapped to any of 15 dis- play rows using the POP ROW SEL command. Double- High rows may also be defined with POP ROW SEL. The FLIP command is then used to pop-on up to 8 rows of characters replacing the previous screen. The off-screen rows may be mapped to the same row numbers as the on- screen rows. In some applications it may be necessary to access the dis- play hardware at a lower level to achieve special screen ef- fects. Examples of these special situations include the fol- lowing: 1. More than 8 on-screen rows required in a pop-on style screen. 2. Characters must be added dynamically to an on-screen display. 3. On-screen rows must be dynamically moved, disabled or enabled. The Z86129 supports manual screen mapping and display control commands to handle these special applications. These commands allow each of the 16 physical rows of character memory implemented in the device to be mapped to any of 15 display row positions. Additionally the 16 physical rows can be set for single or double height and independently enabled and disabled. Manual! row mapping and control commands should only be used in the POPSET OSD mode. The procedure for manual row control is as follows: 1. Use the POPSET command to select the OSD pop-up mode. This command prepares the Z86129 for OSD input, clears the row maps and erases character mem- ory. 2. Select a physical row (0 through 15) using the PHY ROW SEL command. 286129/130/131 NTSC Line 21 Decoder All of the rows could then be made to pop onto the screen immediately by setting their enable bits. The following example uses manual row mapping and con- trol to write three rows of characters. The first row is a Dou- ble-High row that is enabled before the characters are sent, thereby allowing the characters to paint onto the screen as they are received. The second and third row are not ini- tially mapped or enabled when the characters are written. They are then mapped and enabled after a two second pause. A new row is then created off-screen to replace the third row. Finally, after a2 second pause the second row is moved to a new display row, the original third row is disabled and the new third row is mapped and enabled. OSD Command Function {33} *select POPSET mode {A1,00} *select physical row 0 {A4,31} *map it to display row 1, enable, double {A2,02} *cursor to 1 {A3,02} *green *Double-Wide text The First Row {A1,01} select physical row 1 {A2,00} cursor to 0 {A3,0a} *yellow *single wide text These two rows are {A1,07} *select prow 7 {A2,00} *cursor to 0 {A3,06} cyan *Single wide text anabled after a pause {A6,40} wait 2 seconds 3. Use the WRITE MAP command to set the display row (1 through 15), Double-High bit, and enable bit of the *do the map and enable selected physical row. The CURSOR SET, WRITE CHAR and WRITECHARD {41,01} __*select physical row 1 commandsare used to position the cursor and write the char- {A4, 16} acters in the selected physical row. {A4, 16} *map it to display row 6, enable A physical row may be re-selected at any time to change > its characters, row maps, Double-High mode or enable sta- (A1,07} Select prow / tus. For example, it may be desirable to load several rows {A4, 17} map it to drow 7, enable of characters into physical memory without enabling them. prepare a new row to replace row 7 DS007200-TVX0199 PRELIMINARY 51286129/130/131 NTSC Line 21 Decoder ON-SCREEN DISPLAY (Z86129 ONLY) (Continued) OSD Command Function {A1,08} *select physical row 8 {A2,00} *cursor to 0 {A3,06} *cyan *Single wide text moved after a pause {A6,40} *wait 2 seconds *make the modified display {A1,01} *select physical row 1 {A4,1A} *map it to display row 10, enable, double {A1,07} *select prow 7 {A4,00} disable it {A1,08} *select prow 8 {A4,1B} *map it to row 11,enable, double ZiLOG 52 PRELIMINARY DS007200-TVX0199ZiLOG DEMONSTRATION PROGRAMS Communicating with the Z86129/130/131 Communications with the Z86129/130/131 is accom- plished using its serial communications interface. Through hardware setup, this interface can be configured into either of two serial protocols, I?C or SPI. The details of hardware setup have been provided in the Serial Communications In- terface section, page 24, and are not covered here. It is as- sumed that the user is familiar with the serial protocol re- quirements. Note: In the following descriptions means press the Enter key. An asterisk (*) signifies that everything fol- lowing the asterisk in that line is a comment. ?C Operation The Z86129/130/131 is configurable as an I7C slave device. The PC communicates with the Z86 129/130/131 through its parallel port. These programs are not intended as examples of how to program the application but are only provided as a means of illustrating the serial control process and the ca- pability of the Z86129/130/131. The three programs available are titled ICO, SCRIPTI and XDSCAP. These programs have been compiled and run sat- isfactorily with the Z86129/130/131 in a test board. Com- piled versions are available on disk. Contact your local ZiLOG sales office for further information on these pro- grams. ICO Program This program sends one byte to the Z86129/130/131 with- out checking the status of the READY bit. The program re- turns the contents of the Serial Status (SS) Register after the command has been entered. When the program is active the screen displays: HC Command Byte > The user may enter any valid one byte command such as FBh (Reset) or 00h (NOP) and then hit the ENTER key. The screen then displays the byte entered and the SS register contents as follows: liC Byte = 00 liC Status = 83h This example presents that the NOP command was entered. The SS register contents, 83h, indicates that the RDY, FLD and LOCK bits are High indicating that the serial port is ready for further input, that the input video signal was in Z86129/130/131 NTSC Line 21 Decoder Field 1 at the time the status was read and that the part is operating in video lock mode. The IICO program is exited by entering a Control+C (C) character. For example, entering the following single byte commands would: Reset the part FB, FC, 00 Set the part to CC1 display mode, 17h decoder ON(Z86129 only). Change to the XDS Graze display mode, 23h 16 Second Timer ON(Z86129 only). Return to the CC1 display mode, 17h decoder ON(Z86129 only). The commands that control most of the display capability of the Z86129 are all one byte commands which can be en- tered using the IICO program. These commands are tabu- lated below for convenience. General Commands Serial Command Command Code RESET FBh, FCh, 00h NOP 00h SSB FFh,...FFh,FEh Caption/Text Display Mode Commands (Z86129 only) CPTX = 10h-1Fh. Caption and Text display mode com- mands. These commands select the desired Line 21 data stream (Closed Caption or Text) for display. See the Com- mands section, page 29, for a complete description of the CPTX Display Mode command. Bit CM7 CM6 CM5 CM4 CM3 CM2 CM1 CMO 0 0 0 1 FLD | LANG | CPTX|DONOF RAV RAV RAW RAV RAW RAW RW RW Figure 39. CPTXCaption/Text Display (CPTX = 10h1Fh) Caption and Text display commands are one byte com- mands. A data channel can be selected for display with the display either enabled (DEC ON) or disabled (DEC OFF). All these commands turn off an active XDS display mode. The following table summarizes the devices Caption and DS007200-TVX0199 PRELIMINARY 53286129/130/131 NTSC Line 21 Decoder ZiLOG DEMONSTRATION PROGRAMS (Continued) Text display modes and the proper command code to acti- vate them. CPTX Command Code CPTX Command Decoder ON Decoder OFF CC1 17h 16h CC2 15h 14h CC3 1Fh 1Eh Cc4 1Dh 1Ch T1 13h 12h T2 1th 10h T3 1Bh 1A T4 19h 18 XDS Display Mode and 16 Second Erase Timer Commands(Z86129 Only) XDS DISP = 20h-27h. XDS Display commands are one byte commands. These commands control the selection of XDS display modes and the state of the 16 Second Erase Timer. The 16 Second Erase Timer is active only for Cap- tion and XDS display modes. The 16 Second Erase Timer has no affect on TEXT mode displays. XDS Display XDS Display Command Code Command 16 Sec TmrON_ 16 Sec Tmr OFF XDSG 23h 27h XDSF 21h 25h 16 SECOND ERASE TIMER 20h 24h Note: Changing the ON/OFF state of the 16 Second Erase Timer has no affect on the current display mode in operation. SCRIPTI Program This program is designed to send any number of one or two byte commands to the Z86129/130/131. The list of com- mands to be executed are contained in Script files that have the extension .SER. Examples of such files are is presented in the following paragraphs. SCRIPTI can be used to control the display modes in the same manner as the IICO program except that the one byte command to be sent must be in a Script file. For example a file called CC1.SER (Z86129 only) would contain the one byte command: {17}* send CC1, decoder ON The program is invoked by typing: SI File_name Note: File_name without the .SER extension. The screen displays: EEG CCD2 Serial Interface Script Player Version X.XX Slave Address is 28h Script File Done The responding slave address is reported to the screen. When all the commands in the file have been successfully sent to the Z86129/130/131, the PC returns to the system prompt. The program checks the RDY status before sending each byte. If, during the entry of a command, the RDY bit is not found to be a one after an extended wait, the program re- ports the contents of the SS register and then continue checking for RDY. Script Files Script files can be generated to perform all of the setup and control functions required to use the part in an application. The script files that follow are examples of such files used to setup the Z86129/130/131 for different operating condi- tions. Some of the files contain only a single command while others include several commands. The user should re- fer to the Commands and Internal Registers sections, pages 29 and 33, respectively, for details. Although the following examples are organized according to a particular register, some of the files contain information for several registers. Configuration Register Script Files (OSD-Related Configurations Are For 286129 Only)) COMMAND FileName {xxh,yyh} Comments FIGM {c0,02} *set config to mono FIGVH {c7,00} *set INT Mask register clear {c0,0c} *set config to ext VLK & HLK {83,12} *bit set ext V pulse for pos {c2,1d} center h display FIGN {c0,00} *set config back to default state {c2,26} *return h display to center FIGPAL {c1,d2} change display register to C15 &T15 54 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder COMMAND The program is invoked by typing: FileName {xxh,yyh} Comments xdscap {c3,ff} nan gs 13 os register to When the program is invoked, the PC screen displays: {c0,01} *set config register to TVS=1. EEG CCD2 XDS Data Recovery Test Program Changes VBI line to L22 PAL. Display Register Script Files (286129 Only) COMMAND FileName {xxh,yyh} Comments DN {c1,c0} *set display register to default conditions DT1 {c1,ct} *set display register to TEXT drop shadow DT2 {c1,c2} *set display register to TEXT 15 lines per row DT3 {c1,c3} set display register to TEXT drop shadow, 15 lines DT3A {c1,c3} *15 tv lines and drop text {c3,dd} *13 rows of text, base row 13 DCE {c1,e0} *disable CAP Enhanced mode H Position Register Script Files (Z86129 Only) Version x.xx Slave Address is 28h The responding slave address is reported to the screen. When communication is acknowledged, the program dis- plays all XDS data recovered from those packets that were enabled through the XDS Filter command. For example: {01,03}Current Program{OO}OF, 7F}....etc The ASCII characters are presented as ASCII characters while the non-printing characters are displayed by their Hex value within curly braces. Byte pairs, such as Class, Type, are presented as pairs within the curly braces, separated by a comma, for example, {01,03}. If no data is received within approximately 45 seconds, the program times out, reports Data Not Available, and exits. Note: The XDSCAP program can also be exited by entering a Control C (C) character. COMMAND FileName {xxh,yyh} Comments . . . . XDS Filter Register Script Files HPOSC {c2,26} *center box HPOSR {c2,1d} *move box right 2.97 us (from COMMAND center) FileName {xxh,yyh} Comments HPOSL {c2,29} *move box left 0.99 us (from FILA {c5,1F} *set xds filter to all center) FILO {c5,00} *set xds filter to none. Turns HPOSCB _ {c2,a6} *center box & make Box Blue off xds recovery FILCA {c5,01} *set xds filter to all current Text Position Register Script Files (286129 Only) class FILC {c5,41} *set xds filter to current, in COMMAND band class FileName {xxh,yyh} Comments FILFA {c5,02} *set xds filter to all future TPOS15 {c3, ff} text, base row 15, 15 rows class TPOS13 {c3,fd} *text, base row 15, 13 rows FILCH {c5,04} *set xds filter to channel TPOS10 {c3,fa} *text, base row 15, 10 rows class TPOS10A {c3,ba} *text, base row 11, 10 rows FILM {c5,08} *set xds filter for misc. info FILTIME {c5,28} *set xds filter time only FILVCR {c5,9e} *set xds filter ver info XDSCAP Program This program performs the applications task of XDS data recovery. XDS recovery must first have been enabled through the appropriate XDS Filter command. Examples of Script files for setting the XDS Filter Register are provided on page 55. Using Interrupts Interrupts involve the use of the Line 21 Activity Register, the Interrupt Request Register and the Interrupt Mask Reg- ister. The Z86129/130/131 must be configured for VLK in- ternal so that the V;\/INTRO signal, Pin 13 is an output pro- DS007200-TVX0199 PRELIMINARY 55Z86129/130/131 NTSC Line 21 Decoder ZiLOG DEMONSTRATION PROGRAMS (Continued) viding the interrupt output signal. There isno INTRO output in the Z86130 for PB output. The interrupt status can be polled through bit D, of the Se- rial Status (SS) Register if the interrupt signal cannot be used. Interrupts are disabled when the Interrupt Mask Register has been set to all zeros. Conversely, interrupts are enabled by setting one or more of the active bits to a one. When en- abled, the INTRO signal becomes a one when the enabled mask event(s) becomes active. If more than one event has been activated, the Interrupt Request Register must be que- ried to determine which event has occurred. The DLE and EOF interrupts are cleared at the end of the field in which they occurred. Interrupt Mask Register Script Files COMMAND FileName {xxh,yyh} Comments INTRD {c7,02} set DLE active INTRLK {c7,08} *set dLOK active INTRX {c7,20} *set dXDS active INTRC {c7,12} *set DLE & dC/T active SPI Operation The serial port of the Z86129/130/131 may be configured to operate as an IC or SPI interface. The Z86129/130/131 always acts as the slave device with the master generating the required clock and input data signals. Two C language programs available from ZiLOG enable a PC to perform as the IC or SPI master device of an application. The PC com- municates with the Z86129/130/131 through it's parallel port. These programs are not intended as examples of how to program the application but are only provided as a means of illustrating the serial control process. The two programs available, SEROUT and SCRIPT are the SPI equivalent to the I?C programs IICO and SCRIPTI, re- spectively. SEROUT Program This program sends one byte to the Z86129/130/131 with- out checking the status of the READY bit. The program re- turns the contents of the Serial Status (SS) Register after the command has been entered. When the program is active the screen displays: SPI Command Byte The user may enter any valid one byte command such as 00h (NOP) and then hit the ENTER key. The screen then displays the byte entered and the SS register contents as fol- lows: SPI Byte = 00 SPI Return Val = 83h This example shows that the NOP command was entered. The SS register contents, 83h, indicates that the RDY, FLD and LOCK bits are ones indicating that the serial port is ready for further input, that the input video signal was in Field | at the time the status was read and that the part is operating in video lock mode. When this program is used, a modified version of the RE- SET can only be used. It is entered as two, one-byte com- mands; FBh and 00h. The SEROUT program is exited by entering a Control C (*C) character. Script Program This program is designed to send any number of one or two- byte commands to the Z86129/130/131. The list of com- mands to be executed are contained in Script files that have the extension .SER. The Script files used with the PC ver- sion, SCRIPTI, can be used with this program. The program is invoked by typing: SI File_name Note: File_name without the .SER extension. The screen displays: EEG CCD2 Serial interface Script Player Version x.xx Script File Done When all the commands in the file have been successfully sent to the Z86129/130/131, the PC returns to the system prompt. The program checks the RDY status before sending each byte. If, during the entry of a command, the RDY bit is not found to be a one, the program reports the contents of the SS register and then continues checking for RDY. Programs only for the 286130 The Z86130 is designed specifically for the V-Chip appli- cations. Most of the demo programs can be run as described, but the Z86130 must have its own demo programs, includ- ing the demo programs described in the previous section for accessing the program-blocking specific registers in it. For 56 PRELIMINARY DS007200-TVX0199ZiLOG 286129/130/131 NTSC Line 21 Decoder example, the registers from address 08h to OEh in the Z86130 are not available in the Z86129/131. There are 3 programs available for the 286130: 1. READ.EXE: Reads the content of the register from address 08h to 0Eh in the Z86130. It runs under DOS prompt and must type in the address to read after exe- cuting this program. 2. WRITE.EXE: Writes a byte data to the register from address 08h to OEh in the 286130. It runs under DOS prompt and must type in the address to write the data after executing this program. VCHIP.EXE: This program runs under Window95 and provides GUI environment to access the registers in the address from 08h to 0OEh. This demo program is specially developed to demonstrate how easy the V- Chip function can be implemented with the Z86130. DS007200-TVX0199 PRELIMINARY 57286129/130/131 NTSC Line 21 Decoder ZiLOG APPLICATION INFORMATION The recommended schematic, component placement, and PCB layout for a single sided DIP design are provided in the following figures. EMI and noise in the video frequency range is kept to an absolute minimum by running the ground plane underneath the entire Z86129/130/131 package length. This design is recommended for both SOIC and DIP package styles. It is not presented in the following applica- tion information, but SMS (pin 6) must be grounded for PC applications. Please contact ZiLOG, sales office in the event that there is any incompatibility or question in the following information: 13 14 12C Bus 15 oe 4y 6 | Sy C4 9 C2 C5 8 7 GN BL SEN HIN SMS l VIDEO =) i 286129 VivINTRO R18 _ SDA G}25 SCK BL 3 5 SEN SDO sms BOX[17 gs #8V HIN vpp [12 Lt LPF CAI CBI= csync RREF|10_ > = VIDEO RI oe R2 t Figure 40. Z86129 Application Circuit with 7c V. Vss(A) mimi c1C__ R2-{_} c2C__) R3-L_k- C4) cs 8 SDAOUT . ViyiNTRO !, ) ey go CA1C CB1C@_) U1 ) Figure 41. 286129 Application Circuit with 2c Component Value Units 786130/134 R1 10 KW INTRO R3 R2 470 WwW 13 }py = XOUTI3 al R3 6.8 KW 14 ISDA 1 C1 01 F -C Bus 45 YIEISR2 = Ll SCK IN| C1 C2 0.068 uF 4 Isen wo c8 560 pF SMS uyseLl2 7 +5V C5 0.1 uF 5] = 9 CA1== CB1=& CA1 0.1 uF a7 We LPF in CB1 0.4 uF j-__8 CSYNC RREF|10 L1 bead TBD = R4 7 Nie nt U1 286129 N/A at VV C4 IC SEL VSS(A) L 1 1 Figure 42. Z86130/131 Application Circuit with 2c 58 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder Component Value Units SEN sDO R1 10 KQ SCK SDA R2 22 MQ R3 470 KQ : : R4 470 YQ =e ey) R5 6.8 KQ VIDEO C1 10 pF i C3 0.1 uF - * 560 pF ome 0.1 uF Vss C6 6800 pF C7 0.068 LF CA1 0.1 LF CB1 0.1 uF Li bead TBD Y1 32.768 kHz U1 286130/131 N/A CT c2 Ct Ou R3 + L1 -3oe- Cc a) R4 {+ cs OR s R1 t+ c7C__ Figure 43. Z86130/131 Application Circuit with I2C DS007200-TVX0199 PRELIMINARY 59Z86129/130/131 NTSC Line 21 Decoder ZiLOG PACKAGING INFORMATION 3 1 SO OL oo q El DO OP DENYS Nu 8 Figure 44, 18-Lead DIP Package Diagram ABABA MOD pnw E CUuaeeTag Al 1 . A ~othe ; - 8B SEATING PLANE 0-8" DETAIL A sympo. {MILLIMETER INCH MIN MAX MIN MAX Al 0.51 0.81 020 032 a2 325 | 3.43 128 135 B 0.38 0.53 015 021 BL 114 1.65 045 065 c 023 | 038 009 215 D 22,35 | 23.37 880 320 = 762 | 813 300 320 EL 622 | 648 245 255 eg 2.54 TYP 100 TYP eA 7.87 | 8.89 310 350 L 3.18 3.81 125 150 Qt 1.52 1.65 060 065 s 0.89 LS 035 065 CONTROLLING DIMENSIONS : INCH MILLIMETER INCH | STMeOL MIN WAX win | Max | A | _2.40 2.65 | 0.096 | 0.104 | al 0.10 0.30 | 0.006 0.012 a2 2.24 2.44 | 0,088 | 0.096 8 0.36 0.46 | 0.04 0.018 C 0.23 0.30 0.009 | 0.012 | Df tt40 11.75 0.449 | 0.463 E 7.40 7.60 0.291 =} 0.299 1.27 TYP 0.050 TYP H 10.00 10.65 | 0.394 0.419 A 0.30 0.50 , 0.012 | 0.020 L 0.60 1.00 | 0.024 0.039 Ql 0.97 1,07 | 0.038 0.042 CONTROLLING DIMENSIONS : MM LEADS ARE COPLANAR WITHIN .004 INCH. Figure 45. 18-Lead SOIC Package Diagram 60 PRELIMINARY DS007200-TVX0199286129/130/131 ZiLOG NTSC Line 21 Decoder ORDERING INFORMATION Z86129/130/131 (12 MHz) For fast results, contact your local ZiLOG sales office for 18-Pin DIP 78612912PSC assistance in ordering the part desired. 28613012PSC 28613112PSC 18-Pin SOIC 28612912SSC 28613012SSC 28613112SSC CODES Package P = Plastic DIP S = Plastic SOIC Temperature S = 0C to + 70C Speed 12 = 12 MHz Environmental C = Plastic Standard Example: Z 86129 12 P SC __ isa Z86129, 12 MHz, DIP, 0C to +70C, Plastic Standard Flow L_ Environmental Flow Temperature Package Speed Product Number ZiLOG Prefix DS007200-TVX0199 PRELIMINARY 61286129/130/131 NTSC Line 21 Decoder ZiLOG Pre-Characterization Product The product represented by this document is newly introduced and ZiLOG has not completed the full characterization of the product. The document states what ZiLOG knows about this product at this time, but additional features or nonconformance with some aspects of the document may be found, either by ZiLOG or its customers in the course of further application and characterization work. In addition, ZiLOG cautions that delivery may be uncertain at times, due to start-up yield issues. Development Projects Customer is cautioned that while reasonable efforts will be employed to meet performance objectives and milestone dates, development is subject to unanticipated problems and delays. No production release is authorized or committed until the Customer and ZiLOG have agreed upon a Product Specification for this product. 1999 by ZiLOG, Inc. All rights reserved. Information in this publication concerning the devices, applications, or technology described is intended to suggest possible uses and may be superseded. ZiLOG, INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT. ZiLOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. Except with the express written approval of ZiLOG, use of information, devices, or technology as critical components of life support systems is not authorized. No licenses are conveyed, implicitly or otherwise, by this document under any intellectual property rights. ZiLOG, Inc. 910 East Hamilton Avenue, Suite 110 Campbell, CA 95008 Telephone (408) 558-8500 FAX (408) 558-8300 Internet: http://www.zilog.com 62 PRELIMINARY DS007200-TVX0199