Application Note Using the eZSelect Line 21 Data Decoder Reference Design AN004800-TVC1299 ZiLOG WORLDWIDE HEADQUARTERS * 910 E. HAMILTON AVENUE * CAMPBELL, CA 95008 TELEPHONE: 408.558.8500 * FAX: 408.558.8300 * HTTP://WWW.ZILOG.COM This publication is subject to replacement by a later edition. To determine whether a later edition exists, or to request copies of publications, contact ZiLOG Worldwide Headquarters 910 E. Hamilton Avenue Campbell, CA 95008 Telephone: 408.558.8500 Fax: 408.558.8300 www.ZiLOG.com Windows is a registered trademark of Microsoft Corporation. Information Integrity The information contained within this document has been veried according to the general principles of electrical and mechanical engineering. Any applicable source code illustrated in the document was either written by an authorized ZiLOG employee or licensed consultant. Permission to use these codes in any form, besides the intended application, must be approved through a license agreement between both parties. ZiLOG will not be responsible for any code(s) used beyond the intended application. Contact the local ZiLOG Sales Ofce to obtain necessary license agreements. Document Disclaimer (c) 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 ZiLOG, use of information, devices, or technology as critical components of life support systems is not authorized. No licenses or other rights are conveyed, implicitly or otherwise, by this document under any intellectual property rights. AN005000-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design iii Table of Contents Overview ...................................................................................................1 System Configuration ..............................................................................3 Hardware Overview of the Reference Circuit Design ............................4 Hardware Installation and Jumper Settings .......................................... 10 Overview of the Z86230/Z86229 Demo Program using Windows 98/95 .......................................................................12 Software Installation ............................................................................... 12 Z86230/Z86130 Program Blocking .......................................................... 14 Z86129/Z86229 Program Blocking .......................................................... 15 Device I2C Address Selection ................................................................. 16 Opening and Executing I2C Script Files ................................................. 17 Action Window ........................................................................................ 18 Differences between the Z86129, Z86229, Z86130, and Z86230 .........19 Summary ................................................................................................19 Appendices A Glossary of Terms for Programming Blocking Devices ................20 B Line 21 Data Decoding Technical References .................................21 C V-Chip and Data Decoding Web Links ............................................21 Acknowledgement: Allen Chang, Principal Engineer AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design iv List of Figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 System Block Diagram of the Z86229/Z96129 . . . . . . . . . . . . . . . . . . . . System Block Diagram of the Z86230/Z96130 . . . . . . . . . . . . . . . . . . . . Z86230/229 System Configuration for Demo Board . . . . . . . . . . . . . . . Video Front end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Video/RGB Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Power Supply & PC Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 2 4 5 6 7 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Z86129/229 Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Z86130/230 Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 eZSelect Data Decoder Demo Board . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Z86230/Z86229 Demo Program Main Screen . . . . . . . . . . . . . . . . . . . . 13 Z86230/130 Program Blocking Selection Screen . . . . . . . . . . . . . . . . . 14 Z86229/129 Program Blocking Selection Screen . . . . . . . . . . . . . . . . . 15 Device Selection Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Open I2C Script File Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 Example Action Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 List of Tables Table 1 Jumper Settings for the eZSelect Demo Board . . . . . . . . . . . . . . . . . . 11 AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 1 Using the eZSelect Line 21 Data Decoder Reference Design Overview The eZSelect Reference Design Application Note applies to all ZiLOG eZSelect VBI (Vertical Blanking Interval) decoders including the Z86129, Z86130, Z86229, and Z86230. These chips come with a demonstration board based on the reference design so TV manufacturers can begin developing applications immediately. The demo program helps manufacturers design and develop rmware quickly and easily. The Z86129 and Z86229 eZSelect VBI decoders control closed captioning and XDS data decoding. The Z86130 and Z86230 are used primarily for program rating decoding and have intelligence built in so the device can block the video signal according to the selections preset by end-users according to content advisory ratings. The eZSelect VBI decoder design requires video base-band signal input. The output can be either of the following signals: * * A video signal connecting directly to a TV monitor or R, G, B, and Box (blanking) signal output to other devices or circuits When output is a video signal connecting directly to TV monitor, closed caption and extended data service (XDS) information such as the TV station name, program length, program title, current date and time information can be displayed on TV screen as dened by the Z86129 and Z86229. See Appendix A for program blocking terminology. The eZSelect reference design also includes the external I2C connection as well as HSYNC and VSYNC outputs. This design not only provides stand-alone evaluations of ZiLOGOs Z86129, Z86130, Z86229, and Z86230 devices, but can also be used as an add-on board for the customerOs application. Figures 1 and 2 are system block diagrams of the Z86129/Z86229 and Z86130/Z86230 respectively. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 2 Z86229 / Z86129 Line 21 Data Decoder w/ OSD R G B BOX NTSC Encoder Video Output I 2C Main Video Main Host Microcontroller Figure 1 System Block Diagram of the Z86229/Z86129 Z86230 / Z86130 Line 21 V-chip Decode I 2C Main Video Main Host Microcontroller Figure 2 System Block Diagram of the Z86230/Z86130 ZiLOG provides a Demonstration Board as well as a Demo Program using Windows 95/98 to explore all the features of an eZSelect VBI decoder for data control and other design functions. The demo program sends commands from a PC through an RS-232 cable to the demo board. The communication between the PC and the demo board is through a 2-wire I2C bus interface. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 3 This program can be used in two ways. * * Demonstrate the capabilities of the data decoding device Connect the PC as the host controller to control the chips using I2C Script les (See section 7.5 in the Z86230 Product Specication for details.) See Appendix B for technical references. Key Features of the Data Decoder Design The eZSelect VBI decoder design is a 2chip design so the user can evaluate ZiLOG line 21 decoders in any of the following combinations: 1 2 3 4 5 6 7 U13 Z86129 Z86229 empty empty Z86129 Z86229 Z86229 U14 empty empty Z86130 Z86230 Z86230 Z86130 Z86230 The eZSelect Reference Design also includes * * * * * Direct reset control (SW1) for theZ86230 Program Block LED (LED1) to indicate hardware program blocking Additional HSYNC and VSYNC outputs for applications Crystal or HSYNC timing support for Z86130/Z86230 HSYNC source which can be selected from U2 or Video Input System Configuration The system conguration required by the eZSelect VBI decoder reference design is exible and supports many different applications. It is 100% backward compatible with ZiLOGOs older Z86129 demo board. Figure 3 illustrates a typical system conguration with the Z86230/229 Demo Board used to develop TV manufacturer rmware. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 4 TV Monitor Video Source (VCR ...) Video Out / Lum Video In Vsync Output Z86230/229 Demo Board System Configuration Hsync Output 9VAC Adapter On/Off Power LED SW Box LPT1 Printer Port DB25 Red Computer Z86230 / 130 Z86229 / 129 Green Blue I2C External Connection Figure 3 External Applications (PIP, Set-Top Box..) Z86230/229 System Conguration for Demo Board Hardware Overview of the Reference Circuit Design The reference circuits for ZiLOGOs eZSelect program data decoding devices consist of ve main functional blocks. Figures 4 through 7 are schematics of the main circuits on the Demo Board. Figure 9 is a photo of the Demo Board. * * * * * Video Front end Video/RGB output Power Supply & PC Interface Z86129/229 Module Z86130/230 Module AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 5 Figure 4 Video Front end AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 6 Figure 5 Video/RGB Output AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 7 Figure 6 Power Supply & PC Interface AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 8 Figure 7 Z86129/229 Module AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 9 Figure 8 Z86130/230 Module AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 10 Figure 9 eZSelect VBI Decoder Demo Board Hardware Installation and Jumper Settings Hardware Installation To install the eZSelect VBI decoder demo board and verify the boardOs operation, use the following procedure. Refer to Table 1 for correct jumper settings. 1. Insert the video source (video composite signal) to J1 (Video IN). 2. Connect J3 (Video out/LUM) to the TV monitor. 3. Plug a 9V adapter into J7 (9VAC adapter comes with the board). 4. Connect the DB25-pin cable to the PC printer port (LPT1). 5. Be sure the Z86129/Z86130/Z86229/Z86230 devices are in the appropriate U13 and U14 sockets depending on the conguration. Refer to Table 1. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 11 6. Flip the On/Off Switch (SW2) to ON. The red Power LED lights up. 7. Observe the video on the TV monitor from J3 to verify that the board is working properly. 8. If necessary, use an oscilloscope to check signals on Test Points (TP) which indicate voltages, incoming video and I2C signals. 9. Install the Demo Program from the Demo Software disk onto the PC. On the Windows screen, select the items to test, then verify the features. (Refer to the following section for a detailed description of the Demo Program.) Table 1 Jumper Settings for the eZSelect Demo Board NC (No Connect) Jumper Pin 1-2 Pin 2-3 JP1 HSYNC Source Selection Video IN LM555 (default) JP2 HSYNC Polarity Negative Positive (default) JP3 VSYNC Polarity Positive (default) Negative JP6 I2C Clock Selection To Printer Port (default) W/ 4.7K pull-up resistor Used for older Z86129 demo board cable JP7 I2C Data Selection To Printer Port (default) W/ 4.7K pull-up resistor Used for older Z86129 demo board cable JP8 I2C Address Selection for Z86229 28h (W) (default) 2Ah (W) JP9 VSYNC IN or INTRO OUT Interrupt Output VSYNC Input (default) JP10 PB or INTRO OUT PB Output (default) Interrupt Output JP11 Timing Reference Selection HSYNC Input Crystal (default) (32.768KHz) JP12 Reset Selection for Z86230 Reset Circuit (default) From Printer Port (Z86130) JP13 HSYNC IN Selection Use HSYNC Input Use Crystal (default) 28h (W) 2Ah (W) (default) JP14 I2C Address Selection for Z86230 AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 12 Table 1 Jumper Settings for the eZSelect Demo Board Jumper Pin 1-2 JP15 Z86230 Ground Selection For Z86230 (default) Pin 2-3 NC (No Connect) For Z86130 JP4: The 6-pin connector is used to connect the external application such as Picture-in-Picture circuit or Digital Set-Top Box, etc. JP5: The 10-pin (2x5) connector is used to connect the PC and the Z86230/Z86229 demo board with the original ribbon cable. Overview of the Z86230/Z86229 Demo Program using Windows 98/95 The Z86230/Z86290 Demo Program using Windows 98/95 supports the eZSelect data decoder Reference Design. Because the eZSelect VBI decoders are application specic devices and not like microcontrollers, there are only two ways to communicate with them: the I2C and SPI buses. The Demo Program acts as the controlling rmware and uses a PC as the main host controller to send commands to the Z86230/Z86229 devices. The demo program also conveys data from the reference design to the PC monitor. The current version of the Demo Program supports Windows 95/98; the Windows NT version is scheduled for release in Q1 2000. The following procedure describes how to install and use the Demo Program. Software Installation The Demo Program is contained on 3 disks. Insert Disk 1 and run OSetup.exeO to start the installation. Follow the instructions on screen for the other 2 disks to nish the installation. When installation is complete, click the OZ86230db.exeO icon to run the program. The following screen appears. See Figure 10. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 13 Figure 10 Z86230/Z86229 Demo Program Main Screen The Action Window section of the screen displays the following message to indicate that the program has been started successfully: OZ86230/Z86229 Demo Program StartingEO The Status Bar at the bottom of the screen sets the I2C addresses to their default values. The default for Z86229 is 28h and the default for Z86230 is 2Ah. The program detects the parallel port I/O address to be 378h. Select the Z86230/Z86130 tab to begin using the program to communicate with the reference board and evaluate features. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 14 Z86230/Z86130 Program Blocking Figure 11 is a screen capture of the Z86130/230 program blocking feature selection screen. Figure 11 Z86230/130 Program Blocking Selection Screen Use this screen to * Write and read MPAA and TV-PG rating systems by clicking on the OUpdate V-Chip SettingO and OReadO buttons. * * Display in real-time, program rating information Display in real-time, raw data from line 21 on both even and odd elds of the video signal AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 15 Z86129/Z86229 Program Blocking Figure 12 is a screen capture of the Z86129/229 program blocking feature selection screen. Figure 12 Z86229/129 Program Blocking Selection Screen This section demonstrates several functions including enabling Closed Caption, XDS, software reset and displaying OSD sample screens. It also displays, in real time, data for line 21. See Appendix B for technical references. The I2C Script Display window shows the current I2C script le and the contents of the script. These displays help the user understand which types of commands are issued in the script to generate these functions. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 16 The Real-Time Line 21 Data Display window lists Line 21 XDS activities. This screen also displays program rating raw data, for example {01, 05} {68, 65}. Device I2C Address Selection Because the Z86230 and Z86229 have 2 selectable I2C addresses, each eZSelect VBI decoder that is inserted on the demo board must be preset to the correct I2C address. Figure 13 is a screen capture of the Device Selection screen. Use this screen to congure devices and set the correct I2C addresses. Figure 13 Device Selection Screen Any combination of devices on the board can be selected. The Status Bar at the bottom of main window displays current device selections after exiting this screen. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 17 Opening and Executing I2C Script Files The user can build and load I2C script les quickly by selecting the Open I2C Script File tool. Refer to Figure 14. Figure 14 Open I2C Script File Tool AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 18 Action Window The Action Window tracks the entire programming session so the developer can track the history of command events. In both the Z86229/Z86129 screen and Z86230/Z86130 screen, the Action Window is always displayed in the lower area of the screen to show the current command event. Figure 15 is an example of an Action Window. Figure 15 Example Action Window AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 19 Differences between the Z86129, Z86229, Z86130, and Z86230 Because Zilog has continued to improve and expand its series of decoding devices over the years, many of the enhancements and improvements affect only certain devices. The following table lists features that can help customers select the correct device for a specic application. See Appendix C for applicable web links. Z86129 OSD Display (RGB output) for Closed Caption Z86130 * Z86229 * * Hardware Reset (pin 4 NRST) Software Reset (I2C commands) * * * * MPAA & TV-PG Rating Systems * * * * Up to 32 bytes of I2C writing without checking ORDYO bit from Serial Status Register (SSR) * * * * * Dedicated INTRO (Interrupt) output HSYNC input or Crystal (3.57 KHz) selection for timing reference * * Supports two I2C slave addresses selection PB (Program Blocking) signal output * * Canadian Rating Systems XDS Data Decoding Z86230 * * Summary This eZSelect Reference Design Application Note was written to give application engineers a quick understanding of the main features of ZiLOGOs eZSelect decoder devices and speed up the design cycle. For more information regarding the reference design, the latest version of the Demo Program, or designing questions, please contact the local ZiLOG sales ofce or send e-mail directly to achang@zilog.com for an immediate response. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 20 Appendix A Glossary of Terms for Programming Blocking Devices Extended Data Service (XDS) XDS is a broadcaster-generated, viewer-controlled information service that allows broadcasters to provide programming information that viewers can access whenever needed. XDS is based on the same technology and circuitry as the government-mandated, closed-captioning capability available in 13 inch or larger television sets since July 1, 1993. Line 21, Fields 1 and 2 Closed captioning and XDS are both broadcast on line 21 of the vertical blanking interval (VBI). Closed captioning information occupies eld 1 of line 21 and can occupy eld 2 of the same line when extra data space is needed. XDS only uses eld 2 of line 21. Television Data Systems Subcommittee (TDSS) CEMA (Consumer Electronic Manufacturers Association) created the TDSS to develop a closed captioning system for TV receivers. The subcommittee later developed Extended Data Service (XDS). Vertical Blanking Interval (VBI) The VBI occupies the 21 blank lines between TV elds, transmitted at the same 60-elds-per-second rate. These blank lines are used to send ancillary data, such as closed captioning and other digital text information. AN004800-TVC1299 Application Note eZSelect Line 21 Data Decoder Reference Design 21 Appendix B Line 21 Data Decoding Technical References 1. Doc R43-98-16-E (744r1v25) Date: October 29, 1998 Draft EIA-744-A, Transport of Content Advisory Information using Extended Data Service (XDS) 2. Draft EIA CEB1-A (CB1r1v27) Date: October 29, 1998 Recommended Practice for Program Ratings and Content Advisories 3. EIA Standard, EIA-744Date: October 1997 Transport of Content Advisory Information Using Extended Data Service (XDS) 4. EIA Standard, EIA-608Date: September 1994 Recommended Practice for Line 21 Data Service 5. ZiLOGOs OZ86129/130/131 Stand-Alone NTSC Line 21 Decoder Multiplexes Data Channels, Conrms to EIA-608 SpecicationO (DS97TEL0204) 6. ZiLOGOs OZ86229 NTSC Line 21 CCD DecoderO (DS005101-TVX0199) 7. ZiLOGOs OZ86230 Advanced Violence Blocking and NTSC Line 21 XDS Preliminary Product SpecicationO (PS000400-TVC0499) Appendix C V-Chip and Data Decoding Web Links 1. http://www.fcc.gov/vchip/ 2. http://www.cemacity.org/gazette/les/vchip.html 3. http://www.zilog.com/products/tv.html AN004800-TVC1299