ZiLOG W
ORLDWIDE
H
EADQUARTERS
• 910 E. H
AMILTON
A
VENUE
• C
AMPBELL
, CA 95008
T
ELEPHONE
: 408.558.8500 • F
AX
: 408.558.8300 •
HTTP
://
WWW
.Z
I
LOG.
COM
Application Note
Using the eZSelect Line 21
Data Decoder Reference Design
AN004800-TVC1299
AN005000-TVC1299
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 veriÞed 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 OfÞce to obtain necessary license agreements.
Document Disclaimer
© 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.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
iv
List of Figures
Figure 1 System Block Diagram of the Z86229/Z96129 . . . . . . . . . . . . . . . . . . . . 2
Figure 2 System Block Diagram of the Z86230/Z96130 . . . . . . . . . . . . . . . . . . . . 2
Figure 3 Z86230/229 System Configuration for Demo Board . . . . . . . . . . . . . . . 4
Figure 4 Video Front end . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 5 Video/RGB Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Figure 6 Power Supply & PC Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Figure 7 Z86129/229 Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Figure 8 Z86130/230 Module. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 9 eZSelect Data Decoder Demo Board . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 10 Z86230/Z86229 Demo Program Main Screen . . . . . . . . . . . . . . . . . . . . 13
Figure 11 Z86230/130 Program Blocking Selection Screen . . . . . . . . . . . . . . . . . 14
Figure 12 Z86229/129 Program Blocking Selection Screen . . . . . . . . . . . . . . . . . 15
Figure 13 Device Selection Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 14 Open I2C Script File Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 15 Example Action Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
List of Tables
Table 1 Jumper Settings for the eZSelect Demo Board . . . . . . . . . . . . . . . . . . 11
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 deÞned by the Z86129 and Z86229. See Appendix A for
program blocking terminology.
The eZSelect reference design also includes the external I
2
C connection as well
as H
SYNC
and V
SYNC
outputs. This design not only provides stand-alone
evaluations of ZiLOGÕs Z86129, Z86130, Z86229, and Z86230 devices, but can
also be used as an add-on board for the customerÕs application.
Figures 1 and 2 are system block diagrams of the Z86129/Z86229 and
Z86130/Z86230 respectively.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
2
Figure 1 System Block Diagram of the Z86229/Z86129
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 I
2
C bus interface.
Main Host
Microcontroller
Main Video
Z86229 / Z86129
Line 21 Data
Decoder w/ OSD
I
2
C
R
G
B
BOX
NTSC
Encoder
Video
Output
Main Host
Microcontroller
Main Video
Z86230 / Z86130
Line 21 V-chip
Decode
I
2
C
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 I
2
C Script
Þles (See section 7.5 in the Z86230 Product SpeciÞcation for details.)
See Appendix B for technical references.
Key Features of the Data Decoder Design
The eZSelect VBI decoder design is a 2Ðchip design so the user can evaluate
ZiLOG line 21 decoders in any of the following combinations:
The eZSelect Reference Design also includes
Direct reset control (SW1) for theZ86230
Program Block LED (LED1) to indicate hardware program blocking
Additional H
SYNC
and V
SYNC
outputs for applications
Crystal or H
SYNC
timing support for Z86130/Z86230
H
SYNC
source which can be selected from U2 or Video Input
System Configuration
The system conÞguration required by the eZSelect VBI decoder reference design
is ßexible and supports many different applications. It is 100% backward
compatible with ZiLOGÕs older Z86129 demo board.
Figure 3 illustrates a typical system conÞguration with the Z86230/229 Demo
Board used to develop TV manufacturer Þrmware.
1234567
U13
Z86129 Z86229 empty empty Z86129 Z86229 Z86229
U14
empty empty Z86130 Z86230 Z86230 Z86130 Z86230
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
4
Figure 3 Z86230/229 System ConÞguration for Demo Board
Hardware Overview of the Reference Circuit Design
The reference circuits for ZiLOGÕs 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
Computer
Z86230 / 130
Z86229 / 129
Video In
Video Out /
Lum
Box
Red
Green
Blue
Vsync
Output
Hsync
Output
9VAC
Adapter On/Off
SW
Power
LED
Printer
Port
DB25
I2C
External
Connection
LPT1
Video Source
(VCR ...)
TV
Monitor
External
Applications
(PIP, Set-Top
Box..)
Z86230/229 Demo Board
System Configuration
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
5
Figure 4 Video Front end
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
6
Figure 5 Video/RGB Output
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
7
Figure 6 Power Supply & PC Interface
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
8
Figure 7 Z86129/229 Module
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
9
Figure 8 Z86130/230 Module
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 boardÕs 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 conÞguration. Refer to Table 1.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 I
2
C 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
Jumper Pin 1-2 Pin 2-3
NC
(No Connect)
JP1 H
SYNC
Source Selection Video IN LM555 (default)
JP2 H
SYNC
Polarity Negative Positive (default)
JP3 V
SYNC
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)
JP14 I2C Address Selection
for Z86230
28h (W) 2Ah (W) (default)
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
12
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 speciÞc 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 ÒSetup.exeÓ to
start the installation. Follow the instructions on screen for the other 2 disks to
Þnish the installation.
When installation is complete, click the ÒZ86230db.exeÓ icon to run the program.
The following screen appears. See Figure 10.
JP15 Z86230 Ground Selection For Z86230
(default)
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.
Table 1 Jumper Settings for the eZSelect Demo Board
Jumper Pin 1-2 Pin 2-3
NC
(No Connect)
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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:
ÒZ86230/Z86229 Demo Program StartingÉÓ
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.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 ÒUpdate
V-Chip SettingÓ and ÒReadÓ 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
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 conÞgure 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.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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 speciÞc application. See Appendix C for applicable web
links.
Summary
This eZSelect Reference Design Application Note was written to give application
engineers a quick understanding of the main features of ZiLOGÕs 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 ofÞce or send e-mail directly to
achang@zilog.com for an immediate response.
Z86129 Z86130 Z86229 Z86230
OSD Display (RGB output) for Closed Caption * *
Hardware Reset (pin 4 NRST) *
Software Reset (I2C commands) ** * *
Canadian Rating Systems *
MPAA & TV-PG Rating Systems * *
XDS Data Decoding ** * *
Up to 32 bytes of I2C writing without checking
ÒRDYÓ bit from Serial Status Register (SSR)
*
Supports two I2C slave addresses selection **
PB (Program Blocking) signal output * *
Dedicated INTRO (Interrupt) output *
HSYNC input or Crystal (3.57 KHz) selection
for timing reference
* *
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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.
Application Note
eZSelect Line 21 Data Decoder Reference Design
AN004800-TVC1299
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. ZiLOGÕs ÒZ86129/130/131 Stand-Alone NTSC Line 21 Decoder Multiplexes
Data Channels, ConÞrms to EIA-608 SpeciÞcationÓ (DS97TEL0204)
6. ZiLOGÕs ÒZ86229 NTSC Line 21 CCD DecoderÓ (DS005101-TVX0199)
7. ZiLOGÕs ÒZ86230 Advanced Violence Blocking and NTSC Line 21 XDS
Preliminary Product SpeciÞcationÓ (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