Professional Documents
Culture Documents
496
Abstract
A versatile integrated encoder circuit for television signals
is described. The encoder can convert digital baseband
video data input into NTSC or PAL coded analog output
signals. Composite video and S-Video output are available
simultaneously. The CMOS device accepts 24-bit RGB
data as well as indexed colour and a number of different
YUV data formats. The output signal can be synchronized
to an extemal video input signal. The circuit provides an
easy way to store computer and workstation graphics on a
video cassette recorder.
Introduction
Traditionally, the personal computer used to deal with inputs such as data, text and communication. Desktop Video
adds a new medium "Realtime Video" to the personal computing world. With other media like "Audio" and "Sound"
already available, the personal computer (PC) moves more
and more towards a universal multimedia processing engine. The ultimate goal is to replace the number of different
machines used to handle these media today by a single
computing device.
The basic idea behind desktop video is to combine both,
computer generated graphic data and realtime video on one
screen. The digital encoder to be presented here can be
used to record the resulting images on a video cassette recorder (VCR). The applications of desktop video include
training and education programmes, marketing, electronic
shopping, office video conferencing and others.
The general outline of a desktop video system is shown in
fig. 1. The input processing block digitizes the incoming
video information and decodes the signal to obtain
luminance and colour difference information in a format
suitable for delivery to the feature processing part. The
input signals can be delivered from a variety of signal sources: television (TV) tuner, camera, but also tape recorder,
laser or video compact disc (CD Video). The feature processing unit performs the operations necessary to fit the video image to the computer graphic data. The converted
Input
Processing
Input
Source
CVU8 /"
1
1
Feature
Processing
Output
Processing
output
Peripherals
CVBS oul
Tape Recorder
Corn. Networks
TV Monitor
CD Video
Laser Disc
TV Camera
TV tuner
VCR
butler
Principle of Operation
A simplified functional block diagram of the encoder is
shown in fig. 2. The 24-bit data supplied to the three data
inputs RED, GREEN and BLUE (R, G, B) is first passed
1992 IEEE
through the colour look-up tables (CLUT). The digital encoder employs three independent tables, one per channel.
This allows to program different characteristics for each of
the channels. The colour look-up tables can be used e.g. to
implcment the gamma-precorrection sometimes required
for encoding. The following matrix block computes the
rcsulting luminance (Y) and colour difference (U, V) information from the corresponding RGB input based on the
well known matrix equations. The digital colour difference
signals U and V taken from the matrix output are filtered in
three filter sections. A decimation in time and interpolation
scheme is used in these filters to allow for maximum
flexibility in the input data formats. The filter characteristics can be set for a standard chrominance
bandwidth of 1.3 MHz or an enhanced bandwidth of 1.9
MHz. At the output of the filter sections sufficiently
bandlimited colour difference data is delivered at a sampling rate such that processed U and V data are available
with every sample in the luminance channel. The U and V
signal components are used to modulate the colour subcarrier. The U and V data is replaced by some fixed values
to define the colour reference burst phase during the burst
period. Finally, the encoder adds the luminance signal and
the modulated colour subcarrier, inserts the line and field
synchronisation pulses to obtain the digital composite video output. This is converted back to the analog domain by
one of the three on-chip digital to analog converters
(DAC).
491
Input Processor
A number of different input data formats are supported by
the digital encoder device. While the standard input format,
as previously described, is parallel 24-bit RGB data at pixel
clock rate, input of digital W V data in 4:4:4 parallel format, time-multiplexed4:2:2 and 4:l: 1 formats as well as 8bit indexed pseudo-colour format are also possible. The
time-multiplexed YW formats take advantage of the
reduced chrominance bandwidth used in television transmission systems and require less video frame buffer
capacity than the parallel formats. The indexed colour input
mode uses an 8-bit data word to select one out of 256
predefined colours stored in the colour look-up tables to
obtain the resulting 24-bit colour information.
Input data applied to the encoder input is first demultiplexed if required. The encoder can be set to expect input
data in a representation that complies with the input data
range defined by CCIR601 111. The resulting parallel data
is fed through the colour look-up tables. These can be used
to perform the gamma-precorrection required in RGB input
mode or to set parameters such as saturation, brightness
and contrast in W V input modes. The colour look-up
tables are implemented as three independent random access
memory blocks of 256 x 8 bit. In the normal functional
mode, the incoming data in each individual channel is
taken as an index to select the associated output value from
Input Processor
~>>-
256x8
GREEN
BLUE
G'
256x8
.
B'
>
.
,
,,,
,.
I
'
4
I
RGBlYUV _z
Matrix
__.*
Lowpass
Normalizer
256 x 8
__-?I
Lowpass
>-
,
,I
,.*
,
,
,":
Modulator
9-bilDAC
C
FilterXZ
>- I
9-bilDAC
Genlock Processor
Synchronisation Processing
I
i
1
i CVBS +
9-bilDAC
,, ,,
, .,
,
Control Interface
Clodc Interface
serial
parallel
498
Y
b
ROM-B
tended chrominance bandwidth of 1.9 MHz in special encoding applications. The transfer function of the filter is
given by
499
The colour subcarrier is generated in a discrete time oscillator, which provides sine and cosine output frequencies to
drive the modulator. The nominal colour subcarrier frequency can be either 4.43 MHz or 3.58 MHz, it has a fixed
relation to the line frequency in use. Optionally, the colour
subcarrier frequency can be finetuned using one of the control registers and also be synchronized to an extemal video
source, see the following sections. Two 8 by 9 bit multipliers are used to obtain the quadrature signals from the
two baseband inputs. The two products are summed up and
rounded correctly by some additional logic and an auxiliary
adder to obtain the final QAM modulated subcarrier output.
Finally, the encoder adds the luminance signal and the modulated colour subcarrier, and inserts the line and field
synchronisation pulses (HSYNC, VSYNC) to obtain the
digital composite video output. This is converted back to
the analog domain by one of the three on-chip digital to
analog converters. The resolution of the converters is 9 bit.
'
HN-Sync
Insertion
HSYNC
VSYNC
Digital to
Analog
Converter
ext. CVBS
CVBS
Frequency
I
PAL B
NTSC
"
Converter
sinR
I
PAL A
key
500
Genlock Processor
The operating modes of the digital encoder reflect the different applications it can be used for. In Slave-Mode, the
encoder receives pixel clock, horizontal and vertical
synchronisation from an external source together with the
video data to be encoded. In Stand-alone-Mode, the encoder generates these signals itself based on its internal
quartz clock reference. The synchronisation and clock sig-
Sampling Clock
l
I
Counter/
Oscillator
Digital
Phase
Detector
Loop
Filter
2I
from
Synchronisation
Processor
i
I
1I
I
Voltage
Controlled
Default
Divider
Oscillator
Genlock Processor
I
I
Crystal
I
v
II
I
I
Loop
Phase
Filter
Detector
LFCO
4-bit DAC
Waveform
Adjust
L____________--_-___-________-__------_.
Discrete
Time
Oscillator
Register
501
to S nchronisation
Fyrocessor
to Burst
Detection
I
Colour.
Subcarrier
Oscillator
Lowpass
Filter #2
H(Z) = 2-10z-1/(1-
+ 2-4,
Control Interface
The encoder offers a maximum of flexibility through a
number of programmable device registers. The internal
device registers are split into two separate tables: the control table contains 16 registers, and the colour look-up table
consists of three banks for red, green and blue of 256 bytes
each. The programmers model of the encoder is shown in
fig. 10. Two different types of control interfaces are
provided. The parallel 8-bit microprocessor interface fea-
40
30
20
10
0
-10
-20
-30
-40
10
15
20
25 m s
502
.lnplt Format
Cdcur Lwk-upTables
Cmbol Table
-Test RegistersR. G. I3
-Encoder Operabng Mode
Sync Rocesshg
.Clock Setup
.Colour Killer
.General Purpose, R e s t
12
Enmder Conbd
Registers
253
254
255
15
PC Graphic Data
Red
Green
Blue
PC Interface Bus
503
encoder in tum has a stable crystal clock and reads data out
of the frame buffer at a constant rate. A similar arrangement can be used to carry out video frame grabbing functions.
Biographies
Summary
The encoder circuit has been designed in our C200 Complementary Metal Oxide Semiconductor (CMOS) process
technology, which offers a minimum feature size of 1 um
and two layers of metal interconnect. The overall chip size
is about 68 mm2. The device is housed in a 84-pin plastic
leaded chip carrier (PLCC-84) package. The design of the
circuit is based on our library of digital video signal
processing blocks. Compared to analog encoder concepts
the digital video encoder has a number of advantages, particularly when looking at operation in personal computing
environments. A direct five volt supply, the realisation of
colour space matrix as well as encoding features independent of temperature and ageing effects, and the ability
to process computer generated data directly in digital form
fit perfectly to the desktop video and multimedia requirements.
Acknowledgement
The authors wish to thank Hartmut Hackmann, Achim Mittelberg and Gerhard Pletz-Kirsch for their contributions to
the realization of the chip.
Special thanks to Thomas Rudolph for his support in preparing the plots used in this paper.
References
[ 11 CCIR Recommendation 601-2 "Encoding Parameters of
Digital Television for Studios"