ChipFind - документация

Электронный компонент: Bt819AKPF

Скачать:  PDF   ZIP

Document Outline

Distinguishing Features
Single-Chip Composite/S-Video
NTSC/PAL to YCrCb Digitizer
On-Chip Ultralock
TM
Square Pixel and CCIR601 Resolu-
tion for NTSC and PAL
Chroma Comb Filtering
Arbitrary Horizontal Scaling and
Vertical Scaling (using line store)
Arbitrary Temporal Decimation
for a Reduced Frame-Rate Video
Sequence
Programmable Hue, Brightness,
Saturation, and Contrast
User-Programmable Cropping of
the Video Window
2x Oversampling to Simplify
External Analog Filtering
Two-Wire I
2
C Bus Interface
On-Chip 40-Pixel-Deep
Asynchronous Output FIFO
8- or 16-Bit Pixel Interface
YCrCb (4:2:2) Output Format
Software Selectable Three-Input
Analog Mux
Auto NTSC/PAL Format Detect
Automatic Gain Control
IEEE 1149.1 (JTAG) Interface
100-Pin PQFP and TQFP Packages
Related Products
Bt812, Bt858, Bt855,
Bt856, Bt857
Bt851
Applications
Multimedia
Image Processing
Desktop Video
Video Phone
Teleconferencing
Interactive Video
Bt819A Video Capture Processor for
TV/VCR Analog Input
Bt817A Composite Video and S-Video Decoder
Bt815A Composite Video Decoder
The Bt819A, Bt817A and Bt815A VideoStream Decoders are a family of single-
chip, pin and register compatible, composite NTSC/PAL video and S-video
decoders. Low operating power consumption and power down capability make
them ideal low-cost solutions for PC video capture applications on both desktop
and portable system platforms. They support square pixel and CCIR601 resolu-
tions for both NTSC and PAL. They have a flexible pixel port which supports a
variety of system interface configurations, and they are offered in both a 100-pin
PQFP and 100-pin TQFP.
Functional Block Diagram
ADC
U
LTRALOCK
TM
AND
C
LOCK
MUX0
MUX1
MUXOUT
SYNCDET
REFOUT
YREF+
YIN
16
D
ECIMATION
LPF
O
UTPUT
L
UMA
-C
HROMA
S
EPARATION
AND
C
HROMA
O
UTPUT
V
IDEO
YREF
FIFO
AND
O
UTPUT
F
ORMATTING
A
NALOG
M
UX
ADC
CREF+
CIN
CREF
AGC
T
IMING
C
ONTROL
D
ATA
I
2
C
JTAG
D
EMODULATION
S
PATIAL
AND
T
EMPORAL
S
CALING
V
IDEO
T
IMING
U
NIT
G
ENERATION
XT0
XT1
40 MH
Z
40 MH
Z
MUX2
VideoStreamTM Decoders
Bt819A/817A/815A
Copyright 1996 Rockwell Semiconductor Systems. All rights reserved.
Print date: September, 1996
Rockwell reserves the right to make changes to its products or specifications to improve performance, reliability, or
manufacturability. Information furnished by Rockwell Semiconductor Systems is believed to be accurate and reliable. However, no
responsibility is assumed by Rockwell Semiconductor Systems for its use; nor for any infringement of patents or other rights of
third parties which may result from its use. No license is granted by its implication or otherwise under any patent or patent rights of
Rockwell Semiconductor Systems.
Rockwell products are not designed or intended for use in life support appliances, devices, or systems where malfunction of a
Rockwell product can reasonably be expected to result in personal injury or death. Rockwell customers using or selling Rockwell
products for use in such applications do so at their own risk and agree to fully indemnify Rockwell for any damages resulting from
such improper use or sale.
Bt is a registered trademark of Rockwell Semiconductor Systems. Product names or services listed in this publication are for
identification purposes only, and may be trademarks or registered trademarks of their respective companies. All other marks
mentioned herein are the property of their respective holders.
Specifications are subject to change without notice.
PRINTED IN THE UNITED STATES OF AMERICA
Model Number
Package
Ambient Temperature Range
Bt819AKPF
100-pin PQFP
0C to +70C
Bt819AKTF
100-pin TQFP
0C to +70C
Bt817AKPF
100-pin PQFP
0C to +70C
Bt817AKTF
100-pin TQFP
0C to +70C
Bt815AKPF
100-pin PQFP
0C to +70C
Ordering Information
iii
T
ABLE
OF
C
ONTENTS
List of Figures
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
List of Tables
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Functional Description
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Functional Overview
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Bt819A Video Capture Processor for TV/VCR Analog Input. . . . . . . . . . . . . . . . . . . . 1
Bt817A Composite/S-Video Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Bt815A Composite Video Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Bt819A Architecture and Partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
UltraLock
TM
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Scaling and Cropping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Input Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Output Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
I
2
C Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pin Descriptions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Pin Assignments
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
UltraLock
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
The Challenge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Operation Principles of UltraLock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Y/C Separation and Chroma Demodulation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Video Scaling, Cropping, and Temporal Decimation
. . . . . . . . . . . . . . . . . . . . . . . . . . 19
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Horizontal and Vertical Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Luminance Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Chrominance Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Scaling Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Image Cropping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Cropping Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Temporal Decimation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Video Adjustments
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
The Hue Adjust Register (HUE) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
The Contrast Adjust Register (CONTRAST) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
The Saturation Adjust Registers (SAT_U, SAT_V) . . . . . . . . . . . . . . . . . . . . . . . . . . 29
The Brightness Register (BRIGHT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
iv
Bt819A/7A/5A
Electrical Interfaces
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Input Interface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Analog Signal Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Multiplexer Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Autodetection of NTSC or PAL Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Flash A/D Converters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
A/D Clamping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Automatic Gain Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Crystal Inputs and Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2X Oversampling and Input Filtering. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Output Interface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Output Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
YCrCb Pixel Stream Format, SPI Mode 8- and 16-bit Formats. . . . . . . . . . . . . . . . . 37
Synchronous Pixel Interface (SPI, Mode 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Synchronous Pixel Interface (SPI, Mode 2, ByteStream) . . . . . . . . . . . . . . . . . . . . . 40
CCIR 601 Compliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Asynchronous Pixel Interface (API) (Bt819A Only) . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode A: FIFO Controlled by Bt819A (Bt819A Only) . . . . . . . . . . . . . . . . . . . . . . . . . 45
Mode B: FIFO Controlled by System (Bt819A Only) . . . . . . . . . . . . . . . . . . . . . . . . . 46
Asynchronous Pixel Interface Control Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
I
2
C Interface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Starting and Stopping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Addressing the Bt819A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Reading and Writing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Software Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
JTAG Interface
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Need for Functional Verification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
JTAG Approach to Testability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Optional Device ID Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Verification with the Tap Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
PC Board Layout Considerations
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Ground Planes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Power Planes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Supply Decoupling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Digital Signal Interconnect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Analog Signal Interconnect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Latch-up Avoidance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Schematics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
v
Bt819A/7A/5A
Control Register Definitions
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
0x00 -- Device Status Register (STATUS)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
0x01 -- Input Format Register (IFORM)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
0x02 -- Temporal Decimation Register (TDEC)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
0x03 -- MSB Cropping Register (CROP)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
0x04 -- Vertical Delay Register, Lower Byte (VDELAY_LO)
. . . . . . . . . . . . . . . . . . . . 72
0x05 -- Vertical Active Register, Lower Byte (VACTIVE_LO)
. . . . . . . . . . . . . . . . . . 73
0x06 -- Horizontal Delay Register, Lower Byte (HDELAY_LO)
. . . . . . . . . . . . . . . . . 73
0x07 -- Horizontal Active Register, Lower Byte (HACTIVE_LO)
. . . . . . . . . . . . . . . . 73
0x08 -- Horizontal Scaling Register, Upper Byte (HSCALE_HI)
. . . . . . . . . . . . . . . . 74
0x09 -- Horizontal Scaling Register, Lower Byte (HSCALE_LO)
. . . . . . . . . . . . . . . 74
0x0A -- Brightness Control Register (BRIGHT)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
0x0B -- Miscellaneous Control Register (CONTROL)
. . . . . . . . . . . . . . . . . . . . . . . . . 76
0x0C -- Luma Gain Register, Lower Byte (CONTRAST_LO)
. . . . . . . . . . . . . . . . . . . 77
0x0D -- Chroma (U) Gain Register, Lower Byte (SAT_U_LO)
. . . . . . . . . . . . . . . . . . 78
0x0E -- Chroma (V) Gain Register, Lower Byte (SAT_V_LO)
. . . . . . . . . . . . . . . . . . 79
0x0F -- Hue Control Register (HUE)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
0x10 -- Reserved
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
0x11 -- Reserved
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
0x12 -- Output Format Register (OFORM)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
0x13 -- Vertical Scaling Register, Upper Byte (VSCALE_HI)
. . . . . . . . . . . . . . . . . . . 84
0x14 -- Vertical Scaling Register, Lower Byte (VSCALE_LO)
. . . . . . . . . . . . . . . . . . 85
0x15 -- Test Control Register (TEST)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
0x16 -- Video Timing Polarity Register (VPOLE)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
0x17 -- ID Code Register (IDCODE)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
0x18 -- AGC Delay Register (ADELAY)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
0x19 -- Burst Delay Register (BDELAY)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
0x1A -- ADC Interface Register (ADC)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
0x1B to 0x1E -- Reserved Registers
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
0x1F -- Software Reset Register (SRESET)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
vi
Bt819A/7A/5A
Parametric Information
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
DC Electrical Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
AC Electrical Parameters
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Package Mechanical Drawings
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Datasheet Revision History
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
vii
L
IST
OF
F
IGURES
Bt819A/7A/5A
List of Figures
Figure 1.
Bt819A/7A/5A Detailed Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Figure 2.
Bt819A Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Figure 3.
Bt817A Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Figure 4.
Bt815A Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Figure 5.
UltraLock Behavior for NTSC Square Pixel Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Figure 6.
Y/C Separation and Chroma Demodulation for Composite Video. . . . . . . . . . . . . . . . . . 17
Figure 7.
Y/C Separation Filter Responses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Figure 8.
Combined Luma Notch and Optional Luma 3 MHz Low Pass Filter Response . . . . . . . 18
Figure 9.
Optional Luma 3 MHz Low Pass Filter Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Figure 10. Combined Luma Notch, Optional Luma 3 MHz Low Pass,
and Oversampling Filter Response . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Figure 11. Combined Luma Notch and Oversampling Filter Response . . . . . . . . . . . . . . . . . . . . . . 20
Figure 12. Filtering and Scaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figure 13. Effect of the Cropping and Active Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Figure 14. Regions of the Video Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Figure 15. Typical External Circuitry. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Figure 16. Clock Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Figure 17. Luma & Chroma 2X Oversampling Filter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Figure 18. Output Mode Summary (API Mode Only for Bt819A) . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Figure 19. YCrCb 4:2:2 Pixel Stream Format (SPI Mode, 8 and16 Bits) . . . . . . . . . . . . . . . . . . . . . 38
Figure 20. Bt819A, Bt817A, Bt815A Synchronous Pixel Interface, Mode 1 (SPI-1) . . . . . . . . . . . . . 39
Figure 21. Basic Timing Relationships for SPI Mode 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Figure 22. Data Output in SPI Mode 2 (ByteStream) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Figure 23. Video Timing in SPI Modes 1 and 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Figure 24. Horizontal Timing Signals in the SPI Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
viii
L
IST
OF
F
IGURES
Bt819A/7A/5A
Figure 25. Asynchronous Pixel Interface (API) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Figure 26. Basic Timing Relationships for API Mode A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 27. API-A Datastream During a Field Transition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Figure 28. Basic Timing Relationships for API Mode B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Figure 29. The Relationship between SCL and SDA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 30. I
2
C Slave Address Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Figure 31. I
2
C Protocol Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Figure 32. Instruction Register (IR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Figure 33. Example Ground Plane Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Figure 34. Optional Regulator Circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Figure 35. Typical Power and Ground Connection Diagram and Parts List. . . . . . . . . . . . . . . . . . . . 64
Figure 36. Example Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Figure 37. Clock Timing Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Figure 38. Output Enable TIming Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Figure 39. JTAG TIming Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Figure 40. FIFO Output Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Figure 41. 100PQFP Package Mechanical Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Figure 42. 100TQFP Package Mechanical Drawing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
ix
L
IST
OF
T
ABLES
Bt819A/7A/5A
List of Tables
Table 1.
VideoStream Feature Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Table 2.
Pin Descriptions Grouped By Pin Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Table 3.
Scaling Ratios for Popular Formats Using Frequency Values . . . . . . . . . . . . . . . . . . . . . . 24
Table 4.
Pixel/Pin Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Table 5.
Description of the Control Codes in the Pixel Stream . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Table 6.
Data Output Ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Table 7.
Synchronous Pixel Interface (SPI) Control Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Table 8.
Operation of Timing Signals, API (both modes A and B) . . . . . . . . . . . . . . . . . . . . . . . . . 49
Table 9.
Asynchronous Pixel Interface Control Signals, Bt819A Only . . . . . . . . . . . . . . . . . . . . . . 50
Table 10. Bt819A Address Matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Table 11. Example I
2
C Data Transactions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Table 12. Bt819A Boundary Scan Register Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Table 13. Device Identification Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Table 14. Recommended Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Table 15. Absolute Maximum Ratings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Table 16. DC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Table 17. Clock Timing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Table 18. Power Supply Current Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Table 19. Output Enable Timing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Table 20. JTAG Timing Parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Table 21. FIFO Timing Parameters (Bt819A Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Table 22. Decoder Performance Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Table 23. Bt819A Datasheet Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
1
F
UNCTIONAL
D
ESCRIPTION
Functional Overview
Brooktree's VideoStream products are a family of single-chip, pin and register
compatible solutions for processing analog NTSC/PAL video into digital 4:2:2
YCrCb video. They provide a comprehensive choice of capabilities to enable the
feature set and cost to be tailored to different system hardware configurations. All
solutions are housed in a 100-pin QFP package. A detailed block diagram is shown
in Figure 1.
Bt819A
Video Capture
Processor for TV/VCR
Analog Input
The Bt819A Video Capture Processor is a fully integrated single-chip decoding
and scaling solution for analog NTSC/PAL input signals from TV tuners, VCRs,
cameras, and other sources of composite or Y/C video. It is the first front-end input
solution for low-cost PC video/graphics systems to deliver complete integration
and high-performance video synchronization, Y/C separation, filtered scaling and
optional FIFOed output pixel data. The Bt819A has all the mixed signal and DSP
circuitry required to convert an analog composite waveform into a scaled digital
video stream supporting a variety of video formats, resolutions and frame rates.
Bt817A
Composite/S-Video
Decoder
The Bt817A provides full composite and S-video capability along with filtered
horizontal scaling. However, vertical scaling can be implemented by line-dropping
only, and there is no output FIFO option.
Bt815A
Composite Video
Decoder
The Bt815A has the minimum feature set with composite-only video decoding (no
S-video capability). As with the Bt817A, vertical scaling is implemented through
line dropping, and there is no output FIFO option.
See Table 1 for a comparison of Bt819A, Bt817A and Bt815A features.
Table 1. VideoStream Feature Options
Feature Options
Bt819A
Bt817A
Bt815A
Composite Video Decoding
S-Video Decoding
Filtered Vertical Scaling
Optional Output FIFO
2
F
UNCTIONAL
D
ESCRIPTION
Functional Overview
Bt819A/7A/5A
The Synchronous Pixel Interface (non-FIFOed output) is common to all three
pin-compatible devices, which enables a single system hardware design to be used
for all three. Similarly, a common I
2
C register set allows a single piece of driver
code to be written for software control of all three options.
Bt819A Architecture
and Partitioning
The Bt819A has been developed to provide the most cost-effective, high-quality
video input solution for low-cost multimedia subsystems that integrate both graph-
ics display and video capabilities. The feature set of the Bt819A supports a vid-
eo/graphics system partitioning which optimizes the total cost of a system
configured both with and without video capture capabilities. This enables system
vendors to easily offer products with various levels of video support using a single
base-system design.
As graphics chip vendors move from graphics-only to video/graphics coproces-
sors and eventually to single-chip video/graphics processor implementations, the
ability to efficiently use silicon and package pins to support both graphics acceler-
ation, video playback acceleration and video capture becomes critical. This prob-
lem becomes more acute as the race towards higher performance graphics requires
more and more package pins to be consumed for wide 64-bit memory interfaces
and glueless local bus interfaces.
The Bt819A minimizes the cost of the video capture function integration in a
number of ways. Recognizing that YCrCb to RGB color space conversion is be-
coming a required feature of multimedia controllers for acceleration of digital vid-
eo playback, the Bt819A avoids redundant functionality and allows the
downstream controller to perform this task. Secondly, the Bt819A integrates the
FIFO which would otherwise be dedicated to feeding a live video stream to the di-
rect memory access engine (DMA) in a video controller. Finally, the Bt819A can
minimize the number of interface pins required by a downstream multimedia con-
troller in order to keep package costs to a minimum.
Controller systems that are designed to take advantage of these features enable
video capture capability to be added to the base system in a modular fashion using
only a single Integrated Circuit (IC).
The Bt817A and Bt815A are targeted at system configurations using
stand-alone video controllers or CODECs which typically integrate the scaling and
video FIFO functions.
UltraLock
TM
The Bt819A, Bt817A and Bt815A employ a proprietary technique known as Ul-
traLock to lock to the incoming analog video signal. It will always generate the re-
quired number of pixels per line from an analog source in which the line length can
vary by as much as a few microseconds. UltraLock's digital locking circuitry en-
ables the VideoStream decoders to quickly and accurately lock on to video signals,
regardless of their source. Since the technique is completely digital, UltraLock can
recognize unstable signals caused by VCR headswitches or any other deviation
and adapt the locking mechanism to accommodate the source. UltraLock uses non-
linear techniques which are difficult, if not impossible, to implement in genlock
systems. And unlike linear techniques, it adapts the locking mechanism automati-
cally.
3
F
UNCTIONAL
D
ESCRIPTION
Functional Overview
Bt819A/7A/5A
Scaling and Cropping
The Bt819A can reduce the video image size in both horizontal and vertical direc-
tions independently using arbitrarily selected scaling ratios. The X and Y dimen-
sions can be scaled down to one-fourteenth of the full resolution. Horizontal
scaling is implemented with a six-tap interpolation filter while two-tap interpola-
tion is used for vertical scaling with a line store. The Bt817A and Bt815A support
vertical scaling by line-dropping.
The video image can be arbitrarily cropped by programming the ACTIVE flag
to reduce the number of active scan lines and active horizontal pixels per line.
The Bt819A, Bt817A and Bt815A also support a temporal decimation feature
that reduces video bandwidth by allowing frames or fields to be dropped from a
video sequence at regular but arbitrarily selected intervals.
Input Interface
Analog video signals are input to the Bt819A/7A/5A via a three-input multiplexer
that can select between three composite source inputs or between two composite
and a single S-video input source. When an S-video source is input to the Bt819A,
the luma component is fed through the input analog multiplexer, and the chroma
component is fed directly into the C input pin (the Bt815A does not support S-vid-
eo input). An automatic gain control circuit enables the Bt819A/7A/5A to compen-
sate for reduced amplitude in the analog signal input.
The clock signal interface consists of two pairs of pins for crystal connection
and two clock output pins. One pair of crystal pins is for connection to a 28.64
MHz (8*NTSC Fsc) crystal which is selected for NTSC operation. The other is for
PAL operation with a 35.47 MHz (8*PAL Fsc) crystal. Either of the two crystal
frequencies can be selected to generate CLKX1 and CLKX2 output signals.
CLKX2 operates at the full crystal frequency (8*Fsc) whereas CLKX1 operates at
half the crystal frequency (4*Fsc). Either fundamental or third harmonic crystals
may be used. Alternatively, CMOS oscillators may be used.
Output Interface
The Bt819A's output interface can be set up to support two different configura-
tions: the Synchronous Pixel Interface (SPI) and the Asynchronous Pixel Interface
(API). The Bt817A and Bt815A support the Synchronous Pixel Interface only.
Both the SPI and the API can support a YCrCb 4:2:2 data stream over a 16-bit-
wide path. The SPI also supports an 8-bit path. When the pixel output port is con-
figured to operate 8 bits wide, 8 bits of chrominance data are output on the first
clock cycle followed by 8 bits of luminance data on the next clock cycle for each
pixel. Two clocks are required to output one pixel in this mode, thus a 2x clock is
used to output the data.
In SPI mode, the Bt819A/7A/5A output interface is similar to the Bt812 inter-
face. The Bt819A/7A/5A outputs all horizontal and vertical blanking pixels in ad-
dition to the active pixels synchronous with CLKX1 (16-bit mode) or CLKX2
(8-bit mode). It is also possible to insert control codes into the pixel stream using
chrominance and luminance values that are outside the allowable chroma and luma
ranges. These control codes can be used to flag video events such as ACTIVE,
HRESET, and VRESET. Decoding these video events downstream enables the vid-
4
F
UNCTIONAL
D
ESCRIPTION
Functional Overview
Bt819A/7A/5A
eo controller to do away with pins required for the corresponding video control
signals.
In the API mode, the Bt819A outputs only the active pixels and control codes at
a rate asynchronous with the sample clock. A 40-pixel-deep FIFO buffers the pixel
output port and enables the system to burst pixels out of the Bt819A at rates up to
35 Mpixels/sec. An input clock must be provided on CLKIN for operation in this
mode. The Bt819A outputs the DVALID, AEF and AFF flags to provide the system
information on the status of the FIFO.
I
2
C Interface
The Bt819A/7A/5A registers are accessed via a two-wire Inter-Integrated Circuit
(I
2
C) interface. The Bt819A/7A/5A operates as a slave device. Serial clock and
data lines, SCL and SDA, are used to transfer data from the bus master at a rate of
100 Kbits/s. Chip select and reset signals are also available to select one of two
possible Bt819A/7A/5A devices in the same system and to set the registers to their
default values.
5
F
UNCTIONAL
D
ESCRIPTION
Functional Overview
Bt819A/7A/5A
Figure 1. Bt819A/7A/5A Detailed Block Diagram
MUXOUT
MUX0
MUX1
XT1O
XT1I
XT0O
XT0I
CLKX1
CLKX2
RST
SDA
I2CCS
SCL
QCLK
HRESET
VRESET
ACTIVE
FIELD
CBFLAG
DVALID
V
IDEO
S
CALING
I
NPUT
I
NTERFACE
O
UTPUT
I
NTERFACE
Y/C S
EPARATION
AND
C
HROMA
D
EMODULATION
V
IDEO
I
2
C I
NTERFACE
FRST
OE
VD[15:8]
VD[7:0]
CLKIN
RDEN
AFF
AEF
SYNCDET
AGCCAP
REFOUT
YREF
YIN
YREF+
Y ADC B
IAS
CREF
CIN
CREF+
C ADC B
IAS
CLEVEL
C
LOCK
I
NTERFACE
JTAG I
NTERFACE
AND
C
ROPPING
A
DJUSTMENTS
C
A/D
Y
A/D
AGC
AND
S
YNC
D
ETECT
O
VERSAMPLING
L
OW
-P
ASS
F
ILTER
Y/C
S
EPARATION
C
HROMA
D
EMOD
H
UE
, S
ATURATION
,
AND
B
RIGHTNESS
A
DJUST
H
ORIZONTAL
AND
V
ERTICAL
F
ILTERING
AND
S
CALING
40 P
IXEL
FIFO
V
IDEO
T
IMING
C
ONTROL
I
2
C
C
LOCKING
JTAG
TDO
TDI
TMS
TCK
TRST
(B
T
819A/7 O
NLY
)
(B
T
819A O
NLY
)
MUX2
6
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
Pin Descriptions
Pins with alternate definitions on the Bt817A or Bt815A are indicated by shading (e.g., see pin number 67).
Table 2. Pin Descriptions Grouped By Pin Function
(1 of 6)
Pin #
I/O
Pin Name
Description
The Input Stage Pins
55
I
MUX0
Analog composite video inputs to the on-chip input multiplexer. Used to select
between three composite sources or two composite and one S-video source.
Unused pins should be connected to GND.
57
I
MUX1
45
I
MUX2
53
O
MUXOUT
The analog video output of the 3 to 1 multiplexer. Connected to the YIN pin.
52
I
YIN
The analog composite or luma input to theY-ADC.
67
I
CIN
The analog chroma input to the C-ADC.
NC
May be left unconnected.
59
I
SYNCDET
The sync stripper input used to generate timing information for AGC circuit. Must be
connected through a 0.1
F capacitor to the same source as the Y-ADC. A 1 M
bleeder resistor should be connected to ground.
41
A
AGCCAP
The AGC time constant control capacitor node. Must be connected to a 0.1
F
capacitor to ground.
43
O
REFOUT
Output of the AGC which drives the YREF+ and CREF+ pins.
49
I
YREF+
The top of the reference ladder of the Y-ADC. This should be connected to
REFOUT.
62
I
YREF
The bottom of the reference ladder of the Y-ADC. This should be connected to ana-
log ground (AGND).
64
I
CREF+
The top of the reference ladder of the C-ADC. This should be connected to
REFOUT.
AGND/CREF+
May be connected to either AGND or REFOUT.
73
I
CREF
The bottom of the reference ladder of the C-ADC. This should be connected to ana-
log ground (AGND).
G
AGND
Ground for analog circuitry on Bt815A.
74
I
CLEVEL
An input to provide the DC level reference for the C-ADC. This voltage should be
one half of CREF+.
AGND/CLEVEL
May be connected to either AGND or 1/2 the voltage on CREF+ (the same connec-
tion as on the Bt819A and Bt817A.)
7
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
51
A
YABIAS
The Y ADC Bias pins. Should be left unconnected. For backward compatibility with
the Bt819/7/5, these pins may optionally be connected with 0.1
F capacitors to
ground.
46
A
YCBIAS
50
A
YDBIAS
70
A
CABIAS
The C ADC Bias pins. Should be left unconnected. For backward compatibility with
the Bt819/7/5, these pins may optionally be connected with 0.1
F capacitors to
ground.
69
A
CCBIAS
63
A
CDBIAS
70
NC
No Connect on Bt815A.
69
NC
63
NC
The I
2
C Interface Pins
19
I
SCL
The I
2
C Serial Clock Line.
18
I/O
SDA
The I
2
C Serial Data Line.
14
I
I2CCS
The I
2
C Chip Select Input (TTL compatible). This pin is used to select one of two
Bt819A devices in the same system. This pin is internally pulled to ground with an
effective 18 K
resistance.
15
I
RST
Reset control input (TTL compatible). A logical zero for a minimum of four consecu-
tive clock cycles resets the device to its default state. A logical zero for less than
eight XTAL cycles will leave the device in an undetermined state.
Table 2. Pin Descriptions Grouped By Pin Function
(2 of 6)
Pin #
I/O
Pin Name
Description
8
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
The Video Timing Unit Pins
82
O
HRESET
Horizontal Reset Output (TTL Compatible). This signal indicates the beginning of a
new line of video.
In SPI mode: this signal is 64 CLKx1 clock cycles wide. In SPI mode, the falling
edge of this output indicates the beginning of a new scan line of video.
In API mode: this signal is one clock cycle wide and is output relative to CLKIN.
In API mode, it immediately follows the last active pixel of a line.
Note: The polarity of this pin is programmable through the VPOLE register.
79
O
VRESET
Vertical Reset Output (TTL Compatible). This signal indicates the beginning of a
new field of video.
In SPI mode: this signal is output coincident with the rising edge of CLKx1, and
is normally six lines wide. The falling edge of VRESET indicates the beginning of a
new field of video.
In API mode: this signal is a one clock cycle wide, active low pulse output rela-
tive to CLKIN. It immediately follows the HRESET pixel, and it indicates that the
next active pixel is the first active pixel of the next field.
Note: The polarity of this pin is programmable through the VPOLE register.
83
O
ACTIVE
Active Video output (TTL compatible). This pin is a logical high during the
active/viewable periods of the video stream. The active region of the video stream
is programmable.
Note: The polarity of this pin is programmable through the VPOLE register.
85
I
RDEN
Asynchronous FIFO Read Enable signal (TTL compatible). A logical high on this
pin enables a read from the output FIFO. When using the Bt819A in SPI mode,
RDEN must be pulled low.
G
GND
Ground for digital circuitry on Bt817A and Bt815A.
94
O
QCLK
Qualified Clock Output. See "Output Interface" on page 37 for a complete descrip-
tion of the QCLK pin functions.
98
I
OE
Output Enable control (TTL compatible). All video timing unit output pins and all
clock interface output pins contain valid data following the rising edge of CLKIN,
after OE has been asserted low. The above outputs are three-stated when OE is
held high. This function is asynchronous. The three-stated pins include: VD[15:0],
HRESET, VRESET, ACTIVE, DVALID, CBFLAG, FIELD, AEF, AFF, QCLK, CLKx1,
and CLKx2.
78
O
FIELD
Odd/even field output (TTL compatible). High state on FIELD pin indicates that an
even field is being digitized.
Note: The polarity of this pin is programmable through the VPOLE register.
89
O
CBFLAG
Cb data identifier (TTL compatible). High state on this pin indicates that VD[7:0]
bus contains Cb chroma information.
Note: The polarity of this pin is programmable through the VPOLE register.
Table 2. Pin Descriptions Grouped By Pin Function
(3 of 6)
Pin #
I/O
Pin Name
Description
9
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
29
O
VD[15:8]
Digitized Video Data Outputs (TTL Compatible). VD0 is the least significant bit of
the bus in 16-bit mode. VD8 is the least significant bit of the bus in 8-bit mode.
In SPI mode: the information is output with respect to CLKx1 in 16-bit mode,
and CLKx2 in 8-bit mode. In SPI mode 2, this port is configured to output control
codes as well as data.
In API mode: this port may be used only in 16-bit mode with VD0 as the least
significant bit. The data is output with respect to CLKIN. In API mode, control codes
for HRESET and VRESET are always inserted into the data stream.
2229
O
VD[7:0]
84
O
DVALID
Data Valid Output (TTL Compatible).
In SPI mode: this pin indicates if a valid pixel is being output onto the data bus.
The Bt819A digitizes video at eight times the subcarrier rate, and outputs scaled
video. Therefore, there are more clocks than valid data. DVALID indicates when
valid pixel data is being output.
In API mode: DVALID performs a different function. It toggles high when the
FIFO has 20 locations filled, and remains high until the FIFO is empty. It can be
used to control FIFO reads for bursting information out of the FIFO. DVALID may
be programmed to toggle when almost full (32 pixels). In API mode, DVALID indi-
cates valid data in the FIFO, which includes both pixel information and control
codes.
Note: The polarity of this pin is programmable through the VPOLE register.
The FIFO Pins (Bt819A Only)
87
O
AEF
Almost Empty Flag. Indicates when there are less than 9 pixels in the FIFO. Note:
The AEF flag is pipelined to the output of the chip. Also, the FIFO is being written
into during this time. Therefore, the actual number of pixels in the FIFO when AEF
toggles will vary. The number of pixels remaining could be as low as 2. The system
should stop reading from the FIFO as soon as AEF indicates almost empty. See
Figure 28 for a recommended circuit.
NC
No Connect on Bt817A and Bt815A.
86
O
AFF
Almost Full Flag. Indicates when there are more than 32 FIFO locations full. It can
also be programmed to signal a half full condition (with 20 locations full).
Note: The polarity of this pin is programmable through the VPOLE register.
NC
No Connect on Bt817A and Bt815A.
91
I
CLKIN
Asynchronous FIFO output clock (TTL compatible). This asynchronous clock is
used to output data onto the VD15-VD0 bus and other VTU control signals. CLKX2
or CLKX1 outputs of the Bt819A can be tied to this pin.
When using the Bt819A in
SPI mode, CLKIN must be pulled low.
G
GND
Ground for digital circuitry on Bt817A and Bt815A.
88
I
FRST
FIFO Reset (TTL compatible). A logical 0 on this pin asynchronously resets the
read and write address pointers to zero.
When using the Bt819A in SPI mode,
FRST must be pulled high.
P
VDD
Power supply for digital circuitry on Bt817A and Bt815A.
Table 2. Pin Descriptions Grouped By Pin Function
(4 of 6)
Pin #
I/O
Pin Name
Description
10
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
The Clock Interface Pins
12
A
XT0I
Clock Zero pins. A 28.64 MHz (8*Fsc) fundamental (or third harmonic) crystal can
be tied directly to these pins, or a single-ended oscillator can be connected to XT0I.
CMOS level inputs must be used. This clock source is selected for NTSC input
sources. When the chip is configured to decode PAL but not NTSC (and therefore
only one clock source is needed), the 35.47 MHz source is connected to this port
(XT0).
13
A
XT0O
16
A
XT1I
Clock One pins. A 35.47 MHz (8*Fsc) fundamental (or third harmonic) crystal can
be tied directly to these pins, or a single-ended oscillator can be connected to XT1I.
CMOS level inputs must be used. This clock source is selected for PAL input
sources. If either NTSC or PAL is being decoded, and therefore only XT0I and
XT0O are connected to a crystal, XT1I should be tied either high or low, and XT1O
must be left floating.
17
A
XT1O
97
O
CLKX1
1x clock output (TTL compatible). The frequency of this clock is 4*Fsc (14.31818
MHz for NTSC or 17.734475 MHz for PAL).
99
O
CLKX2
2x clock output (TTL compatible). The frequency of this clock is 8*Fsc (28.63636
MHz for NTSC, or 35.46895 MHz for PAL).
80
I
NUMXTAL
Crystal Format Pin. This pin is set to indicate whether one or two crystals are
present so that the Bt819A can select XT1 or XT0 as the default in auto format
mode. A logical zero on this pin indicates one crystal is present. A logical one indi-
cates two crystals are present. This pin is internally pulled down to ground with an
effective 18 K
resistance.
The JTAG Pins
34
I
TCK
Test clock (TTL compatible). Used to synchronize all JTAG test structures. When
JTAG operations are not being performed, this pin must be driven to a logical low.
36
I
TMS
Test Mode Select (TTL compatible). JTAG input pin whose transitions drive the
JTAG state machine through it sequences. When JTAG operations are not being
performed, this pin must be left floating or tied high.
37
I
TDI
Test Data Input (TTL compatible). JTAG pin used for loading instruction to the TAP
controller or for loading test vector data for boundary-scan operation. When JTAG
operations are not being performed, this pin must be left floating or tied high.
32
O
TDO
Test Data Output (TTL compatible). JTAG pin used for verifying test results of all
JTAG sampling operations. This output pin is active for certain JTAG operations
and will be three-stated at all other times.
35
I
TRST
Test Reset (TTL compatible). JTAG pin used to initialize the JTAG controller. This
pin is tied low for normal device operation. When pulled high, the JTAG controller is
ready for device testing.
Table 2. Pin Descriptions Grouped By Pin Function
(5 of 6)
Pin #
I/O
Pin Name
Description
11
F
UNCTIONAL
D
ESCRIPTION
Pin Descriptions
Bt819A/7A/5A
Power And Ground Pins
1, 10,
20, 30,
38, 76,
92, 96
P
VDD +5 V
Power supply for digital circuitry. All VDD pins must be connected together as close
to the device as possible. A 0.1
F ceramic capacitor should be connected between
each group of VDD pins and the ground plane as close to the device as possible.
40, 44,
48, 60,
65, 72
P
VAA +5 V
VPOS +5 V
Power supply for analog circuitry. All VAA pins and VPOS must be connected
together as close to the device as possible. A 0.1
F ceramic capacitor should be
connected between each group of VAA pins and the ground plane as close to the
device as possible.
11, 21,
31, 33,
39, 77,
81, 90,
93, 95,
100
G
GND
Ground for digital circuitry. All GND pins must be connected together as close to the
device as possible.
81
NC
May be left unconnected.
42, 47,
54, 56,
58, 61,
66, 71,
75
G
AGND
VNEG
Ground for analog circuitry. All AGND pins and VNEG must be connected together
as close to the device as possible.
I/O Column Legend:
I = Digital Input
O = Digital Output
I/O = Digital Bidirectional
A = Analog
G = Ground
P = Power
Table 2. Pin Descriptions Grouped By Pin Function
(6 of 6)
Pin #
I/O
Pin Name
Description
12
F
UNCTIONAL
D
ESCRIPTION
Pin Assignments
Bt819A/7A/5A
Pin Assignments
Figure 2. Bt819A Pinout
Notes: (1). Alternate pin definitions for Bt817A and Bt815A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
NUMXTAL
VRESET
FIELD
GND
VDD
AGND
CLEVEL
(1)
CREF
(1)
VAA
AGND
CABIAS
(1)
CCBIAS
(1)
NC
CIN
(1)
AGND
VAA
CREF+
(1)
CDBIAS
(1)
YREF
AGND
VAA
SYNCDET
AGND
MUX1
AGND
MUX0
AGND
MUXOUT
YIN
YABIAS
GND
CLKX2
OE
CLKX1
VDD
GND
GND
QCLK
CLKIN
(1
)
CBFLAG
AEF
(1)
AFF
(1)
RDEN
(1)
DVALID
ACTIVE
HRESET
GND
TDO
GND
TCK
TRST
TMS
TDI
VDD
GND
VPOS
AGCCAP
VNEG
REFOUT
VAA
MUX2
YCBIAS
AGND
VAA
YREF+
YDBIAS
VDD
VD15
VD14
VD13
VD12
VD11
VD10
VD9
VD8
VDD
GND
VD7
VD6
VD5
VD4
VD3
VD2
VD1
VD0
VDD
GND
XT0I
XT0O
RST
XT1I
XT1O
SDA
SCL
I2CCS
VDD
GND
(1)
VDD
GND
FRST
(1)
Bt819A
13
F
UNCTIONAL
D
ESCRIPTION
Pin Assignments
Bt819A/7A/5A
Figure 3. Bt817A Pinout
Notes: (1). Alternate pin definitions for Bt819A and Bt815A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
NUMXTAL
VRESET
FIELD
GND
VDD
AGND
CLEVEL
(1)
CREF
(1)
VAA
AGND
CABIAS
(1)
CCBIAS
(1)
NC
CIN
(1)
AGND
VAA
CREF+
(1)
CDBIAS
(1)
YREF
AGND
VAA
SYNCDET
AGND
MUX1
AGND
MUX0
AGND
MUXOUT
YIN
YABIAS
GND
CLKX2
OE
CLKX1
VDD
GND
GND
QCLK
GND
(1)
CBFLAG
NC
(1)
NC
(1)
GND
(1)
DVALID
ACTIVE
HRESET
GND
TDO
GND
TCK
TRST
TMS
TDI
VDD
GND
VPOS
AGCCAP
VNEG
REFOUT
VAA
MUX2
YCBIAS
AGND
VAA
YREF+
YDBIAS
VDD
VD15
VD14
VD13
VD12
VD11
VD10
VD9
VD8
VDD
GND
VD7
VD6
VD5
VD4
VD3
VD2
VD1
VD0
VDD
GND
XT0I
XT0O
RST
XT1I
XT1O
SDA
SCL
I2CCS
VDD
NC
(1)
VDD
GND
VDD
(1)
Bt817A
14
F
UNCTIONAL
D
ESCRIPTION
Pin Assignments
Bt819A/7A/5A
Figure 4. Bt815A Pinout
Notes: (1). Alternate pin definitions for Bt819A and Bt817A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
63
62
61
60
59
58
57
56
55
54
53
52
51
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
NUMXTAL
VRESET
FIELD
GND
VDD
AGND
AGND/CLEVEL
(1)
AGND
(1)
VAA
AGND
NC
(1)
NC
(1)
NC
NC
(1)
AGND
VAA
AGND/CREF+
(1)
NC
(1)
YREF
AGND
VAA
SYNCDET
AGND
MUX1
AGND
MUX0
AGND
MUXOUT
YIN
YABIAS
GND
CLKX2
OE
CLKX1
VDD
GND
GND
QCLK
GND
(1)
CBFLAG
NC
(1)
NC
(1)
GND
(1)
DVALID
ACTIVE
HRESET
GND
TDO
GND
TCK
TRST
TMS
TDI
VDD
GND
VPOS
AGCCAP
VNEG
REFOUT
VAA
MUX2
YCBIAS
AGND
VAA
YREF+
YDBIAS
VDD
VD15
VD14
VD13
VD12
VD11
VD10
VD9
VD8
VDD
GND
VD7
VD6
VD5
VD4
VD3
VD2
VD1
VD0
VDD
GND
XT0I
XT0O
RST
XT1I
XT1O
SDA
SCL
I2CCS
VDD
NC
(1)
VDD
GND
VDD
(1)
Bt815A
15
F
UNCTIONAL
D
ESCRIPTION
UltraLock
Bt819A/7A/5A
UltraLock
The Challenge
The line length (the interval between the midpoints of succeeding horizontal sync
pulses) of analog video sources is not constant. For a stable source such as studio
quality source or test signal generators, this variation is very small:
2 ns. Howev-
er, for an unstable source such as a VCR, laser disk player, or TV tuner, line length
variation is as much as a few microseconds.
Digital display systems require a fixed number of pixels per line despite these
variations. The Bt819A employs a technique known as UltraLock to implement
locking to the horizontal sync and the subcarrier of the incoming analog video sig-
nal by generating the required number of pixels per line.
Operation Principles
of UltraLock
UltraLock is based on sampling using a fixed-frequency stable clock. Since the
video line length will vary, the number of samples generated using a fixed-frequen-
cy sample clock will also vary from line to line. If the number of generated samples
per line is always greater than the number of samples per line required by the par-
ticular video format, the number of acquired samples can be reduced to fit the re-
quired number of pixels per line.
The Bt819A requires an 8*Fsc (28.64 MHz for NTSC and 35.47 MHz for PAL)
crystal or oscillator input signal source. The 8*Fsc clock signal, or CLKx2, is di-
vided down to CLKx1 internally (14.32 MHz for NTSC and 17.73 MHz for PAL).
Both CLKx2 and CLKx1 are made available to the system. UltraLock operates at
CLKx1 although the input waveform is sampled at CLKx2 then low pass filtered
and decimated to CLKx1 sample rate.
At a 4*Fsc (CLKx1) sample rate there are 910 pixels for NTSC and 1,135 pixels
for PAL within a nominal line time interval (63.5
s for NTSC and 64
s for PAL).
For square pixel NTSC and PAL formats there should only be 780 and 944 pixels
per video line, respectively. This is because the square pixel clock rates are slower
than a 4*Fsc clock rate, i.e., 12.27 MHz for NTSC and 14.75 MHz for PAL.
UltraLock accommodates line length variations from nominal in the incoming
video by always acquiring more samples, at an effective 4*Fsc rate, than are re-
quired by the particular video format and outputting the correct number of pixels
per line. UltraLock then interpolates the required number of pixels in a way that
maintains the stability of the original image despite variation in the line length of
the incoming analog waveform.
The example illustrated in Figure 5 shows three successive lines of video being
decoded for square pixel NTSC output. The first line is shorter than the nominal
NTSC line time interval of 63.5
s. On this first line, a line time of 63.2
s sampled
at 4*Fsc (14.32 MHz) generates only 905 pixels. The second line matches the
nominal line time of 63.5
s and provides the expected 910 pixels. Finally, the
16
F
UNCTIONAL
D
ESCRIPTION
UltraLock
Bt819A/7A/5A
third line is too long at 63.8
s within which 913 pixels are generated. In all three
cases, UltraLock sends only 780 pixels through the output FIFO.
UltraLock can be used to extract any programmable number of pixels from the
original video stream as long as the sum of the nominal pixel line length (910 for
NTSC and 1,135 for PAL) and the worst case line length variation from nominal in
the active region is greater than or equal to the required number of output pixels per
line, i.e.,
For a description of how the Bt819A uses the FIFO and the output interface,
please see the Output Interface section in the Electrical Interfaces chapter.
It should be noted that, for stable inputs, UltraLock guarantees the time between
the falling edges of HRESET only to within one pixel. UltraLock does, however,
guarantee the number of active pixels in a line as long as the above relationship
holds.
Figure 5. UltraLock Behavior for NTSC Square Pixel Output
Analog
Waveform
63.2 ms
63.5 ms
63.8 ms
905 pixels
910 pixels
913 pixels
Line
Length
Pixels
Per Line
780 pixels
780 pixels
780 pixels
Pixels
Sent to
the FIFO
by
UltraLock
P
Nom
P
Var
+
P
Desired
where:
P
Nom
= Nominal number of pixels per line at 4*Fsc sample rate
(910 for NTSC, 1,135 for PAL)
P
Var
= Variation of pixel count from nominal at 4*Fsc (can be a
positive or negative number)
P
Desired
= Desired number of output pixels per line
17
F
UNCTIONAL
D
ESCRIPTION
Y/C Separation and Chroma Demodulation
Bt819A/7A/5A
Y/C Separation and Chroma Demodulation
Y/C separation and chroma decoding are handled as shown in Figure 6. Bandpass
and notch filters are implemented to separate the composite video stream. The fil-
ter responses are shown in Figure 7. The optional chroma comb filter is imple-
mented in the vertical scaling block. See the Video Scaling, Cropping, and
Temporal Decimation section in this chapter.
Figure 6. Y/C Separation and Chroma Demodulation for Composite Video
N
OTCH
F
ILTER
B
AND
P
ASS
F
ILTER
L
OW
P
ASS
F
ILTER
L
OW
P
ASS
F
ILTER
SIN
COS
Y
Q
OR
U
I
OR
V
C
OMPOSITE
Figure 7. Y/C Separation Filter Responses
NTSC
PAL
NTSC
PAL
18
F
UNCTIONAL
D
ESCRIPTION
Y/C Separation and Chroma Demodulation
Bt819A/7A/5A
Figure 8 is the combined frequency response of the optional luma 3 MHz low
pass filter (Figure 9 in the Video Scaling section), and the luma notch filter in
Figure 7. The luma decimation filter is typically enabled during scaling to CIF res-
olution or below. When scaling is not implemented, the luma decimation filter will
normally be bypassed (optional), providing a luma spectrum as shown in Figure 7.
Figure 8 shows the combined filter response of the Luma Notch, the Optional
Luma 3 MHz Low Pass and the Oversampling filters. Figure 11 shows the com-
bined filter response of the Luma Notch and Oversampling filters. Figure 12 sche-
matically describes the filtering and scaling operations.
In addition to the Y/C separation and chroma demodulation illustrated in
Figure 6, the Bt819A also supports chrominance comb filtering as an optional fil-
tering stage after chroma demodulation. The chroma demodulation generates
baseband I and Q (NTSC) or U and V (PAL) color difference signals.
For S-Video operation, the digitized luma data bypasses the Y/C separation
block completely, and the digitized chrominance is passed directly to the chroma
demodulator.
For monochrome operation, the Y/C separation block is also bypassed, and the
saturation registers (SAT_U and SAT_V) are set to zero.
Figure 8. Combined Luma Notch and Optional Luma 3 MHz Low Pass Filter Response
NTSC
PAL
19
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Video Scaling, Cropping, and Temporal Decimation
Overview
The Bt819A provides three mechanisms to reduce the amount of video pixel data
in its output stream; down-scaling, cropping, and temporal decimation. All three
can be controlled independently.
Figure 9. Optional Luma 3 MHz Low Pass Filter Response
NTSC
PAL
20
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Figure 10. Combined Luma Notch, Optional Luma 3 MHz Low Pass, and Oversampling Filter Response
NTSC
PAL
C
OMBINED
RESPONSE
OF
FILTERS
IN
FIGURES
7, 9,
AND
17
Figure 11. Combined Luma Notch and Oversampling Filter Response
NTSC
PAL
C
OMBINED
RESPONSE
OF
FILTERS
IN
FIGURES
7
AND
17
21
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Horizontal and
Vertical Scaling
The Bt819A provides independent and arbitrary horizontal and vertical down scal-
ing. The maximum scaling ratio is 14:1 in both X and Y dimensions. The different
methods utilized for scaling luminance and chrominance are described in the fol-
lowing sections.
Luminance Scaling
The first stage in horizontal luminance scaling is an optional pre-filter which pro-
vides the capability to reduce anti-aliasing artifacts. It is generally desirable to lim-
it the bandwidth of the luminance spectrum prior to performing horizontal scaling
because the scaling of high-frequency components may cause image artifacts in
the resized image. The 3 MHz low pass filter shown in Figure 9 reduces the hori-
zontal high-frequency spectrum in the luminance signal.
The Bt819A implements horizontal scaling through poly-phase interpolation.
The Bt819A uses 32 different phases to accurately interpolate the value of a pixel.
This provides an effective pixel jitter of 6 ns.
In simple pixel- and line-dropping algorithms, non-integer scaling ratios intro-
duce a step function in the video signal that effectively introduces high-frequency
spectral components. Poly-phase interpolation accurately interpolates to the cor-
rect pixel and line position providing more accurate information. This results in
aesthetically pleasing video as well as higher compression ratios in bandwidth lim-
ited applications. For vertical scaling, the Bt819A uses a 768x8-bit line store to im-
plement a 2-tap, 8-phase interpolation filter. The Bt817A and Bt815A employ line
dropping for vertical scaling.
Figure 12. Filtering and Scaling
Note: Z
1
refers to a pixel delay in the horizontal direction, and a line delay in the vertical direction. The coefficients
are determined by UltraLock and the scaling algorithm
C
HROMINANCE
1
2
---
1
2
--- Z
1
+
=
L
UMINANCE
C
DZ
1
+
=
V
ERTICAL
S
CALER
L
UMINANCE
A
BZ
1
CZ
2
DZ
3
EZ
4
FZ
5
+
+
+
+
+
=
C
HROMINANCE
G
HZ
1
+
=
H
ORIZONTAL
S
CALER
6 T
AP
, 32 P
HASE
I
NTERPOLATION
768 X 8
L
INE
S
TORE
2 L
INE
, 8 P
HASE
AND
H
ORIZONTAL
S
CALING
2 T
AP
, 32 P
HASE
I
NTERPOLATION
768 X 8
L
INE
S
TORE
AND
AND
H
ORIZONTAL
S
CALING
C
HROMA
C
OMB
L
OW
P
ASS
F
ILTER
Y
Y
C
C
O
PTIONAL
H
ORIZONTAL
V
ERTICAL
S
CALING
V
ERTICAL
S
CALING
(C
HROMA
C
OMB
)
3 MH
Z
22
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Chrominance Scaling
A 2-tap, 32-phase interpolation filter is used for horizontal scaling of chrominance.
Vertical scaling of chrominance is implemented through simple decimation or line
dropping, followed by chrominance comb filtering using a 768x8-bit line store.
Scaling Registers
The Horizontal Scaling Ratio Register (HSCALE) is programmed with the hor-
izontal scaling ratio. When outputting unscaled video (in NTSC), the Bt819A will
output 910 pixels per line. This corresponds to the pixel rate at f
CLKx1
(4*Fsc).
This register is the control for scaling the video to the desired size. For example,
square pixel NTSC requires 780 samples per line, while CCIR601 requires 858
samples per line. HSCALE_HI and HSCALE_LO are two 8-bit registers that,
when concatenated, form the 16-bit HSCALE register.
The method below uses pixel ratios to determine the scaling ratio. As such, no
floating point math is involved. This is an advantage in certain applications, such
as when the scaling is being dynamically controlled by the user with a mouse. The
following formula should be used to determine the scaling ratio to be entered into
the 16-bit register:
For example, to scale PAL input to square pixel QCIF, the total number of horizon-
tal pixels is 236:
An alternative method for determining the HSCALE value uses the ratio of the
scaled active region to the unscaled active region as shown below:
In this equation, the HACTIVE value cannot be cropped; it represents the total ac-
tive region of the video line. This equation produces roughly the same result as us-
ing the full line length ratio shown in the first example. However, due to truncation,
the HSCALE values determined using the active pixel ratio will be slightly differ-
ent than those obtained using the total line length pixel ratio. The values in Table 3
were calculated using the full line length ratio.
NTSC:
HSCALE = [ ( 910/P
desired
) 1] * 4096
PAL:
HSCALE = [ ( 1135/P
desired
) 1] * 4096
where:
P
desired
= Desired number of pixels per line of video, includ-
ing active, sync and blanking.
HSCALE = [ ( 1135/236 ) 1 ] * 4096
= 15602
= 0x3CF2
NTSC:
HSCALE = [ (754 / HACTIVE) 1] * 4096
PAL:
HSCALE = [ (922 / HACTIVE) 1] * 4096
where:
HACTIVE = Desired number of pixels per line of video, not in-
cluding sync or blanking.
23
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
The Vertical Scaling Ratio Register (VSCALE) is programmed with the ver-
tical scaling ratio. It defines the number of vertical lines output by the Bt819A. The
following formula should be used to determine the value to be entered into this
13-bit register. The loaded value is a two's-complement, negative value.
For example, to scale PAL input to square pixel QCIF, the total number of vertical
lines is 156:
Note that only the 13 least significant bits of the VSCALE value are used. The five
LSB's of VSCALE_HI and the 8-bit VSCALE_LO register form the 13-bit
VSCALE register. The three MSB's of VSCALE_HI are used to control other
functions. The user must take care not to alter the values of the three most
significant bits when writing a vertical scaling value. The following C-code
fragment illustrates changing the vertical scaling value:
#define BYTE unsigned char
#define WORD unsigned int
#define VSCALE_HI 0x13
#define VSCALE_LO 0x14
BYTE ReadFromBt819A( BYTE regAddress );
void WriteToBt819A( BYTE regAddress, BYTE regValue );
void SetBt819AVScaling( WORD VSCALE )
{
BYTE oldVscaleMSByte, newVscaleMSByte;
/* get existing VscaleMSByte value from */
/* Bt819A VSCALE_HI register */
oldVscaleMSByte = ReadFromBt819A( VSCALE_HI );
/* create a new VscaleMSByte, preserving top 3 bits */
newVscaleMSByte = (oldVscaleMSByte & 0xE0) | (VSCALE >> 8);
/* send the new VscaleMSByte to the VSCALE_HI reg */
WriteToBt819A( VSCALE_HI, newVscaleMSByte );
/* send the new VscaleLSByte to the VSCALE_LO reg */
WriteToBt819A( VSCALE_LO, (BYTE) VSCALE );
}
VSCALE = ( 0x10000 { [ ( scaling_ratio ) 1] * 512 } ) & 0x1FFF
VSCALE = ( 0x10000 { [ ( 4/1 ) - 1 ] * 512 } ) & 0x1FFF
= 0x1A00
where:
&
= bitwise AND
|
= bitwise OR
>>
= bit shift, MSB to LSB
24
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
If your target machine has sufficient memory to statically store the scaling val-
ues locally, the READ operation can be eliminated.
Note on vertical scaling: When scaling below CIF resolution, it may be useful
to use a single field as opposed to using both fields. Using a single field will ensure
there are no inter-field motion artifacts on the scaled output. When performing sin-
gle field scaling, the vertical scaling ratio will be twice as large as when scaling
with both fields. For example, CIF scaling from one field does not require any ver-
tical scaling, but when scaling from both fields, the scaling ratio is 50%. Also, the
non-interlaced bit should be reset when scaling from a single field (INT=0 in the
VSCALE_HI register). Table 3 lists scaling ratios for various video formats, and
the register values required.
Image Cropping
Cropping enables the user to output any subsection of the video image. The
ACTIVE flag can be programmed to start and stop at any position on the video
frame as shown in Figure 13. The start of the active area in the vertical direction is
referenced to VRESET (beginning of a new field). In the horizontal direction it is
referenced to HRESET (beginning of a new line). The dimensions of the active
video region are defined by HDELAY, HACTIVE, VDELAY, and VACTIVE. All
four registers are 10-bit values. The two MSBs of each register are contained in the
CROP register, while the lower eight bits are in the respective HDELAY_LO,
HACTIVE_LO, VDELAY_LO and VACTIVE_LO registers. The vertical and
horizontal delay values determine the position of the cropped image within a frame
while the horizontal and vertical active values set the pixel dimensions of the
cropped image as illustrated in Figure 13.
Table 3. Scaling Ratios for Popular Formats Using Frequency Values
Scaling Ratio
Format
Total
Resolution
(including
sync and
blanking
interval)
Output
Resolution
(Active Pixels)
HSCALE
Register
Values
VSCALE Register Values
Use Both
Fields
Single
Field
Full Resolution
1:1
NTSC SQ Pixel
NTSC CCIR601
PAL CCIR601
PAL SQ Pixel
780x525
858x525
864x625
944x625
640x480
720x480
720x576
768x576
0x02AA
0x00F8
0x0504
0x033C
0x0000
0x0000
0x0000
0x0000
N/A
N/A
N/A
N/A
CIF
2:1
NTSC SQ Pixel
NTSC CCIR601
PAL CCIR601
PAL SQ Pixel
390x262
429x262
432x312
472x312
320x240
360x240
360x288
384x288
0x1555
0x11F0
0x1A09
0x1679
0x1E00
0x1E00
0x1E00
0x1E00
0x0000
0x0000
0x0000
0x0000
QCIF
4:1
NTSC SQ Pixel
NTSC CCIR601
PAL CCIR601
PAL SQ Pixel
195x131
214x131
216x156
236x156
160x120
180x120
180x144
192x144
0x3AAA
0x3409
0x4412
0x3CF2
0x1A00
0x1A00
0x1A00
0x1A00
0x1E00
0x1E00
0x1E00
0x1E00
ICON
8:1
NTSC SQ Pixel
NTSC CCIR601
PAL CCIR601
PAL SQ Pixel
97x65
107x65
108x78
118x78
80x60
90x60
90x72
96x72
0x861A
0x7813
0x9825
0x89E5
0x1200
0x1200
0x1200
0x1200
0x1A00
0x1A00
0x1A00
0x1A00
25
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Figure 13. Effect of the Cropping and Active Registers
R
ISING
EDGE
OF
VRESET
F
ALLING
EDGE
OF
HRESET
Video frame
HACTIVE
HDELAY
VDELAY
VACTIVE
Video frame
HACTIVE
HDELAY
VDELAY
VACTIVE
Cropped image
Cropped image
scaled to
1/2 size
26
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Cropping Registers
The Horizontal Delay Register (HDELAY) is programmed with the delay be-
tween the falling edge of HRESET and the rising edge of ACTIVE. The count is
programmed with respect to the scaled frequency clock. Note that HDELAY
should always be an even number.
The Horizontal Active Register (HACTIVE) is programmed with the actual
number of active pixels per line of video. This is equivalent to the number of scaled
pixels that the Bt819A should generate on a line. For example, if this register con-
tained 90, and HSCALE was programmed to downscale by 4:1, then 90 active pix-
els would be output. The 90 pixels would be a 4:1 scaled image of the 360 pixels
(at CLKx1) starting at count HDELAY. HACTIVE is restricted in the following
manner:
HACTIVE + HDELAY
Total Number of Scaled Pixels.
For example, in the NTSC square pixel format, there is a total of 780 pixels, in-
cluding blanking, sync and active regions. Therefore:
HACTIVE + HDELAY
780.
When scaled by 2:1 for CIF, the total number of active pixels is 390. Therefore:
HACTIVE +HDELAY
390.
The HDELAY register is programmed with the number of scaled pixels be-
tween HRESET and the first active pixel. Because the front porch is defined as the
distance between the last active pixel and the next horizontal sync, the video line
can be considered in three components: HDELAY, HACTIVE and the front porch.
See Figure 14. When cropping is not implemented, the number of clocks at the 4x
sample rate (the CLKx1 rate) in each of these regions is shown below:
The value for HDELAY is calculated using the following formula:
HDELAY = [(CLKx1_HDELAY / CLKx1_HACTIVE) * HACTIVE] & 0x3FE
CLKx1_HDELAY and CLKx1_HACTIVE are constant values, so the equation
becomes:
NTSC:
HDELAY = [(135 / 754) * HACTIVE] & 0x3FE
PAL:
HDELAY = [(186 / 922) * HACTIVE] & 0x3FE
CLKx1
Front Porch
CLKx1
HDELAY
CLKx1
HACTIVE
CLKx1
Total
NTSC
21
135
754
910
PAL
27
186
922
1135
27
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
The Vertical Delay Register (VDELAY) is programmed with the delay be-
tween the rising edge of VRESET and the start of active video lines. It determines
how many lines to skip before initiating the ACTIVE signal. It is programmed with
the number of lines to skip at the beginning of a frame.
The Vertical Active Register (VACTIVE) is programmed with the number of
lines used in the vertical scaling process. The actual number of vertical lines output
from the Bt819A is equal to this register times the vertical scaling ratio. If
VSCALE is set to 0x1A00 (4:1) then the actual number of lines output is
VACTIVE/4. If VSCALE is set to 0x0000 (1:1) then VACTIVE contains the actual
number of vertical lines output.
Note: It is important to note the difference between the implementation of the
horizontal registers (HSCALE, HDELAY, and HACTIVE) and the vertical
registers (VSCALE, VDELAY, and VACTIVE). Horizontally, HDELAY and
HACTIVE are programmed with respect to the scaled pixels defined by HSCALE.
Vertically, VDELAY and VACTIVE are programmed with respect to the number of
lines before scaling (before VSCALE is applied).
Temporal Decimation
Temporal decimation provides a solution for video synchronization during periods
when full frame rate can not be supported due to bandwidth and system restric-
tions.
For example, when capturing live video for storage, system limitations such as
hard disk transfer rates or system bus bandwidth may limit the frame capture rate.
If these restrictions limit the frame rate to 15 frames per second, the Bt819A's time
scaling operation will enable the system to capture every other frame instead of al-
lowing the hard disk timing restrictions to dictate which frame to capture. This
maintains an even distribution of captured frames and alleviates the "jerky" effects
caused by systems that simply burst in data when the bandwidth becomes avail-
able.
The Bt819A provides temporal decimation on either a field or frame basis. The
temporal decimation register (TDEC) is loaded with a value from 1 to 60 (NTSC)
or 1 to 50 (PAL). This value is the number of fields or frames skipped by the chip
during a sequence of 60 for NTSC or 50 for PAL. Skipped fields and frames are
considered inactive, which is indicated by the ACTIVE pin remaining low and
QCLK becoming inactive.
Figure 14. Regions of the Video Signal
HDELAY
HACTIVE
F
RONT
P
ORCH
28
F
UNCTIONAL
D
ESCRIPTION
Video Scaling, Cropping, and Temporal Decimation
Bt819A/7A/5A
Examples:
When changing the programming in the temporal decimation register, 0x00 should
be loaded first, and then the decimation value. This will ensure that the decimation
counter is reset to zero. If zero is not first loaded, the decimation may start on any
field or frame in the sequence of 60 (or 50 for PAL). On power-up, this preload is
not necessary because the counter is internally reset.
When decimating fields, The Bt819A/7A/5A does not guarantee starting on an
even or odd field.
TDEC = 0x02
Decimation is performed by frames. Two frames
are skipped per 60 frames of video, assuming
NTSC decoding.
Frames 129 are output normally, then
ACTIVE remains low for one frame. Frames
3059 are then output followed by another frame
of inactive video.
TDEC = 0x9E
Decimation is performed by fields. Thirty fields
are output per 60 fields of video, assuming
NTSC decoding.
This value outputs every other field (every
odd field) of video starting with field one in
frame one.
TDEC = 0x01
Decimation is performed by frames. One frame
is skipped per 50 frames of video, assuming PAL
decoding.
TDEC = 0x00
Decimation is not performed. Full frame rate
video is output by the Bt819A.
29
F
UNCTIONAL
D
ESCRIPTION
Video Adjustments
Bt819A/7A/5A
Video Adjustments
The Bt819A provides programmable hue, contrast, saturation, and brightness.
The Hue Adjust
Register (HUE)
The Hue Adjust Register is used to offset the hue of the decoded signal. In NTSC,
the hue of the video signal is defined as the phase of the subcarrier with reference
to the burst. The value programmed in this register is added or subtracted from the
phase of the subcarrier, which effectively changes the hue of the video. The hue
can be shifted by plus or minus 90 degrees. Because of the nature of PAL encoding,
hue adjustments can not be made when decoding PAL.
The Contrast Adjust
Register (CONTRAST)
The Contrast Adjust Register (also called the luma gain) provides the ability to
change the contrast from approximately 0% to 200% of the original value. The de-
coded luma value is multiplied by the 9-bit coefficient loaded into this register.
The Saturation
Adjust Registers
(SAT_U, SAT_V)
The Saturation Adjust Registers are additional color adjustment registers. It is a
multiplicative gain of the U and V signals. The value programmed in these regis-
ters are the coefficients for the multiplication. The saturation range is from approx-
imately 0% to 200% of the original value.
The Brightness
Register (BRIGHT)
The Brightness Register is simply an offset for the decoded luma value. The pro-
grammed value is added or subtracted from the original luma value which changes
the brightness of the video output. The luma output is in the range of 0 to 255.
Brightness adjustment can be made over a range of 64 to +63.
Insert a blank page here. This is page 30
31
E
LECTRICAL
I
NTERFACES
Input Interface
Analog Signal Selection
The Bt819A contains an on-chip 3:1 mux. This mux can be used to switch between
three composite sources or two composite sources and one S-video source. In the
first configuration, connect the inputs of the mux (MUX0, MUX1 and MUX2) to
the three composite sources. In the second configuration, connect two inputs to the
composite sources and the other input to the luma component of the S-video con-
nector. In both configurations the output of the mux (MUXOUT) should be con-
nected to the input to the luma A/D (YIN) and the input to the sync detection
circuitry (SYNCDET). When implementing S-video, the input to the chroma A/D
(CIN) should be connected to the chroma signal of the S-video connector.
Use of the multiplexer is not a requirement for operation. If digitization of only
one video source is required, the source may be connected directly to YIN and
SYNCDET.
Multiplexer
Considerations
The multiplexer is not a break-before-make design. Therefore, during the multi-
plexer switching time it is possible for the input video signals to be momentarily
connected together through the equivalent of 200 ohms.
The multiplexers cannot be switched on a real-time pixel-by-pixel basis.
Autodetection of NTSC or
PAL Video
If the Bt819A is configured to decode both NTSC and PAL, the Bt819A can be
programmed to automatically detect which format is being input to the chip. Au-
todetection will select the proper clock source for the format detected, (if NTSC is
detected then XTAL0 is selected, if PAL is detected XTAL1 is selected.) Alterna-
tively, the decoding configuration can be programmed by writing to the Input For-
mat Register (0x01).
The Bt819A determines the video source input to the chip by counting the num-
ber of lines in a frame. The result of this is indicated in bit NUML in the STATUS
register. Based on this bit, the format of the video is determined, and XT0 or XT1
is selected for the clock source. Automatic format detection will select the clock
source, but it will not program the required registers. The scaling and cropping reg-
isters (VSCALE, HSCALE, VDELAY, HDELAY, VACTIVE, and HACTIVE) as
well as the burst delay and AGC delay registers (BDELAY and ADELAY) must be
programmed accordingly.
32
E
LECTRICAL
I
NTERFACES
Input Interface
Bt819A/7A/5A
Flash A/D Converters
The Bt819A and Bt817A use two on-chip flash A/D converters to digitize the video
signals. YREF+, CREF+ and YREF, CREF are the respective top and bottom of
the internal resistor ladder.
The input video is always AC-coupled to the decoder. CREF and YREF are
connected to analog ground. The voltage levels for YREF+ and CREF+ are con-
trolled by the gain control circuitry. If the input video momentarily exceeds the
corresponding REF+ voltage it is indicated by LOF and COF in the STATUS reg-
ister. The Bt815A has only the luma A/D for decoding composite video. The chro-
ma A/D pins are not available on the Bt815A.
A/D Clamping
An internally generated clamp control signal is used to clamp the inputs of the A/D
converter for DC restoration of the video signals. Clamping for both the YIN and
CIN analog inputs occurs within the horizontal sync tip. The YIN input is always
restored to ground while the CIN input is always restored to CLEVEL. CLEVEL
must be set with an external resistor network so that it is biased to the midpoint be-
tween CREF and CREF+. External clamping is not required because internal
clamping is automatically performed.
Automatic Gain Controls
The REFOUT, CREF+ and YREF+ pins should be connected together as shown in
Figure 15. In this configuration, the Bt819A controls the voltage for the top of the
reference ladder for each A/D. The automatic gain control adjusts the YREF+ and
CREF+ voltage levels until the back porch of the Y video input generates a digital
code 0x38 from the A/D. If the video being digitized has a non-standard sync
height to video height ratio, the digital code used for AGC may be changed by pro-
gramming the ADC Interface Register (0x1A).
Crystal Inputs and Clock
Generation
The Bt819A has two pairs of pins, XT0I/XT0O and XT1I/XT1O, that are used to
input a clock source. If both NTSC and PAL video are being digitized, both clock
inputs must be implemented. The XT0 port is used to decode NTSC video and
must be configured with a 28.63636 MHz source. The XT1 port is used to decode
PAL video and must be configured with a 35.46895 MHz source.
If the Bt819A is configured to decode either NTSC or PAL but not both, then
only one clock source must be provided to the chip and it must be connected to the
XT0I/XT0O port.
Crystals are specified as follows:
28.636363 MHz or 35.468950 MHz
Third overtone
Parallel resonant
30 pF load capacitance
50 ppm
Series resistance 40
or less
33
E
LECTRICAL
I
NTERFACES
Input Interface
Bt819A/7A/5A
The following crystals are recommended for use with the Bt819A:
1
Standard : This vendor will support very short lead times.
(818) 443-2121
2BAK28M636363GLE30A
2BAK35M468950GLE30A
2
MMD
(714) 444-1402
A30AA3-28.63636MHZ
A30AA3-35.46895MHZ
3
GED
(619) 591-4170
PKHC49-28.63636-.030-005-40R, 3rd overtone crystal
PKHC49-35.46895-.030-005-40R, 3rd overtone crystal
4
M-Tron
(800) 762-8800
MP-1 28.63636, 3rd overtone crystal
MP-1 35.46895, 3rd overtone crystal
5
Monitor
(619) 433-4510
MM49X3C3A-28.63636, 3rd overtone crystal
MM49X3C3A-35.46895, 3rd overtone crystal
6
CTS
(815) 786-8411
R3B55A30-28.63636, 3rd overtone crystal
R3B55A30-35.46895, 3rd overtone crystal
7
Fox
(813) 693-0099
HC49U-28.63636, 3rd overtone crystal
HC49U-35.46895, 3rd overtone crystal
The two clock sources may be configured with either single-ended oscillators,
fundamental cut crystals or third overtone mode crystals, parallel resonant. If sin-
gle-ended oscillators are used they must be connected to XT0I and XT1I. The
clock source options and circuit requirements are shown in Figure 16.
The clock source tolerance should be 50 parts-per-million (ppm) or less.
Devices that output CMOS voltage levels are required. The load capacitance in the
crystal configurations may vary depending on the magnitude of board parasitic ca-
pacitance. The Bt819A is dynamic, and, to ensure proper operation, the clocks
must be always running, with a minimum frequency of 28.64 MHz.
The CLKx1 and CLKx2 outputs from the Bt819A are generated from XT0 and
XT1 clock sources. CLKx2 operates at the crystal frequency (8xFsc) while CLKx1
operates at half the crystal frequency (4xFsc).
34
E
LECTRICAL
I
NTERFACES
Input Interface
Bt819A/7A/5A
Figure 15. Typical External Circuitry
75
330 pF
330 pF
0.1
F
3.3
H
75
330 pF
330 pF
0.1
F
3.3
H
75
330 pF
330 pF
0.1
F
3.3
H
MUX1
MUX2
CIN *
0.1
F
1 M
MUXOUT
YIN
SYNCDET
CREF *
YREF
CLEVEL *
REFOUT
YREF+
CREF+ *
VAA
2 K
0.1
F
30 K
30 K
0.1
F
XT0I
XT0O
2.7
H
22 pF
33 pF
0.1
F
28.63636
XT1I
XT1O
2.2
H
22 pF
33 pF
0.1
F
35.46895
0.1
F
JTAG
I
2
C
Video Timing
Anti-aliasing Filter
75
Termination
AC Coupling
Capacitor
1 M
1 M
MHz
MHz
Analog Ground
Digital Ground
* Chroma A/D not available on Bt815A
0.1
F
VAA
VPOS
AGCCAP
VNEG
75
330 pF
330 pF
0.1
F
3.3
H
MUX0
35
E
LECTRICAL
I
NTERFACES
Input Interface
Bt819A/7A/5A
Figure 16. Clock Options
PAL Third Overtone Mode Crystal Oscillator
2.2
H
33 pF
0.1
F
22 pF
XT1I
XT1O
35.46895 MHz
NTSC Third Overtone Mode Crystal Oscillator
2.7
H
33 pF
0.1
F
22 pF
XT0I
XT0O
28.63636 MHz
XT1I
XT1O
XT0I
XT0O
47 pF
47 pF
28.63636 MHz
47 pF
47 pF
35.46895 MHz
PAL Fundamental Crystal Oscillator
NTSC Fundamental Crystal Oscillator
1 M
1 M
1 M
1 M
XT1I
XT1O
XT0I
XT0O
PAL Single-ended Oscillator
NTSC Single-ended Oscillator
Osc
Osc
28.63636 MHz
35.46895 MHz
36
E
LECTRICAL
I
NTERFACES
Input Interface
Bt819A/7A/5A
2X Oversampling and
Input Filtering
Digitized video needs to be bandlimited in order to avoid aliasing artifacts. Be-
cause the Bt819A samples at CLKx2 (8xFsc - twice the normal rate) the analog fil-
tering required at the input to the A/Ds is minimal. The analog video needs to be
band limited to 14 MHz. The suggested filters to do this are shown in Figure 15.
After digitization, the samples are digitally low pass filtered and then decimated to
CLKx1. The response of this low pass filter is shown in Figure 17. The digital low
pass filter provides additional bandwidth reduction to limit the video to 6 MHz.
Figure 17. Luma & Chroma 2X Oversampling Filter
NTSC
PAL
NTSC
PAL
37
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Output Interface
Output Interfaces
The Bt819A supports two output interfaces: the Synchronous Pixel Interface (SPI)
and the Asynchronous Pixel Interface (API). The SPI can support 8-bit or 16-bit
YCrCb 4:2:2 data streams, API supports a 16-bit data stream.
In the SPI mode, Bt819A outputs all pixel and control data synchronous with
CLKx1 (16-bit mode), or CLKx2 (8-bit mode). Events such as HRESET and
VRESET may also be encoded as control codes in the data stream to enable a re-
duced pin interface (ByteStream
TM
).
In the API mode, only the active pixel data is output synchronous with the
CLKIN provided by the system. The pixels are output via a 40-pixel-deep,
16-bit-wide FIFO. HRESET and VRESET are always output on independent pins
and, when programmed, are coded onto the data stream.
Mode selections are controlled by the state of the OFORM register. Figure 18
shows a diagram summarizing the different operating modes. Each mode will be
covered in detail individually. On power-up, the Bt819A automatically initializes
to SPI mode 1, 16 bits wide.
YCrCb Pixel Stream
Format, SPI Mode
8- and 16-bit
Formats
When the output is configured for an 8-bit pixel interface, the data is output on pins
VD[15:8] with the 8 bits of chrominance data preceding 8 bits of luminance data
for each pixel. New pixel data is output on the pixel port after each rising edge of
CLKx2. When the output is configured for the 16-bit pixel interface, the luminance
data is output on VD[15:8], and the chrominance data is output on VD[7:0]. In
16-bit mode, the data is output with respect to CLKx1. See Table 4 for a summary
of output interface configurations. The YCrCb 4:2:2 pixel stream follows the CCIR
recommendation as illustrated in Figure 19.
Figure 18. Output Mode Summary (API Mode Only for Bt819A)
SPI
API
8-bit
16-bit
8-bit
16-bit
Parallel Control
(SPI Mode 1)
Coded Control
(SPI Mode 2)
(ByteStream
TM
)
Pixel Burst, 819A Controlled
Pixel Burst, System Controlled
(API Mode A, Bt819A Only)
(API Mode B, Bt819A Only)
38
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Synchronous Pixel
Interface (SPI, Mode 1)
Upon reset, the Bt819A initializes to the SPI output mode 1. In this mode, Bt819A
outputs all horizontal and vertical blanking interval pixels in addition to the active
pixels synchronous with CLKx1 (16-bit mode), or CLKx2 (8-bit mode). In the
SPI-1 mode, the Bt819A output interface is similar to the Bt812 output interface.
Figure 20 illustrates Bt819A SPI-1. Figure 21 illustrates the basic timing relation-
ships in the SPI modes. The relationships remain the same for the 16-bit or 8-bit
modes. The 16-bit modes use CLKx1 as the reference, and the 8-bit modes use
CLKx2. Figure 23 shows the video timing for SPI modes 1 and 2.
Table 4. Pixel/Pin Map
16-bit Pixel Interface
Pin Name
VD15 VD14 VD13 VD12 VD11 VD10
VD9
VD8
VD7
VD6
VD5
VD4
VD3
VD2
VD1
VD0
Data Bit
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
CrCb7 CrCb6 CrCb5 CrCb4 CrCb3 CrCb2 CrCb1 CrCb0
8-bit Pixel Interface
Pin Name
VD15 VD14 VD13 VD12 VD11 VD10
VD9
VD8
VD7
VD6
VD5
VD4
VD3
VD2
VD1
VD0
Y Data Bit
Y7
Y6
Y5
Y4
Y3
Y2
Y1
Y0
C Data Bit
CrCb7 CrCb6 CrCb5 CrCb4 CrCb3 CrCb2 CrCb1 CrCb0
Figure 19. YCrCb 4:2:2 Pixel Stream Format (SPI Mode, 8 and16 Bits)
8-B
IT
P
IXEL
I
NTERFACE
CLK
X
1
16-B
IT
P
IXEL
I
NTERFACE
C
B
0
Y0
C
R
0
Y1
C
B
2
Y2
C
R
2
Y3
C
B
0
C
R
0
Y0
Y1
C
B
2
C
R
2
Y2
Y3
VD[15:8]
VD[15:8]
VD[7:0]
CLK
X
2
39
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Figure 20. Bt819A, Bt817A, Bt815A Synchronous Pixel Interface, Mode 1 (SPI-1)
HRESET
VRESET
ACTIVE
DVALID
CBFLAG
FIELD
VD[15:0]
OE
16
CLK
X
1 (4*F
SC
)
Bt819A
CLK
X
2 (8*F
SC
)
QCLK
Figure 21. Basic Timing Relationships for SPI Mode 1.
VD[15:0]
DVALID
ACTIVE
CLK
X
1
OR
CLK
X
2
QCLK
C
B
FLAG
40
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Synchronous Pixel
Interface (SPI, Mode 2,
ByteStream)
In SPI mode 2, the Bt819A encodes all video timing control signals onto the pixel
data bus. ByteStream
TM
is the 8-bit version of this configuration. Because all tim-
ing data is included on the data bus, a complete interface to a video controller can
be implemented in only 9 pins: one for CLKx2 and eight for data.
When using coded control, the RANGE bit and the CODE bit must be pro-
grammed high. When the RANGE bit is high, the chrominance pixels (both Cr and
Cb) are saturated to the range 2 to 253, and the luminance range is limited to the
range 16 to 253. In SPI mode 2, the chroma values of 255 and 254, and the lumi-
nance values of 0 to 15 are inserted as control codes to indicate video events
(Table 5). Chroma value of 255 is used to indicate that the associated luma pixel is
a control code; pixel value of 255 also indicates that the CbFlag is high (i.e. the
current pixel is a Cb pixel). Similarly, a pixel value of 254 indicates that the luma
value is a control code, and the CbFlag is low (Cr pixel).
The first pixel of a line is guaranteed to be a Cb flag;however, due to code pre-
cedence relationships, the HRESET code may be delayed by one pixel, so
HRESET can occur on a Cr or a Cb pixel. Also, at the beginning of a new field the
relationship between VRESET and HRESET may be lost, typically with video
from a VCR. As a result, VRESET can occur during either a Cb or a Cr pixel.
Figure 22 demonstrates coded control for SPI mode 2 (ByteStream).
Pixel data output ranges are shown in Table 6. Independent of RANGE, decimal
128 indicates zero color information for Cr and Cb. Black is decimal 16 when
RANGE=0, and code 0 when RANGE=1.
Table 7 provides a summary of the control sifnal functions for the SPI modes.
Table 5. Description of the Control Codes in the Pixel Stream
Luma
Value
Chroma
Value
Video Event Description
0x00
0xFF
0xFE
This is an invalid pixel; last valid pixel was a Cb pixel
This is an invalid pixel; last valid pixel was a Cr pixel
0x01
0xFF
0xFE
Cb pixel; last pixel was the last active pixel of the line
Cr pixel; last pixel was the last active pixel of the line
0x02
0xFF
0xFE
Cb pixel; next pixel is the first active pixel of the line
Cr pixel; next pixel is the first active pixel of the line
0x03
0xFF
0xFE
Cb pixel; HRESET of a vertical active line
Cr pixel; HRESET of a vertical active line
0x04
0xFF
0xFE
Cb pixel; HRESET of a vertical blank line
Cr pixel; HRESET of a vertical blank line
0x05
0xFF
0xFE
Cb pixel; VRESET followed by an even field
Cr pixel; VRESET followed by an even field
0x06
0xFF
0xFE
Cb pixel; VRESET followed by an odd field
Cr pixel; VRESET followed by an odd field
41
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
CCIR 601 Compliance
When the RANGE bit is set to zero, the output levels are fully compliant with the
CCIR 601 recommendation. CCIR 601 specifies that nominal video will have Y
values ranging from 16 to 235, and Cr and Cb values ranging from 16 to 240. How-
ever, excursions outside this range are allowed to handle non-standard video. The
only mandatory requirement is that 0 and 255 be reserved for timing information.
Table 6. Data Output Ranges
RANGE = 0
RANGE = 1
Y
16 --> 253
0 --> 255
Cr
2 --> 253
2 --> 253
Cb
2 --> 253
2 --> 253
Figure 22. Data Output in SPI Mode 2 (ByteStream)
CLK
X
2
VD(15:0)
0
X
FF
0
X
04
0
X
FF
0
X
03
HRESET,
BEGINNING
OF
HORIZONTAL
LINE
DURING
ACTIVE
VIDEO
C
B
PIXEL
C
B
PIXEL
HRESET,
BEGINNING
OF
HORIZONTAL
LINE
DURING
VERTICAL
BLANKING
0
X
FF
0
X
02
C
B
Y
C
R
Y
F
IRST
ACTIVE
PIXEL
OF
THE
LINE
I
NVALID
PIXEL
DURING
ACTIVE
VIDEO
L
AST
VALID
PIXEL
WAS
A
C
B
PIXEL
C
B
Y
0
X
FF
0
X
00
C
R
Y
C
B
Y
0
X
FE
0
X
01
XX
XX
L
AST
PIXEL
OF
THE
LINE
(C
B
PIXEL
)
L
AST
PIXEL
CODE
(C
R
PIXEL
)
C
R
PIXEL
VRESET;
AN
ODD
FIELD
FOLLOWS
XX
XX
0
X
FE
0
X
06
XX
XX
ACTIVE
PIXEL
OF
THE
LINE
N
EXT
PIXEL
IS
FIRST
42
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Table 7. Synchronous Pixel Interface (SPI) Control Signals
Signal
Description
HRESET
A 64-clock-long active low pulse. It is output following the rising
edge of CLKx1. The falling edge of HRESET indicates the begin-
ning of a new video line. See Figure 23 and Figure 24.
VRESET
An active low signal that is at least two lines long (for non-VCR
sources, VRESET is normally six lines long). It is output following
the rising edge of CLKx1. The falling edge of VRESET indicates
the beginning of a new field of video output. The falling edge of
VRESET lags the falling edge of HRESET by two clock cycles at
the start of an odd field. At the start of even fields, the falling edge
of VRESET is in the middle of a scan line, horizontal count
(HPIXEL/2)+1, on scan line 263 for NTSC and scan line 313 for
PAL (Figure 23).
ACTIVE
An active high signal that indicates the beginning of the active
video and is output following the rising edge of CLKx1. The
ACTIVE flag is used to indicate where nonblanking pixels are
present. The start and the end of the ACTIVE signal can be
adjusted by programming the VDELAY, VACTIVE, HDELAY, and
HACTIVE registers via the I
2
C interface. See Figure 23 and
Figure 24.
DVALID
An active high pixel qualifier that indicates whether or not the
associated pixel is valid. DVALID is independent of the ACTIVE
signal. The ACTIVE signal is programmed to output a certain set
of pixels. DVALID indicates which pixels are valid within this win-
dow. DVALID will toggle high outside of the ACTIVE window, indi-
cating a valid pixel outside the programmed ACTIVE region.
CBFLAG
An active high pulse that indicates when Cb data is being output
on the chroma stream. During invalid pixels, CBFLAG holds the
value of the last valid pixel.
FIELD
When high, indicates that an even field (field 2) is being output;
when low it indicates that an odd field (field 1) is being output.
The transition of FIELD is synchronous with the end of active
video (i.e. the trailing edge of ACTIVE). The same information
can also be derived by latching the HRESET signal with VRESET
(Figure 23).
VD[15:0]
The digital output pins for the video data stream.
CLKx1
The 4*Fsc clock output for the format (NTSC or PAL) currently
selected. The data is output based on this clock in SPI, 16-bit
mode.
CLKx2
The 8*Fsc clock output for the format (NTSC or PAL) currently
selected. The data is output based on this clock in SPI, 8-bit
mode.
QCLK
A qualified clock output. This pin provides a rising edge only dur-
ing valid, active pixel data. This output is generated from CLKx1
(or CLKx2 in 8-bit mode), ACTIVE and DVALID. The phase of
QCLK is inverted from the CLKx1 (or CLKx2) to ensure adequate
setup and hold time with respect to the data outputs. QCLK is not
output during control codes when using SPI mode 2.
43
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Figure 23. Video Timing in SPI Modes 1 and 2
Notes: (1). HRESET precedes VRESET by two clock cycles at the beginning of fields 1, 3, 5 and 7 to facilitate external
field generation.
2. ACTIVE, HRESET, VRESET and FIELD are shown here with their default polarity. The polarity is program-
mable via the VPOLE register.
3. FIELD transitions with the end of horizontal active video defined by HDELAY and HACTIVE.
26
SCAN
LINES
HRESET
VRESET
ACTIVE
FIELD
VDELAY/2
SCAN
LINES
B
EGINNING
OF
FIELDS
1, 3, 5, 7
(1)
26
SCAN
LINES
HRESET
VRESET
ACTIVE
FIELD
VDELAY/2
SCAN
LINES
B
EGINNING
OF
FIELDS
2, 4, 6, 8
44
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Figure 24. Horizontal Timing Signals in the SPI Modes
HDELAY C
LOCK
C
YCLES
AT
F
D
ESIRED
HACTIVE C
LOCK
C
YCLES
AT
F
D
ESIRED
64 C
LOCK
C
YCLES
AT
F
CLK
X
1
HRESET
ACTIVE
45
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Asynchronous Pixel
Interface (API)
(Bt819A Only)
In the API modes, the pixel stream generated by the Bt819A is buffered prior to the
pixel port outputs by a 40-pixel-deep FIFO. The FIFO input sees a pixel stream
coming in 4*Fsc pixels/s. The number of acquired samples or pixels is reduced at
the FIFO input by using a pixel qualifier of valid flag that indicates which pixels
are to be dropped (i.e., not written into the FIFO). Thus, the Bt819A only writes ac-
tive, valid video pixels and control codes into the FIFO. When the output is oper-
ating asynchronously, CLKIN is used to clock pixels out of the FIFO. CLKIN must
be fast enough that the FIFO does not overflow. Thus, CLKIN must operate faster
than the effective write rate to the FIFO. Figure 25 illustrates the basic interface.
This rate is determined by the number of active pixels per line. For example, in
square pixel NTSC, there are 640 active pixels per line input to the FIFO over a pe-
riod of about 52
s. As long as the CLKIN rate is greater than 12.27 MHz, the
FIFO will never overflow.
API can be used with the external video timing signals, or with coded control
signals on the video data bus (as in SPI mode 2). However, in API mode, only the
last active pixel and VRESET codes are output (luma values 0x01, 0x05 and 0x06.)
In API mode, the control codes are output during either the blanking interval or
during invalid data.
Mode A: FIFO
Controlled by Bt819A
(Bt819A Only)
In API mode A, the Bt819A controls the FIFO. DVALID is fed back to RDEN in-
ternally. This mode is programmed via the FIFO_BURST bit in the OFORM reg-
ister. Unlike in SPI mode, DVALID makes no statement about the validity of the
current pixel in API. DVALID acts as an indication of how much data is stored in
the FIFO. DVALID will go high at the same time that the Almost Full Flag (AFF)
goes high, and will go low when the FIFO is empty. RDEN is an input control
which allows data to be read from the FIFO. By internally connecting DVALID to
RDEN, the user can be assured that the FIFO never overflows.
Figure 25. Asynchronous Pixel Interface (API)
16
HRESET
CBFLAG
DVALID
AEF
VD[15:0]
OE
CLK
X
1 (4*F
SC
)
CLK
X
2 (8*F
SC
)
Bt819A
VRESET
FIELD
CLKIN
RDEN
AFF
QCLK
FRST
46
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
In mode A CLKIN must be connected to CLKx1. Data will be present at the VD
outputs whenever valid data are in the FIFO. There are two indicators of the status
of the data present at the FIFO output. One is the DVALID pin. Although this
signal is connected internally to the RDEN pin, the signal is still present at the
DVALID pin itself. DVALID will go high one CLKIN cycle before valid data is
present. The second indicator of valid data is the QCLK signal. This pin provides
a qualified clock output, based upon CLKIN, and gated by the presence of readable
data in the FIFO. QCLK may be used as a load clock for capturing data from the
FIFO. These timing relationships are shown in Figure 26 and Figure 27. While
DVALID indicates there is data in the FIFO, ACTIVE or QCLK must be used to
differentiate between pixel information and control codes. DVALID indicates the
presence of both while ACTIVE and QCLK indicate the presence of only active
valid pixels. After the last pixel is read from the FIFO, the data bus and control
signals are undefined.
Mode B: FIFO
Controlled by System
(Bt819A Only)
API mode B is similar to mode A. The only difference is that the DVALID signal
is not connected internally to RDEN. The user must monitor the Almost Full Flag
(AFF), and the Almost Empty Flag (AEF), and control RDEN manually. In API
mode B, QCLK is continuous, and not gated (effectively a delayed output of
CLKIN). The timing relationships for API mode B are shown in Figure 28. In ad-
dition, Figure 28 shows an external circuit that can be used to control RDEN using
the AEF and AFF flags.
Note: In API mode B, the FIFO should not be emptied while active video data
is being written into the FIFO. If the FIFO is emptied during the active video line,
the last two or three pixels read out of the FIFO will be corrupted. To avoid this,
simply use the AEF and AFF flags to control RDEN as shown in Figure 28.
47
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Figure 26. Basic Timing Relationships for API Mode A
VD[15:0]
DVALID
CLKIN
QCLK
AFF
AEF
FIFO
BECOMES
ALMOST
FULL
(AFF=1),
THEN
IS
UNLOADED
UNTIL
THE
FIFO
IS
EMPTY
FIFO
IS
NEARING
EMPTY
FIFO
IS
NOW
EMPTY
(RDEN)
(CLK
X
1)
Figure 27. API-A Datastream During a Field Transition
CLKIN
QCLK
DVALID
VD[15:0]
HRESET
VRESET
AFF
L
AST
PIXEL
IN
LAST
LINE
OF
F
IELD
Z
F
IRST
PIXEL
IN
THE
FIRST
LINE
OF
F
IELD
Z+1
0
X
1FF
0
X
5FE
C
B
FLAG
(RDEN)
(CLK
X
1)
48
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Asynchronous Pixel
Interface Control Signals
Figure 26, Figure 27 and Table 8 demonstrate the operation of the video timing
signals in API mode. As shown in these diagrams, the control codes for HRESET
and VRESET are also included in the pixel data stream. This enables a smaller pin
count interface to the Bt819A should that be a system requirement. The full video
timing interface is also available, and defined in Table 9.
Figure 28. Basic Timing Relationships for API Mode B
CLKIN
RDEN
AFF
AEF
VD[0:15]
QCLK
L
AST
PIXEL
32
OR
20
PIXELS
IN
FIFO
AEF
AFF
RDEN
P
OSSIBLE
CIRCUIT
FOR
EXTERNAL
GENERATION
OF
RDEN
READ
49
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Table 8. Operation of Timing Signals, API (both modes A and B)
RDEN
ACTIVE
HRESET
VRESET
VD[15:0]
Comment
Line T
ransition
1
1
1
1
A
(1)
1
1
1
1
A
1
1
1
1
A
1
1
1
1
A
Last pixel of old line.
1
0
0
1
H
(2)
End of video line (Code 01FF or 01FE).
1
1
1
1
A
First pixel of new line.
0
1
1
1
A
0
0
X
X
X
Stop reading from FIFO.
0
0
X
X
X
0
0
X
X
X
.
.
.
.
.
.
.
.
.
.
Field T
ransition
0
0
X
X
X
1
0
X
X
X
1
1
1
1
A
1
1
1
1
A
Last pixel in last line of field Z.
1
0
0
1
H
(2)
End of video line (Code 01FF or 01FE).
1
0
1
0
V
(2)
Field transition (Code 05FF for example).
1
1
1
1
A
First pixel in first line of field Z+1.
1
1
1
1
A
.
.
.
.
.
.
.
.
.
.
Field
T
ransition (FIFO Read Until Empty)
0
0
X
X
X
1
0
X
X
X
1
1
1
1
A
1
1
1
1
A
1
0
0
1
H
(2)
0
0
1
0
V
(2)
Field transition (Code 06FF for example).
0
0
X
X
X
0
0
X
X
X
0
0
X
X
X
Notes: (1). "A" indicates active pixel data.
(2). If the CODE bit is programmed low (disabling code outputs) the data on the VD bus is invalid. All other outputs
remain the same.
50
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
Table 9. Asynchronous Pixel Interface Control Signals, Bt819A Only
(1 of 2)
Pin Name
Comments
HRESET
A one-clock-cycle-wide active low pulse. It is output after the last
active pixel of a line, and it indicates that the next pixel is the first
pixel of the next active line. When the FIFO happens to empty at the
end of a line, HRESET remains low until another valid pixel, or
VRESET.
VRESET
A one-clock-cycle-wide active low pulse. It is output after HRESET
for the last line in the field. The next pixel is the first active pixel of the
next field.
FIELD
When high, indicates an even field (field 2); when low it indicates an
odd field (field 1). Field information does not get buffered through the
FIFO.
CBFLAG
A one-clock-cycle-wide active high pulse that indicates that Cb
chroma data is being output.
DVALID
Goes high when the FIFO has 20 locations filled. This pin will remain
high until the FIFO is empty. When the FIFO output rate is the same
as the CLKIN rate, DVALID can be connected to RDEN to provide a
continuous pixel data stream. DVALID may also be used to gate
DMA cycles from the FIFO. DVALID may be programmed to toggle
high when the FIFO holds 32 pixels.
AFF
An active high pulse. It transitions high when there are more than 31
pixels of valid data in the FIFO and stays high as long as 32 or more
pixels are in the FIFO to be read. This flag may be programmed to
toggle high when the FIFO holds 20 pixels. This is useful in API
mode B.
AEF
Almost Empty Flag. Indicates that the FIFO is about to empty.
Note: The AEF flag is pipelined to the output of the chip. Also, the
FIFO is being written into during this time. Therefore, the actual num-
ber of pixels in the FIFO when AEF toggles will vary. The number of
pixels remaining could be as low as 2 or as high as 8. The system
should stop reading from the FIFO as soon as AEF indicates almost
empty. See Figure 28 for a recommended circuit.
51
E
LECTRICAL
I
NTERFACES
Output Interface
Bt819A/7A/5A
VD[15:0]
The digital output pins for the video data stream.
RDEN
A read enable for the FIFO. When RDEN is high and there is data in
the FIFO, a positive edge on CLKIN outputs a pixel on VD[15:0].
CLKIN
The clock that determines the transfer rate of data from the Bt819A
in the API mode. When RDEN is high, this clock puts pixel data on
VD[15:0].
CLKx1
The 4*Fsc clock output for the format (NTSC or PAL) currently
selected.
CLKx2
The 8*Fsc clock output for the format (NTSC or PAL) currently
selected.
QCLK
In mode A, QCLK will generate a clock edge only during active, valid
pixels, not during control codes. May be used as a load clock signal
with the pixel data. In mode B, QCLK is continuous and not gated
(effectively a delayed output of CLKIN).
ACTIVE
Indicates valid pixel data out of the FIFO. This pin toggles high at the
same time as DVALID except that DVALID is also high during control
codes.
FRST
FIFO Reset. Driving this pin low for at least 4 CLKIN cycles will reset
the FIFO.
Table 9. Asynchronous Pixel Interface Control Signals, Bt819A Only
(2 of 2)
Pin Name
Comments
52
E
LECTRICAL
I
NTERFACES
I
2
C Interface
Bt819A/7A/5A
I
2
C Interface
The Inter-Integrated Circuit (I
2
C) bus is a two-wire serial interface. Serial clock
and data lines, SCL and SDA, are used to transfer data between the bus master and
the slave device. The Bt819A can transfer data at a maximum rate of 100 kbits/s.
The Bt819A operates as a slave device.
Starting and Stopping
The relationship between SCL and SDA is decoded to provide both a start and stop
condition on the bus. To initiate a transfer on the I
2
C bus, the master must transmit
a start pulse to the slave device. This is accomplished by taking the SDA line low
while the SCL line is held high. The master should only generate a start pulse at the
beginning of the cycle, or after the transfer of a data byte to or from the slave. To
terminate a transfer, the master must take the SDA line high while the SCL line is
held high. The master may issue a stop pulse at any time during an I
2
C cycle. Since
the I
2
C bus will interpret any transition on the SDA line during the high phase of
the SCL line as a start or stop pulse, care must be taken to ensure that data is stable
during the high phase of the clock. This is illustrated in Figure 29.
Addressing the Bt819A
An I
2
C slave address consists of two parts: a 7-bit base address and a single bit
R/W command. The R/W bit is appended to the base address to form the transmit-
ted I
2
C address, as shown in Figure 30 and Table 10.
Figure 29. The Relationship between SCL and SDA
S
TART
S
TOP
SDA
SCL
Figure 30. I
2
C Slave Address Configuration
A6
A5
A4
A3
A2
A1
A0 R/W
B
ASE
A
DDRESS
R/W B
IT
53
E
LECTRICAL
I
NTERFACES
I
2
C Interface
Bt819A/7A/5A
Reading and Writing
After transmitting a start pulse to initiate a cycle, the master must address the
Bt819A. To do this, the master must transmit one of the four valid Bt819A address-
es, Most Significant Bit (MSB) first. After transmitting the address, the master
must release the SDA line during the low phase of the serial clock, SCL, and wait
for an acknowledge. If the transmitted address matches the selected Bt819A ad-
dress, the Bt819A will respond by driving the SDA line low, generating an ac-
knowledge to the master. The master will sample the SDA line at the rising edge of
the SCL line, and proceed with the cycle. If no device responds, including the
Bt819A, the master transmits a stop pulse and ends the cycle.
If the slave address R/W bit was low, indicating a write, the master will transmit
an 8-bit byte to the Bt819A, MSB first. The Bt819A will acknowledge the transfer
and load the data into its internal address register. The master may now issue a stop
command, a start command, or transfer another 8-bit byte, MSB first, to be loaded
into the register pointed to by the internal address register. The Bt819A will then
acknowledge the transfer and increment the address register in preparation for the
next transfer. As before, the master may now issue a stop command, a start com-
mand, or transfer another 8 bits to be loaded into the next location.
If the slave address R/W bit was high, indicating a read, the Bt819A will trans-
fer the contents of the register pointed to by its internal address register, MSB first.
The master should acknowledge the receipt of the data and pull the SDA line low.
As with the write cycle, the address register will be autoincremented in preparation
for the next read.
To stop a read transfer, the host must not acknowledge the last read cycle. The
Bt819A will then release the data bus in preparation for a stop command. If an ac-
knowledge is received, the Bt819A will proceed to transfer the next register.
When the master generates a read from the Bt819A, the Bt819A will start its
transfer from whatever location is currently loaded in the address register. Since
the address register may not contain the address of the desired register, the master
should execute a write cycle, setting the address register to the desired location.
After receiving an acknowledge for the transfer of the data into the address regis-
ter, the master should initiate a read of the Bt819A by starting a new I
2
C cycle with
an appropriate read address. The Bt819A will now transfer the contents of the de-
sired register.
For example, to read register 0x0A, Brightness Control, the master should start
a write cycle with an I
2
C address of 0x88 or 0x8A. After receiving an acknowledge
from the Bt819A, the master should transmit the desired address, 0x0A. After re-
Table 10. Bt819A Address Matrix
I2CCS Pin
Bt819A Base
R/W Bit
Action
0
1000100
0
Write
1000100
1
Read
1
1000101
0
Write
1000101
1
Read
54
E
LECTRICAL
I
NTERFACES
I
2
C Interface
Bt819A/7A/5A
ceiving an acknowledge, the master should then start a read cycle with an I
2
C slave
address of 0x89 or 0x8B. The Bt819A will then acknowledge and transfer the con-
tents of register 0x0A. It should be noted that there is no need to issue a stop com-
mand after the write cycle. The Bt819A will detect the repeated start command,
and start a new I
2
C cycle. This process is illustrated in Table 11 and Figure 31.
For detailed information on the I
2
C bus, refer to "The I
2
C-Bus and How to Use
It," published by Philips.
Table 11. Example I
2
C Data Transactions
Master
Data
Flow
Bt819A
Comment
Write to Bt819A
I
2
C Start
---->
Master sends Bt819A chip address, i.e. 0x88 or 0x8A.
ACK
Bt819A generates ACK on successful receipt of chip address.
Sub-address
---->
Master sends sub-address to Bt819A.
ACK
Bt819A generates ACK on successful receipt of sub-address.
Data(0)
---->
Master sends first data byte to Bt819A.
ACK(0)
Bt819A generates ACK on successful receipt of 1st data byte.
.
.
.
---->
---->
---->
.
.
.
Data(n)
---->
Master sends nth data byte to Bt819A.
ACK(n)
Bt819A generates ACK on successful receipt of nth data byte.
I
2
C Stop
Master generates STOP to end transfer.
Read from Bt819A
I
2
C Start
---->
Master sends Bt819A chip address, i.e. 0x89 or 0x8B.
ACK
Bt819A generates ACK on successful receipt of chip address.
<----
Data(0)
Bt819A sends first data byte to Master.
ACK(0)
Master generates ACK on successful receipt of 1st data byte.
.
.
.
<----
<----
<----
.
.
.
<----
Data(n-1)
Bt819A sends (n-1)th data byte to Master.
ACK(n-1)
Master generates ACK on successful receipt of (n-1)th data byte.
<----
Data(n)
Bt819A sends nth data byte to Master.
NO ACK
Master does not acknowledge nth data byte.
I
2
C Stop
Master generates STOP to end transfer.
where:
I
2
C Start
= I
2
C start condition and Bt819A chip address (including the
R/W bit)
Sub-address
= the 8-bit sub-address of the Bt819A register, MSB first.
Data(n)
= the data to be transferred to/from the addressed register
I
2
C Stop
= I
2
C stop condition
55
E
LECTRICAL
I
NTERFACES
I
2
C Interface
Bt819A/7A/5A
Software Reset
The contents of the control registers may be reset to their default values by issuing
a software reset. A software reset can be accomplished by writing any value to
subaddress 0x1F. A read of this location will return an undefined value.
Figure 31. I
2
C Protocol Diagram
CHIP
ADDR
DATA
S
A
SR
A
A
CHIP
ADDR
SUB
-
ADDR
S
A
A
A
A
P
CHIP
ADDR
SUB
-
ADDR
S
A
A
CHIP
ADDR
A
DATA
DATA
DATA
D
ATA
R
EAD
D
ATA
W
RITE
W
RITE
F
OLLOWED
BY
R
EAD
0
X
89
OR
0
X
8B
REPEATED
8
BITS
F
ROM
M
ASTER
TO
B
T
819A
F
ROM
B
T
819A
TO
M
ASTER
S
=
START
SR
=
REPEATED
START
P
=
STOP
A
=
ACKNOWLEDGE
NA
=
NON
ACKNOWLEDGE
0
X
88
OR
0
X
8A
0
X
88
OR
0
X
8A
NA
P
DATA
DATA
A
A
START
A
A
DATA
DATA
NA
P
DATA
A
REGISTER
POINTED
TO
BY
SUB
-
ADDRESS
56
E
LECTRICAL
I
NTERFACES
JTAG Interface
Bt819A/7A/5A
JTAG Interface
Need for Functional
Verification
As the complexity of imaging chips increases, the need to easily access individual
chips for functional verification is becoming vital. The Bt819A has incorporated
special circuitry that allows it to be accessed in full compliance with standards set
by the Joint Test Action Group (JTAG). Conforming to IEEE P1149.1 "Standard
Test Access Port and Boundary Scan Architecture," the Bt819A has dedicated pins
that are used for testability purposes only.
JTAG Approach to
Testability
JTAG's approach to testability utilizes boundary scan cells placed at each digital
pin and digital interface (a digital interface is the boundary between an analog
block and a digital block within the Bt819A). All cells are interconnected into a
boundary scan register, as shown in Table 12, that applies or captures test data to be
used for functional verification of the integrated circuit. JTAG is particularly useful
for board testers using functional testing methods.
JTAG consists of five dedicated pins comprising the Test Access Port (TAP).
These pins are Test Mode Select (TMS), Test Clock (TCK), Test Data Input (TDI),
Test Data Out (TDO) and Test Reset (TRST). The TRST pin will reset the JTAG
controller when pulled low at any time.Verification of the integrated circuit and its
connection to other modules on the printed circuit board can be achieved through
these five TAP pins. With boundary scan cells at each digital interface and pin, the
Bt819A has the capability to apply and capture the respective logic levels. Since all
of the digital pins are interconnected as a long shift register, the TAP logic has ac-
cess and control of all the necessary pins to verify functionality. The TAP control-
ler can shift in any number of test vectors through the TDI input and apply them to
the internal circuitry. The output result is scanned out on the TDO pin and exter-
nally checked. While isolating the Bt819A from other components on the board,
the user has easy access to all Bt819A digital pins and digital interfaces through
the TAP and can perform complete functionality tests without using expensive
bed-of-nails testers.
Optional Device
ID Register
The Bt819A has the optional device identification register defined by the JTAG
specification. This register contains information concerning the revision, actual
part number, and manufacturers identification code specific to Brooktree. This reg-
ister can be accessed through the TAP controller via an optional JTAG instruction.
Refer to Table 13.
57
E
LECTRICAL
I
NTERFACES
JTAG Interface
Bt819A/7A/5A
Verification with the
Tap Controller
A variety of verification procedures can be performed through the TAP controller.
With a set of four instructions, the Bt819A can verify board connectivity at all dig-
ital interfaces and pins. The instructions are accessible by using a state machine
standard to all JTAG controllers and are: Sample/Preload, Extest, ID Code, and
Bypass (see Figure 32). Refer to the IEEE P1149.1 specification for details con-
cerning the Instruction Register and JTAG state machine.
Brooktree has created a BSDL with the AT&T BSD Editor. Table 12 shows the
boundary scan definition from this file. Should JTAG testing be implemented, a
disk with an ASCII version of the complete BSDL file may be obtained by calling
1-800-2Bt Apps.
Table 12. Bt819A Boundary Scan Register Definition
(1 of 2)
attribute BOUNDARY_REGISTER of 819A: entity is
" 0 (BC_1, *, internal, X)," &
" 1 (BC_1, *, control, 1)," &
" 2 (BC_1, *, internal, X)," &
" 3 (BC_1, *, internal, X)," &
" 4 (BC_1, *, internal, X)," &
" 5 (BC_1, *, internal, X)," &
" 6 (BC_1, *, internal, X)," &
" 7 (BC_1, *, internal, X)," &
" 8 (BC_1, *, internal, X)," &
" 9 (BC_1, *, internal, X)," &
" 10 (BC_1, *, internal, 0)," &
" 11 (BC_1, *, internal, 0)," &
" 12 (BC_1, *, internal, 0)," &
" 13 (BC_1, *, internal, 0)," &
" 14 (BC_1, *, internal, 0)," &
" 15 (BC_1, *, internal, 0)," &
" 16 (BC_1, *, internal, 0)," &
" 17 (BC_1, *, internal, 0)," &
" 18 (BC_1, *, internal, 0)," &
" 19 (BC_1, *, internal, 0)," &
" 20 (BC_1, *, internal, 0)," &
" 21 (BC_1, *, internal, 0)," &
" 22 (BC_1, *, internal, 0)," &
" 23 (BC_1, *, internal, 0)," &
" 24 (BC_1, *, internal, 0)," &
" 25 (BC_1, *, control, 0)," &
" 26 (BC_1, FIELD, output3, X, 25, 0, Z)," &
" 27 (BC_1, NVRESET, output3, X, 25, 0, Z)," &
" 28 (BC_1, XTFMT, input, X)," &
" 29 (BC_1, NOSEN, input, X)," &
" 30 (BC_1, NHRESET, output3, X, 25, 0, Z)," &
" 31 (BC_1, ACTIVE, output3, X, 25, 0, Z)," &
" 32 (BC_1, DVALID, output3, X, 25, 0, Z)," &
" 33 (BC_1, RDEN, input, X)," &
58
E
LECTRICAL
I
NTERFACES
JTAG Interface
Bt819A/7A/5A
" 34 (BC_1, AFF, output3, X, 25, 0, Z)," &
" 35 (BC_1, AEF, output3, X, 25, 0, Z)," &
" 36 (BC_1, NFRST, input, X)," &
" 37 (BC_1, CBFLAG, output3, X, 25, 0, Z)," &
" 38 (BC_3, NVSEN, input, X)," &
" 39 (BC_1, CLKIN, input, X)," &
" 40 (BC_1, QCLK, output3, X, 25, 0, Z)," &
" 41 (BC_1, CLKX1, output3, X, 25, 0, Z)," &
" 42 (BC_1, NOE, input, 1)," &
" 43 (BC_1, CLKX2, output3, X, 25, 0, Z)," &
" 44 (BC_1, VDB(8), output3, X, 25, 0, Z)," &
" 45 (BC_1, VDB(9), output3, X, 25, 0, Z)," &
" 46 (BC_1, VDB(10), output3, X, 25, 0, Z)," &
" 47 (BC_1, VDB(11), output3, X, 25, 0, Z)," &
" 48 (BC_1, VDB(12), output3, X, 25, 0, Z)," &
" 49 (BC_1, VDB(13), output3, X, 25, 0, Z)," &
" 50 (BC_1, VDB(14), output3, X, 25, 0, Z)," &
" 51 (BC_1, VDB(15), output3, X, 25, 0, Z)," &
" 52 (BC_1, *, internal, X)," &
" 53 (BC_1, XT0I, input, X)," &
" 54 (BC_1, I2CCS, input, X)," &
" 55 (BC_1, NRST, input, X)," &
" 56 (BC_1, *, internal, X)," &
" 57 (BC_1, XT1I, input, X)," &
" 58 (BC_1, SDA, output3, 1, 58, 1, Weak1)," &
" 59 (BC_1, SDA, input, X)," &
" 60 (BC_1, SCL, input, X)," &
" 61 (BC_1, VDA(0), output3, 0, 1, 1, Z)," &
" 62 (BC_1, VDA(0), input, X)," &
" 63 (BC_1, VDA(1), output3, 0, 1, 1, Z)," &
" 64 (BC_1, VDA(1), input, X)," &
" 65 (BC_1, VDA(2), output3, 0, 1, 1, Z)," &
" 66 (BC_1, VDA(2), input, X)," &
" 67 (BC_1, VDA(3), output3, 0, 1, 1, Z)," &
" 68 (BC_1, VDA(3), input, X)," &
" 69 (BC_1, VDA(4), output3, 0, 1, 1, Z)," &
" 70 (BC_1, VDA(4), input, X)," &
" 71 (BC_1, VDA(5), output3, 0, 1, 1, Z)," &
" 72 (BC_1, VDA(5), input, X)," &
" 73 (BC_1, VDA(6), output3, 0, 1, 1, Z)," &
" 74 (BC_1, VDA(6), input, X)," &
" 75 (BC_1, VDA(7), output3, 0, 1, 1, Z)," &
" 76 (BC_1, VDA(7), input, X)," &
" 77 (BC_1, TWREN, input, X)," &
" 78 (BC_0, *, internal, 0)," &
" 79 (BC_0, *, internal, 0)";
end 819A;
Table 12. Bt819A Boundary Scan Register Definition
(2 of 2)
59
E
LECTRICAL
I
NTERFACES
JTAG Interface
Bt819A/7A/5A
Table 13. Device Identification Register
Note: The Part Number remains the same for all three parts: Bt819A, Bt817A
and Bt815A
V
ERSION
P
ART
N
UMBER
M
ANUFACTURER
ID
X X X X 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 0 0 0 1 1 0 1 0 1 1 0 1
0
0819, 0
X
0333
0
X
0D6
Figure 32. Instruction Register (IR)
TDI
TDO
EXTEST
0
Sample/Preload
0
ID Code
0
Bypass
1
Insert a blank page here. This is page 60
61
PC B
OARD
L
AYOUT
C
ONSIDERATIONS
The layout should be optimized for lowest noise on the Bt819A power and ground
lines by shielding the digital inputs/outputs and providing good decoupling. The
lead length between groups of power and ground pins should be minimized to re-
duce inductive ringing. Figure 36 shows an example schematic.
Ground Planes
The ground plane area should encompass all Bt819A ground pins, voltage refer-
ence circuitry, power supply bypass circuitry for the Bt819A, the analog input trac-
es, any input amplifiers, and all the digital signal traces leading to the Bt819A.
The Bt819A has digital grounds (GND) and analog grounds (AGND and
VNEG). The layout for the ground plane should be such that the two planes are at
the same electrical potential, but they should be isolated from each other in the ar-
eas surrounding the chip. Also, the return path for current should be through the
digital plane. See Figure 33.
Figure 33. Example Ground Plane Layout
Bt819A
1
50
A
NALOG
G
ROUND
D
IGITAL
G
ROUND
G
ROUND
R
ETURN
(
I
.
E
. ISA B
US
C
ONNECTION
)
C
IRCUIT
BOARD
EDGE
62
PC B
OARD
L
AYOUT
C
ONSIDERATIONS
Power Planes
Bt819A/7A/5A
Power Planes
The power plane area should encompass all Bt819A power pins, voltage reference
circuitry, power supply bypass circuitry for the Bt819A, the analog input traces,
any input amplifiers, and all the digital signal traces leading to the Bt819A.
The Bt819A has digital power (VDD) and analog power (VAA and VPOS). The
layout for the power plane should be such that the two planes are at the same elec-
trical potential, but they should be isolated from each other in the areas surround-
ing the chip. Also, the return path for current should be through the digital plane.
This is the same layout as shown for the ground plane (Figure 33). When using a
regulator, circuitry must be included to ensure proper power sequencing. The cir-
cuitry shown in Figure 34 should help in this regard.
Supply Decoupling
The bypass capacitors should be installed with the shortest leads possible, consis-
tent with reliable operation, to reduce the lead inductance. These capacitors should
also be placed as close as possible to the device.
Each group of VAA and VDD pins should have a 0.1
F ceramic bypass capac-
itor to ground, located as close as possible to the device.
Additionally, 10
F capacitors should be connected between the analog power
and ground planes, as well as between the digital power and ground planes. These
capacitors are at the same electrical potential, but provide additional decoupling by
being physically close to the Bt819A power and ground planes. See Figure 35 for
additional information about power supply decoupling.
Digital Signal
Interconnect
The digital signals of the Bt819A should be isolated as much as possible from the
analog signals and other analog circuitry. Also, the digital signals should not over-
lay the analog power plane.
Any termination resistors for the digital signals should be connected to the reg-
ular PCB power and ground planes.
Analog Signal
Interconnect
Long lengths of closely-spaced parallel video signals should be avoided to mini-
mize crosstalk. Ideally, there should be a ground line between the video signal trac-
es driving the YIN and CIN inputs.
Also, high-speed TTL signals should not be routed close to the analog signals to
minimize noise coupling.
Latch-up Avoidance
Latch-up is a failure mechanism inherent to any CMOS device. It is triggered by
static or impulse voltages on any signal input pin exceeding the voltage on the
power pins by more than 0.5 V, or falling below the GND pins by more than 0.5 V.
Latch-up can also occur if the voltage on any power pin exceeds the voltage on any
other power pin by more than 0.5 V.
In some cases, devices with mixed signal interfaces, such as the Bt819A, can
appear more sensitive to latch-up. In reality, this is not the case. However, mixed
signal devices tend to interact with peripheral devices such as video monitors or
cameras that are referenced to different ground potentials, or apply voltages to the
device prior to the time that its power system is stable. This interaction sometimes
creates conditions amenable to the onset of latch-up.
63
PC B
OARD
L
AYOUT
C
ONSIDERATIONS
Latch-up Avoidance
Bt819A/7A/5A
To maintain a robust design with the Bt819A, the following precautions should
be taken:
Apply power to the device before or at the same time as the interface cir-
cuitry.
Do not apply voltages below GND0.5 V, or higher than VAA+0.5 V to
any pin on the device. Do not use negative supply op-amps or any other
negative voltage interface circuitry. All logic inputs should be held low
until power to the device has settled to the specified tolerance.
Connect all VDD, VAA and VPOS pins together through a low imped-
ance plane.
Connect all GND, AGND and VNEG pins together through a low imped-
ance plane.
Figure 34. Optional Regulator Circuitry
I
N
S
YSTEM
P
OWER
VAA,VDD
O
UT
G
ROUND
GND
S
UGGESTED
PART
NUMBERS
:
R
EGULATOR
T
EXAS
I
NSTRUMENTS
A78 MO5M
(+5 V)
S
YSTEM
P
OWER
(+5 V)
(+12 V)
D
IODES
MUST
HANDLE
OF
THE
Bt819A
AND
THE
PERIPHERAL
CIRCUITRY
THE
CURRENT
REQUIREMENTS
64
PC B
OARD
L
AYOUT
C
ONSIDERATIONS
Schematics
Bt819A/7A/5A
Schematics
Figure 35. Typical Power and Ground Connection Diagram and Parts List
+5 V (VCC)
G
ROUND
+
+
C1
C2
C3
C4
C5
C6
VDD
VAA, VPOS
GND, AGND, VNEG
Bt819A
Location
Description
Vendor Part Number
C1, C2, C3, C4
(1)
0.1
F ceramic capacitor
Erie RPE112Z5U104M50V
(3)
C5, C6
(2)
10
F tantalum capacitor
Mallory CSR13G106KM
(3)
Notes: (1). A 0.1
F capacitor should be connected between each group of power pins and ground as close to the device
as possible, (ceramic chip capacitors are preferred).
(2). The 10
F capacitors should be connected between the analog supply and the analog ground, as well as the
digital supply and the digital ground. These should be connected as close to the Bt819A as possible.
(3). These vendor numbers are listed only as a guide. Substitution of devices with similar characteristics will not
affect the performance of the Bt819A.
65
PC B
OARD
L
AYOUT
C
ONSIDERATIONS
Sc
hematics
Bt819A/7A/5A
Figure 36.
Example Sc
hematic
Y1
Y0
CRCB7
CRCB6
CRCB5
CRCB4
CRCB3
CRCB2
Y7
Y6
Y5
Y4
Y3
Y2
C
C
1
30K
R56
1
2
R119
30K
A
C109
0.1UF
1
2
C
D
0.1UF
C55
0.1UF
C43
VAA
C42
0.1UF
R63
2K
C106
0.1UF
1M
R120
VAA
LUMA DATA
CHROMA DATA
VAA
VDD
C18
0.1UF
0.1UF
C19
U1
RST
OE
FRST
YREF-
YREF+
YIN
YDBIAS
YCBIAS
YABIAS
VPOS
VNEG
VD9
VD8
VD7
VD6
VD5
VD4
VD3
VD2
VD15
VD14
VD13
VD12
VD11
VD10
VAA4
VAA3
VAA2
VAA1
VAA0
SYNCDET
SDA
SCL
REFOUT
RDEN
N/C_1
MUXOUT
MUX1
MUX0
I2CCS
CREF-
CREF+
CLEVEL
CIN
CDBIAS
CCBIAS
CABIAS
AGND7
AGND6
AGND5
AGND4
AGND3
AGND2
AGND1
AGND0
AGCCAP
15
98
88
62
49
52
50
46
51
40
42
8
9
22
23
24
25
26
27
2
3
4
5
6
7
72
65
60
48
44
59
18
19
43
85
68
53
57
55
14
73
64
74
67
63
69
70
75
71
66
61
58
56
54
47
41
MUX2
45
Insert a blank page here. This is page 66
67
C
ONTROL
R
EGISTER
D
EFINITIONS
The following tables describe the function of the various control registers. The section begins with a summary of the
register functions and follows with details of each register.
Register Name
Mnemonic
Register Ad
dress
640 x 480
Square Pix
el NTSC
(Default)
768 x 576
Square Pix
el P
A
L
720 x 480
CCIR NTSC
720 x 576
CCIR P
A
L
360 x 240 2:1 CCIR NTSC
(Single Field,
CIF)
360 x 288 2:1 CCIR P
A
L
(Single Field,
CIF)
Device Status
STATUS
0x00
0x00
0x00
0x00
0x00
0x00
0x00
Input Format
IFORM
0x01
0x58
0x78
0x58
0x78
0x58
0x78
Temporal Decimation
TDEC
0x02
0x00
0x00
0x00
0x00
0x00
0x00
MSB Cropping
CROP
0x03
0x12
0x23
0x12
0x22
0x11
0x21
Vertical Delay, Lower Byte
VDELAY_LO
0x04
0x16
0x16
0x16
0x16
0x16
0x16
Vertical Active, Lower Byte
VACTIVE_LO
0x05
0xE0
0x40
0xE0
0x40
0xE0
0x40
Horizontal Delay, Lower Byte
HDELAY_LO
0x06
0x78
0x9A
0x80
0x90
0x38
0x48
Horizontal Active, Lower Byte
HACTIVE_LO
0x07
0x80
0x00
0xD0
0xD0
0x40
0x0C
Horizontal Scaling, Upper Byte
HSCALE_HI
0x08
0x02
0x03
0x00
0x05
0x11
0x1A
Horizontal Scaling, Lower Byte
HSCALE_LO
0x09
0xAA
0x3C
0xF8
0x04
0xF0
0x09
Brightness Control
BRIGHT
0x0A
0x00
0x00
0x00
0x00
0x00
0x00
Miscellaneous Control
CONTROL
0x0B
0x20
0x20
0x20
0x20
0x20
0x20
Luma Gain, Lower Byte (Contrast)
CONTRAST_LO
0x0C
0xD8
0xD8
0xD8
0xD8
0xD8
0xD8
Chroma (U) Gain, Lower Byte
(Saturation)
SAT_U_LO
0x0D
0xFE
0xFE
0xFE
0xFE
0xFE
0xFE
Chroma (V) Gain, Upper Byte
(Saturation)
SAT_V_LO
0x0E
0xB4
0xB4
0xB4
0xB4
0xB4
0xB4
Hue Control
HUE
0x0F
0x00
0x00
0x00
0x00
0x00
0x00
Reserved
0x10
0x00
0x00
0x00
0x00
0x00
0x00
Reserved
0x11
0x00
0x00
0x00
0x00
0x00
0x00
68
C
ONTROL
R
EGISTER
D
EFINITIONS
0x00 -- Device Status Register (STATUS)
Bt819A/7A/5A
0x00 -- Device Status Register (STATUS)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00. COF is
the least significant bit. An asterisk indicates the default option. The COF and LOF status bits hold their values until
reset to their default values by writing to them. The other six bits do not hold their values, but continually output the
status.
PRES
Video Present Status. Video is determined as present when an input signal is deter-
mined to have a signal above one half the sync height for 31 consecutive clock cy-
cles. In the presence of video, this bit is set to a logical one. It can be reset to zero
by writing a logical zero to this bit. Due to the nature of the AGC circuitry, it is pos-
sible that noise could induce this bit to be set. Therefore, it can not be used for pre-
cise determination of the presence of a video source.
0* = Video not present
1
= Video present
Output Format
OFORM
0x12
0x06
0x06
0x06
0x06
0x06
0x06
Vertical Scaling, Upper Byte
VSCALE_HI
0x13
0x60
0x60
0x60
0x60
0x60
0x60
Vertical Scaling, Lower Byte
VSCALE_LO
0x14
0x00
0x00
0x00
0x00
0x00
0x00
Test Control
TEST
0x15
0x00
0x00
0x00
0x00
0x00
0x00
Video Timing Polarity Register
VPOLE
0x16
0x00
0x00
0x00
0x00
0x00
0x00
ID Code
IDCODE
0x17
0x70
0x70
0x70
0x70
0x70
0x70
AGC Delay
ADELAY
0x18
0x68
0x7F
0x68
0x7F
0x68
0x7F
Burst Gate Delay
BDELAY
0x19
0x5D
0x72
0x5D
0x72
0x5D
0x72
ADC Interface
ADC
0x1A
0x82
0x82
0x82
0x82
0x82
0x82
Reserved --
0x1B-
0x1E
--
--
--
--
--
--
Software Reset
SRESET
0x1F
--
--
--
--
--
--
Register Name
Mnemonic
Register Ad
dress
640 x 480
Square Pix
el NTSC
(Default)
768 x 576
Square Pix
el P
A
L
720 x 480
CCIR NTSC
720 x 576
CCIR P
A
L
360 x 240 2:1 CCIR NTSC
(Single Field,
CIF)
360 x 288 2:1 CCIR P
A
L
(Single Field,
CIF)
7
6
5
4
3
2
1
0
PRES
HLOC
FIELD
NUML
CSEL
Reserved
LOF
COF
0
0
0
0
0
0
0
0
69
C
ONTROL
R
EGISTER
D
EFINITIONS
0x00 -- Device Status Register (STATUS)
Bt819A/7A/5A
HLOC
Device in H-lock. If HSYNC is found within
1 clock cycle of the expected posi-
tion of HSYNC for 32 consecutive lines, this bit is set to a logical 1. Once set, if
HSYNC is not found within
1 clock cycle of the expected position of HSYNC for
32 consecutive lines, this bit is set to a logical 0. MPU writes to this bit are ignored.
This bit indicates the stability of the incoming video. While it is an indicator of
horizontal locking, some video sources will characteristically vary from line to
line by more than one clock cycle so that this bit will never be set. Consumer
VCR's are examples of sources that will tend to never set this bit.
0* = Device not in H-lock
1
= Device in H-lock
FIELD
Field Status. This bit reflects whether an odd or even field is being decoded. The
FIELD bit is determined by the relationship between HRESET and VRESET.
0* = Odd field
1
= Even field
NUML
Number of Lines. This bit identifies the number of lines found in the video stream.
This bit is used to determine the type of video input to the Bt819A. Thirty-two con-
secutive fields with the same number of lines is required before this status bit will
change.
0* = 525 line format (NTSC)
1
= 625 line format (PAL)
CSEL
Crystal Select. This bit identifies which crystal port is selected. When automatic
format detection is enabled, this bit will be the same as NUML.
0* = XTAL0 input selected
1
= XTAL1 input selected
Reserved
This bit should only be written with a logical zero.
LOF
Luma ADC Overflow. On power-up, this bit is set to 0. If an ADC overflow occurs,
the bit is set to a logical 1. It is reset after being written to or a chip reset occurs. If
an overflow occurs in the luma ADC, the clamp level used for AGC may be adjust-
ed by programming the CLAMP bits in the ADC register (0x1A). This is beneficial
if the amplitude of the video signal is not accurate with respect to the sync height.
The state of this bit is not valid and should be ignored when the ADC is in pow-
er-down mode (Y_SLEEP = 1). When the luma A/D is in sleep mode, LOF is set
to 1.
COF
Chroma ADC Overflow. On power-up, this bit is set to 0. If an ADC overflow oc-
curs, the bit is set to a logical 1. It is reset after being written to or a chip reset oc-
curs. The state of this bit is not valid and should be ignored when the ADC is in
power-down mode (C_SLEEP = 1). When the chroma A/D is in sleep mode, COF
is set to 1. Reads from this bit are insignificant on the Bt815A.
70
C
ONTROL
R
EGISTER
D
EFINITIONS
0x01 -- Input Format Register (IFORM)
Bt819A/7A/5A
0x01 -- Input Format Register (IFORM)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x58.
FORMAT(0) is the least significant bit. An asterisk indicates the default option.
HACTIVE
When using the Bt819A with a packed memory architecture, for example, with
field memories, this bit should be programmed with a logical 1. When implement-
ing a VRAM based architecture, program with a logical 0.
0* = Reset HACTIVE with HRESET
1
= Extend HACTIVE beyond HRESET
MUXSEL
Used for software control of video input selection. The Bt819A can select between
two composite video sources, or one composite and one S-video source.
00 = Reserved
01 = Select MUX2 input to MUXOUT
10* = Select MUX0 input to MUXOUT
11 = Select MUX1 input to MUXOUT
XTSEL
If automatic format detection is required, logical 11 must be loaded. Logical 01
and 10 are used if software format selection is desired.
00 = Reserved
01 = Select XT0 input (only XT0 present)
10 = Select XT1 input (both XTs present)
11* = Auto XT select enabled (both XTs present)
Reserved
This bit should only be written with a logical zero.
FORMAT
Automatic format detection may be enabled or disabled. The NUML bit is used to
determine the input format when automatic format detection is enabled.
00* = Auto format detect enabled
01 = NTSC (M) input format
10 = Reserved
11 = PAL (B, D, G, H, I) input format
7
6
5
4
3
2
1
0
HACTIVE
MUXSEL
XTSEL
Reserved
FORMAT
0
1
0
1
1
0
0
0
71
C
ONTROL
R
EGISTER
D
EFINITIONS
0x02 -- Temporal Decimation Register (TDEC)
Bt819A/7A/5A
0x02 -- Temporal Decimation Register (TDEC)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00.
DEC_RAT(0) is the least significant bit. An asterisk indicates the default option. This register enables temporal dec-
imation by discarding a finite number of fields or frames from the incoming video.
DEC_FIELD
Defines whether decimation is by fields or frames.
0* = Decimate frames
1
= Decimate fields
DEC_RAT
DEC_RAT is the number of fields or frames dropped out of 60 (NTSC) or 50
(PAL) fields or frames. 0x00 value disables decimation (all video frames and fields
are output).
Caution: When changing the programming in the TDEC register, 0x00 must be
loaded first and then the decimation value. This will ensure decimation does not
start on the wrong field or frame. The register should not be loaded with greater
than 60 (0x3C) for NTSC, or 50 (0x34) for PAL.
0x000xFF = Number of fields / frames output.
7
6
5
4
3
2
1
0
DEC_FIELD
DEC_RAT
0
0
0
0
0
0
0
0
72
C
ONTROL
R
EGISTER
D
EFINITIONS
0x03 -- MSB Cropping Register (CROP)
Bt819A/7A/5A
0x03 -- MSB Cropping Register (CROP)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x12.
HACTIVE_MSB(0) is the least significant bit. See the VACTIVE, VDELAY, HACTIVE and HDELAY registers for
descriptions on the operation of this register.
VDELAY_MSB
00xx xxxx11xx xxxx = The most significant two bits of vertical delay register
VACTIVE_MSB
xx00 xxxxxx11 xxxx = The most significant two bits of vertical active register
HDELAY_MSB
xxxx 00xxxxxx 11xx = The most significant two bits of horizontal delay register
HACTIVE_MSB
xxxx xx00xxxx xx11 = The most significant two bits of horizontal active register
0x04 -- Vertical Delay Register, Lower Byte (VDELAY_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x16.
VDELAY_LO(0) is the least significant bit. This 8-bit register is the lower byte of the 10-bit VDELAY register. The
two MSB's of VDELAY are contained in the CROP register. VDELAY defines the number of half lines between the
trailing edge of VRESET and the start of active video.
VDELAY_LO
0x010xFF = The least significant byte of the vertical delay register.
7
6
5
4
3
2
1
0
VDELAY_MSB
VACTIVE_MSB
HDELAY_MSB
HACTIVE_MSB
0
0
0
1
0
0
1
0
7
6
5
4
3
2
1
0
VDELAY_LO
0
0
0
1
0
1
1
0
73
C
ONTROL
R
EGISTER
D
EFINITIONS
0x05 -- Vertical Active Register, Lower Byte (VACTIVE_LO)
Bt819A/7A/5A
0x05 -- Vertical Active Register, Lower Byte (VACTIVE_LO)
This control register may be written to or read by the MPU at any time, and upon reset it is initialized to 0xE0.
VACTIVE_LO(0) is the least significant bit. This 8-bit register is the lower byte of the 10-bit VACTIVE register. The
two MSB's of VACTIVE are contained in the CROP register. VACTIVE defines the number of lines used in the ver-
tical scaling process. The actual number of lines output by the Bt819A is SCALING_RATIO * VACTIVE.
VACTIVE_LO
0x000xFF = The least significant byte of the vertical active register.
0x06 -- Horizontal Delay Register, Lower Byte (HDELAY_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x78.
HDELAY_LO(0) is the least significant bit. This 8-bit register is the lower byte of the 10-bit HDELAY register. The
two MSB's of HDELAY are contained in the CROP register. HDELAY defines the number of scaled pixels between
the falling edge of HRESET and the start of active video.
HDELAY_LO
0x010xFF = The least significant byte of the horizontal delay register. HACTIVE
pixels will be output by the chip starting at the fall of HRESET.
Caution: HDELAY must be programmed with an even number.
0x07 -- Horizontal Active Register, Lower Byte (HACTIVE_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x80.
HACTIVE_LO(0) is the least significant bit. HACTIVE defines the number of horizontal active pixels per line output
by the Bt819A.
HACTIVE_LO
0x000xFF = The least significant byte of the horizontal active register. This 8-bit
register is the lower byte of the 10-bit HACTIVE register. The two MSB's of HAC-
TIVE are contained in the CROP register.
7
6
5
4
3
2
1
0
VACTIVE_LO
1
1
1
0
0
0
0
0
7
6
5
4
3
2
1
0
HDELAY_LO
0
1
1
1
1
0
0
0
7
6
5
4
3
2
1
0
HACTIVE_LO
1
0
0
0
0
0
0
0
74
C
ONTROL
R
EGISTER
D
EFINITIONS
0x08 -- Horizontal Scaling Register, Upper Byte (HSCALE_HI)
Bt819A/7A/5A
0x08 -- Horizontal Scaling Register, Upper Byte (HSCALE_HI)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x02. This 8-bit
register is the upper byte of the 16-bit HSCALE register.
HSCALE_HI
0x000xFF = The most significant byte of the horizontal scaling ratio
0x09 -- Horizontal Scaling Register, Lower Byte (HSCALE_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0xAC. This 8-bit
register is the lower byte of the 16-bit HSCALE register.
HSCALE_LO
0x000xFF = The least significant byte of the horizontal scaling ratio
7
6
5
4
3
2
1
0
HSCALE_HI
0
0
0
0
0
0
1
0
7
6
5
4
3
2
1
0
HSCALE_LO
1
0
1
0
1
1
0
0
75
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0A -- Brightness Control Register (BRIGHT)
Bt819A/7A/5A
0x0A -- Brightness Control Register (BRIGHT)
The brightness control involves the addition of a two's complement number to the luma channel. Brightness can be
adjusted in 255 steps, from 128 to +127. The resolution of brightness change is one LSB (0.39% with respect to the
full luma range).
BRIGHT
7
6
5
4
3
2
1
0
BRIGHT
0
0
0
0
0
0
0
0
Hex Value
Binary Value
Brightness Changed By
Number
of LSBs
Percent of
Full Scale
0x80
1000 0000
128
50%
0x81
1000 0001
127
49.6%
.
.
.
.
.
.
0xFF
1111 1111
01
0.39%
0x00*
0000 0000*
00
0%
0x01
0000 0001
+01
+0.39%
.
.
.
.
.
.
0x7E
0111 1110
+126
+49.2%
0x7F
0111 1111
+127
+49.6%
76
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0B -- Miscellaneous Control Register (CONTROL)
Bt819A/7A/5A
0x0B -- Miscellaneous Control Register (CONTROL)
This control register may be written to or read by the MPU at any time, and upon reset it is initialized to 0x20.
SAT_V_MSB is the least significant bit.
LNOTCH
This bit is used to include the luma notch filter. For monochrome video, the notch
should not be used. This will output full bandwidth luminance.
0* = Enable the luma notch filter
1
= Disable the luma notch filter
COMP
When COMP is set to logical one, the luma notch is disabled. When COMP is set
to logical zero, the C ADC is disabled. When using the Bt815A, this bit must be
programmed with a zero.
** Bt819A and Bt817A only.
0* = Composite Video
1
= Y/C Component Video
LDEC
The luma decimation filter is used to reduce the high-frequency component of the
luma signal. Useful when scaling to CIF resolutions or lower.
0
= Enable luma decimation
1* = Disable luma decimation
CBSENSE
This bit controls whether the first pixel of a line is a Cb pixel or a Cr pixel. For ex-
ample, if CBSENSE is low and HDELAY is an even number, the first active pixel
output is a Cb pixel. If HDELAY is odd, CBSENSE may be programmed high to
produce a Cb pixel as the first active pixel output.
0* = Normal CbFLAG (high for the 1st pixel of line)
1
= Invert the CbFLAG polarity
INTERP
This is primarily a test mode. The interpolator should always be enabled.
0* = Enable interpolation
1
= Disable interpolation
CON_MSB
The most significant bit of the luma gain (contrast) value
SAT_U_MSB
The most significant bit of the chroma (u) gain value
SAT_V_MSB
The most significant bit of the chroma (v) gain value
7
6
5
4
3
2
1
0
LNOTCH
COMP**
LDEC
CBSENSE
INTERP
CON_MSB
SAT_U_MSB
SAT_V_MSB
0
0
1
0
0
0
0
0
77
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0C -- Luma Gain Register, Lower Byte (CONTRAST_LO)
Bt819A/7A/5A
0x0C -- Luma Gain Register, Lower Byte (CONTRAST_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0xD8.
CONTRAST_LO(0) is the least significant bit. The CON_L_MSB bit and the CONTRAST_LO register concatenate
to form the 9-bit CONTRAST register. The value in this register is multiplied by the luminance value to provide con-
trast adjustment.
CONTRAST_LO
The least significant byte of the luma gain (contrast) value.
7
6
5
4
3
2
1
0
CONTRAST_LO
1
1
0
1
1
0
0
0
Decimal Value
Hex Value
% of Original Signal
511
0x1FF
236.57%
510
0x1FE
236.13%
.
.
.
.
.
.
217
0x0D9
100.46%
216
0x0D8*
100.00%
.
.
.
.
.
.
128
0x080
59.26%
.
.
.
.
.
.
1
0x001
0.46%
0
0x000
0.00%
78
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0D -- Chroma (U) Gain Register, Lower Byte (SAT_U_LO)
Bt819A/7A/5A
0x0D -- Chroma (U) Gain Register, Lower Byte (SAT_U_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0xFE.
SAT_U_LO(0) is the least significant bit. SAT_U_MSB in the CONTROL register, and SAT_U_LO concatenate to
give a 9-bit register (SAT_U). This register is used to add a gain adjustment to the U component of the video signal.
By adjusting the U and V color components of the video stream by the same amount, the saturation is adjusted. For
normal saturation adjustment, the gain in both the color difference paths must be the same (i.e. the ratio between the
value in the U gain register and the value in the V gain register should be kept constant at the default power-up ratio).
When changing the saturation, if the SAT_U_MSB bit is altered, care must be taken to ensure that the other bits in the
CONTROL register are not affected.
SAT_U_LO
7
6
5
4
3
2
1
0
SAT_U_LO
1
1
1
1
1
1
1
0
Decimal Value
Hex Value
% of Original Signal
511
0x1FF
201.18%
510
0x1FE
200.79%
.
.
.
.
.
.
255
0x0FF
100.39%
254
0x0FE*
100.00%
.
.
.
.
.
.
128
0x080
50.39%
.
.
.
.
.
.
1
0x001
0.39%
0
0x000
0.00%
79
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0E -- Chroma (V) Gain Register, Lower Byte (SAT_V_LO)
Bt819A/7A/5A
0x0E -- Chroma (V) Gain Register, Lower Byte (SAT_V_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0xB4.
SAT_V_LO(0) is the least significant bit. SAT_V_MSB in the CONTROL register and SAT_V_LO concatenate to
give a 9-bit register (SAT_V). This register is used to add a gain adjustment to the V component of the video signal.
By adjusting the U and V color components of the video stream by the same amount, the saturation is adjusted. For
normal saturation adjustment, the gain in both the color difference paths must be the same (i.e. the ratio between the
value in the U gain register and the value in the V gain register should be kept constant at the default power-up ratio).
When changing the saturation, if the SAT_V_MSB bit is altered, care must be taken to ensure that the other bits in the
CONTROL register are not affected.
SAT_V_LO
7
6
5
4
3
2
1
0
SAT_V_LO
1
0
1
1
0
1
0
0
Decimal Value
Hex Value
% of Original Signal
511
0x1FF
283.89%
510
0x1FE
283.33%
.
.
.
.
.
.
181
0x0B5
100.56%
180
0x0B4*
100.00%
.
.
.
.
.
.
128
0x080
71.11%
.
.
.
.
.
.
1
0x001
0.56%
0
0x000
0.00%
80
C
ONTROL
R
EGISTER
D
EFINITIONS
0x0F -- Hue Control Register (HUE)
Bt819A/7A/5A
0x0F -- Hue Control Register (HUE)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00. HUE(0)
is the least significant bit. An asterisk indicates the default option. Hue adjustment involves the addition of a two's
complement number to the demodulating subcarrier phase. Hue can be adjusted in 256 steps in the range 90 to
+89.3, in increments of 0.7.
HUE
7
6
5
4
3
2
1
0
HUE
0
0
0
0
0
0
0
0
Hex Value
Binary Value
Subcarrier
Reference
Changed By
Resulting Hue
Changed By
0x80
1000 0000
90
+90
0x81
1000 0001
89.3
+89.3
.
.
.
.
.
.
.
.
0xFF
1111 1111
0.7
+0.7
0x00*
0000 0000*
00
00
0x01
0000 0001
+0.7
0.7
.
.
.
.
.
.
.
.
0x7E
0111 1110
+88.6
88.6
0x7F
0111 1111
+89.3
89.3
81
C
ONTROL
R
EGISTER
D
EFINITIONS
0x10 -- Reserved
Bt819A/7A/5A
0x10 -- Reserved
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00, and must
only be written to with 0x00.
0x11 -- Reserved
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00, and must
only be written to with 0x00.
82
C
ONTROL
R
EGISTER
D
EFINITIONS
0x12 -- Output Format Register (OFORM)
Bt819A/7A/5A
0x12 -- Output Format Register (OFORM)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x06. FULL is
the least significant bit. An asterisk indicates the default option.
RANGE
Luma Output Range: This bit determines the range for the luminance output on the
Bt819A. The range must be limited when using the control codes as video timing.
0* = Normal operation (Luma range 16253, chroma range 2253).
Y=16 is black (pedestal).
Cr, Cb=128 is zero color information.
1
= Full-range Output (Luma range 0255, chroma range 2253)
Y=0 is black (pedestal).
Cr, Cb=128 is zero color information.
RND
Output Rounding: These bits control the number of bits output from the Bt819A,
MSB justified. When rounding is implemented, the unused LSBs are set to zero.
00* = Normal Operation
01 = 6-bit Luma & 4-bit Chroma Output (Rounded)
10 = 7-bit Luma & 5-bit Chroma Output (Rounded)
11 = Reserved
FIFO_BURST
FIFO Read Control: When enabled, this pin internally connects RDEN to
DVALID. In API mode, when these pins are connected, the data is automatically
burst out of the FIFO. If these pins are not connected, the system must control
reads from the FIFO, and ensure the data does not overflow. Reads and writes to
this bit are ignored on the Bt817A and Bt815A.
** Applies only to Bt819A.
0* = Internally Feedback DVALID to RDEN
1
= Control RDEN externally
CODE
Code Control Disable: This bit determines if control codes are output with the vid-
eo data. SPI mode 2 requires this bit to be programmed with a logical 1. When con-
trol codes are inserted into the data stream, the external control signals are still
available.
0* = Disable control code insertion
1
= Enable control code insertion
7
6
5
4
3
2
1
0
RANGE
RND
FIFO_BURST**
CODE
LEN
SPI**
FULL
0
0
0
0
0
1
1
0
83
C
ONTROL
R
EGISTER
D
EFINITIONS
0x12 -- Output Format Register (OFORM)
Bt819A/7A/5A
LEN
Eight or Sixteen Bit Format: This bit determines the output data format. In 8-bit
mode, the data is output on VD[15:8].
0
= 8-bit YCrCb 4:2:2 output stream
1* = 16-Bit YCrCb 4:2:2 output stream
SPI
Pixel Interface Control: When programmed with a logical zero, the data is output
using the FIFO in API mode. When programmed with a logical one, the FIFO is
bypassed and the data is output in SPI mode. On the Bt817A and Bt815A, this bit
must be loaded with a logical one.
** Applies only to Bt819A.
0
= Asynchronous pixel interface
1* = Synchronous pixel interface
FULL
This bit controls the point at which the FIFO full flag toggles. When programmed
with a logical zero, the FIFO signals that it is half full by setting AFF high at 20
pixels (out of a possible 40). When programmed with a logical one, AFF toggles
high at 32 pixels indicating that the FIFO is approaching full. Writes and reads to
this pin are ignored on the Bt817A and Bt815A.
0* = AFF and DVALID go high when there are at least 20 pixels in the
output FIFO.
1
= AFF and DVALID go high when there are at least 32 pixels in the
output FIFO.
Y/Cr/Cb[7]
Y/Cr/Cb[0]
Y[7]
Y[0]
VD[15]
VD[8] VD[7]
VD[0]
Cr/Cb[7]
Cr/Cb[0]
VD
16-bit
8-bit
84
C
ONTROL
R
EGISTER
D
EFINITIONS
0x13 -- Vertical Scaling Register, Upper Byte (VSCALE_HI)
Bt819A/7A/5A
0x13 -- Vertical Scaling Register, Upper Byte (VSCALE_HI)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x60.
LINE
Line Store Enable: This bit enables operation of the line store for use in vertical
scaling. When enabled, the luminance component of the video signal is scaled us-
ing two-tap, poly-phase scaling. When disabled, simple line dropping is imple-
mented. Reads and writes to this bit are ignored on the Bt817A and Bt815A.
** Applies to Bt819A only.
0* = Luma VS using Line Store
1
= Luma VS using DDA
COMB
Chroma Comb Enable: This bit determines if the chroma comb is included in the
data path. If enabled, a full line store is used to average adjacent lines of color in-
formation, reducing cross-color artifacts. The chroma comb is available on all
three parts (Bt819A, Bt817A and Bt815A).
0
= Chroma comb disabled
1* = Chroma comb enabled
INT
Interlace: This bit is programmed to indicate if the incoming video is interlaced or
non-interlaced. For example, if using the full frame as input for vertical scaling,
this bit should be programmed high. If using a single field for vertical scaling, this
bit should be programmed low. Single field scaling is normally used when scaling
below CIF resolution and outputting to a non-interlaced monitor. Using a single
field will reduce motion artifacts.
0
= Non-interlace VS
1* = Interlace VS
VSCALE_HI
Vertical Scaling Ratio: These five bits represent the most significant portion of the
13-bit vertical scaling ratio register. The system must take care not to alter the con-
tents of the LINE, COMB and INT bits while adjusting the scaling ratio.
7
6
5
4
3
2
1
0
LINE**
COMB
INT
VSCALE_HI
0
1
1
0
0
0
0
0
85
C
ONTROL
R
EGISTER
D
EFINITIONS
0x14 -- Vertical Scaling Register, Lower Byte (VSCALE_LO)
Bt819A/7A/5A
0x14 -- Vertical Scaling Register, Lower Byte (VSCALE_LO)
This control register may be written to or read by the MPU at any time. Upon reset it is initialized to 0x00.
VSCALE_LO
Vertical Scaling Ratio: These eight bits represent the least significant byte of the
13-bit vertical scaling ratio register. They are concatenated with five bits in
VSCALE_HI. The following equation should be used to determine the value for
this register:
For example, to scale PAL input to square pixel QCIF, the total number of vertical
lines is 156:
7
6
5
4
3
2
1
0
VSCALE_LO
0
0
0
0
0
0
0
0
VSCALE = ( 0x10000 { [ ( scaling_ratio ) 1] * 512 } ) & 0x1FFF
VSCALE = ( 0x10000 { [ ( 4/1 ) - 1 ] * 512 } ) & 0x1FFF
= 0x1A00
86
C
ONTROL
R
EGISTER
D
EFINITIONS
0x15 -- Test Control Register (TEST)
Bt819A/7A/5A
0x15 -- Test Control Register (TEST)
This control register is reserved for putting the part into test mode. Write operation to this register may cause unde-
termined behavior and should not be attempted. A read cycle from this register returns 0x01, and only a write of 0x01
is permitted.
0x16 -- Video Timing Polarity Register (VPOLE)
This control register may be written to or read by the MPU at any time. Upon reset, it is initialized to 0x00.
OUTEN
Three-states the following pins: VD[15:0], HRESET, VRESET, ACTIVE,
DVALID, CBFLAG, FIELD, AEF, AFF, QCLK, CLKx1, and CLKx2.
0* = Enable Outputs
1
= Three-stated outputs
DVALID
0* = DVALID Pin: Active high
1
= DVALID Pin: Active low
AFF
** This bit applies only to the Bt819A. Reads and writes to this bit are ignored on
the Bt817A and Bt815A.
0* = AFF Pin: Active high
1
= AFF Pin: Active low
CBFLAG
0* = CBFLAG Pin: Active high
1
= CBFLAG Pin: Active low
FIELD
0* = FIELD Pin: High indicates odd field
1
= FIELD Pin: High indicates even field
ACTIVE
0* = ACTIVE Pin: Active high
1
= ACTIVE Pin: Active low
HRESET
0* = HRESET Pin: Active low
1
= HRESET Pin: Active high
VRESET
0* = VRESET Pin: Active low
1
= VRESET Pin: Active high
Note:
In API mode, the FIELD, VALID and AFF pins do not have programmable polar-
ities. They are programmable only in SPI mode.
7
6
5
4
3
2
1
0
OUT_EN
DVALID
AFF**
CBFLAG
FIELD
ACTIVE
HRESET
VRESET
0
0
0
0
0
0
0
0
87
C
ONTROL
R
EGISTER
D
EFINITIONS
0x17 -- ID Code Register (IDCODE)
Bt819A/7A/5A
0x17 -- ID Code Register (IDCODE)
This control register may be read by the MPU at any time. IDCODE(0) is the least significant bit.
PART_ID
PART_REV
0x0 0xF = Current Revision ID Code
0x18 -- AGC Delay Register (ADELAY)
This control register may be written to or read by the MPU at any time. Upon reset, it is initialized to 0x68.
ADELAY
AGC gate delay for back-porch sampling. The following equation should be used
to determine the value for this register:
For example, for an NTSC input signal:
7
6
5
4
3
2
1
0
PART_ID
PART_REV
0
1
1
1
0
0
0
0
0111
Bt819A Part ID Code
0110
Bt817A Part ID Code
0010
Bt815A Part ID Code
7
6
5
4
3
2
1
0
ADELAY
0
1
1
0
1
0
0
0
ADELAY = ( 6.8
S * f
CLKx1
) + 7
ADELAY = ( 6.8
S * 14.32 MHz ) + 7
= 104 (0x68)
88
C
ONTROL
R
EGISTER
D
EFINITIONS
0x19 -- Burst Delay Register (BDELAY)
Bt819A/7A/5A
0x19 -- Burst Delay Register (BDELAY)
This control register may be written to or read by the MPU at any time. Upon reset, it is initialized to 0x5D.
BDELAY(0) is the least significant bit.
BDELAY
The burst gate delay for sub-carrier sampling. The following equation should be
used to determine the value for this register:
For example, for an NTSC input signal:
7
6
5
4
3
2
1
0
BDELAY
0
1
0
1
1
1
0
1
BDELAY = ( 6.5
S * f
CLKx1
)
BDELAY = ( 6.5
S * 14.32 MHz )
= 93 (0x5D)
89
C
ONTROL
R
EGISTER
D
EFINITIONS
0x1A -- ADC Interface Register (ADC)
Bt819A/7A/5A
0x1A -- ADC Interface Register (ADC)
This control register may be written to or read by the MPU at any time. Upon reset, it is initialized to 0x82. ADC(0)
is the least significant bit.
CLAMP
00 = Clamp on the Back Porch to 0x30
01 = Clamp on the Back Porch to 0x34
10* = Clamp on the Back Porch to 0x38
11 = Clamp on the Back Porch to 0x3C
SYNC_T
0* = Analog SYNCDET threshold high (~125 mV)
1
= Analog SYNCDET threshold low (~75 mV)
AGC_EN
0* = AGC Enabled
1
= AGC Disabled
CLK_SLEEP
Output clocks are still running, I
2
C registers are still accessible. Recovery time is
approximately one second.
0* = Normal Clock Operation
1
= Shut down the System Clock (Power Down)
Y_SLEEP
0* = Normal Y ADC operation
1
= Sleep Y ADC operation
C_SLEEP
** Applies only to Bt819A and Bt817A. Reads and writes to this bit are ignored on
Bt815A.
0
= Normal C ADC operation
1* = Sleep C ADC operation
Reserved
This bit should only be written with a logical zero.
7
6
5
4
3
2
1
0
CLAMP
SYNC_T
AGC_EN
CLK_SLEEP
Y_SLEEP
C_SLEEP**
Reserved
1
0
0
0
0
0
1
0
90
C
ONTROL
R
EGISTER
D
EFINITIONS
0x1B to 0x1E -- Reserved Registers
Bt819A/7A/5A
0x1B to 0x1E -- Reserved Registers
These control registers are reserved for future use. Write operations to these registers may cause undetermined be-
havior and should not be attempted. A read cycle from these registers returns an undefined value.
0x1F -- Software Reset Register (SRESET)
This command register can be written at any time. Read cycles to this register return an undefined value. A data write
cycle to this register resets the device to the default state (indicated in the command register definitions by an aster-
isk). Writing any data value into this address resets the device.
91
P
ARAMETRIC
I
NFORMATION
DC Electrical Parameters
Table 14. Recommended Operating Conditions
Parameter
Symbol
Min
Typ
Max
Units
Power Supply -- Analog
V
AA
4.75
5.00
5.25
V
Power Supply -- Digital
V
DD
4.75
5.00
5.25
V
Maximum
|V
DD
V
AA
|
0.5
V
Mux0, Mux1 and Mux2Input Range
(AC coupling required)
0.5
1.00
2.00
V
VIn Amplitude Range (AC coupling required)
0.5
1.00
2.00
V
Ambient Operating Temperature
T
A
0
+70
C
Table 15. Absolute Maximum Ratings
Parameter
Symbol
Min
Typ
Max
Units
V
AA
(measured to AGND)
7.00
V
V
DD
(measured to DGND)
7.00
V
Voltage on any signal pin (See the note below)
DGND 0.5
V
DD
+ 0.5
V
Analog Input Voltage
AGND 0.5
V
AA
+ 0.5
V
Storage Temperature
T
S
65
+150
C
Junction Temperature
T
J
+125
C
Vapor Phase Soldering
(15 Seconds)
T
VSOL
+220
C
Note: Stresses above those listed may cause permanent damage to the device. This is a stress rating only, and func-
tional operation at these or any other conditions above those listed in the operational section of this specification
is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability.
This device employs high-impedance CMOS devices on all signal pins. It must be handled as an ESD-sensi-
tive device. Voltage on any signal pin that exceeds the power supply voltage by more than +0.5 V or drops
below ground by more than 0.5 V can induce destructive latchup.
92
P
ARAMETRIC
I
NFORMATION
AC Electrical Parameters
Bt819A/7A/5A
AC Electrical Parameters
Table 16. DC Characteristics
Parameter
Symbol
Min
Typ
Max
Units
Digital Inputs
Input High Voltage (TTL)
Input Low Voltage (TTL)
Input High Voltage (XT0I, XT1I)
Input Low Voltage (XT0I, XT1I)
Input High Current (V
In
=V
DD
)
Input Low Current (V
IN
=GND)
Input Capacitance
(f=1 MHz, V
IN
=2.4 V)
V
IH
V
IL
V
IH
V
IL
I
IH
I
IL
C
IN
2.0
3.5
GND 0.5
5
V
DD
+ 0.5
0.8
V
DD
+ 0.5
1.5
10
10
V
V
V
V
A
A
pF
Digital Outputs
Output High Voltage (I
OH
= 400
A)
Output Low Voltage (I
OL
= 3.2 mA)
3-State Current
Output Capacitance
V
OH
V
OL
I
OZ
C
O
2.4
5
V
DD
0.4
10
V
V
A
pF
Analog Pin Input Capacitance
C
A
5
pF
Table 17. Clock Timing Parameters
Parameter
Symbol
Min
Typ
Max
Units
NTSC:
CLKx1 Rate
CLKx2 Rate (50 PPM source required)
F
S1
F
S2
14.318181
28.636363
MHz
MHz
PAL:
CLKx1 Rate
CLKx2 Rate (50 PPM source required)
F
S1
F
S2
17.734475
35.468950
MHz
MHz
XT0 and XT1 Inputs
Cycle Time
High Time
Low Time
1
2
3
28.2
12
12
ns
ns
ns
CLKx1 Duty Cycle
CLKx2 Duty Cycle
CLKx2 to CLKx1 Delay
CLKx1 to Data Delay
CLKx2 to Data Delay
8-Bit mode:
Data to QCLK (Rising Edge) Delay
QCLK (Rising Edge) to Data Delay
16-Bit Mode:
Data to QCLK (Rising Edge) Delay
QCLK (Rising Edge) to Data Delay
4
5
6
7a
8a
7b
8b
45
40
1
5
8
5
15
15
25
55
60
8
20
20
%
%
ns
ns
ns
ns
ns
ns
ns
93
P
ARAMETRIC
I
NFORMATION
AC Electrical Parameters
Bt819A/7A/5A
Figure 37. Clock Timing Diagram
XT0I
CLK
X
2
OR
XT1I
CLK
X
1
P
IXEL
AND
C
ONTROL
D
ATA
1
2
3
4
6
5
QCLK
P
IXEL
AND
C
ONTROL
D
ATA
QCLK
8
B
7
B
8
A
7
A
16-B
IT
M
ODE
8-B
IT
M
ODE
94
P
ARAMETRIC
I
NFORMATION
AC Electrical Parameters
Bt819A/7A/5A
Table 18. Power Supply Current Parameters
Parameter
Symbol
Min
Typ
Max
Units
Supply Current (Bt819A and Bt817A)
V
AA
=V
DD
=5.0V, F
CLKx2
=28.64 MHz, T=25C
V
AA
=V
DD
=5.25V, F
CLKx2
=35.47 MHz, T=70C
V
AA
=V
DD
=5.25V, F
CLKx2
=35.47 MHz, T=0C
Supply Current, Power Down
I
230
100
310
340
mA
mA
mA
mA
Supply Current (Bt815A)
V
AA
=V
DD
=5.0V, F
CLKx2
=28.64 MHz, T=25C
V
AA
=V
DD
=5.25V, F
CLKx2
=35.47 MHz, T=70C
V
AA
=V
DD
=5.25V, F
CLKx2
=35.47 MHz, T=0C
Supply Current, Power Down
I
230
100
265
285
mA
mA
mA
mA
Table 19. Output Enable Timing Parameters
Parameter
Symbol
Min
Typ
Max
Units
OE Asserted to Data Bus Driven
OE Asserted to Data Valid
OE Negated to Data Bus Not Driven
9
10
11
0
100
100
nS
nS
nS
RST Low Time
8
XTAL cycles
Figure 38. Output Enable TIming Diagram
OE
10
11
P
IXEL
, C
LOCK
AND
C
ONTROL
D
ATA
9
95
P
ARAMETRIC
I
NFORMATION
AC Electrical Parameters
Bt819A/7A/5A
Table 20. JTAG Timing Parameters
Parameter
Symbol
Min
Typ
Max
Units
TMS, TDI Setup Time
TMS, TDI Hold Time
TCK Asserted to TDO Valid
TCK Asserted to TDO Driven
TCK Negated to TDO Three-stated
TCK Low Time
TCK High TIme
12
13
14
15
16
17
18
25
25
10
10
60
5
80
ns
ns
ns
ns
ns
ns
ns
Figure 39. JTAG TIming Diagram
12
13
17
18
14
15
16
TDI, TMS
TCK
TDO
96
P
ARAMETRIC
I
NFORMATION
AC Electrical Parameters
Bt819A/7A/5A
Note:
Test conditions (unless otherwise specified): "Recommended Operating Condi-
tions." TTL input values are 03 V, with input rise/fall times
3 ns, measured be-
tween the 10% and 90% points. Timing reference points at 50% for digital inputs
and outputs. Pixel and control data loads
30 pF and
10 pF. CLKx1 and CLKx2
loads
50 pF. Control data includes CBFLAG, DVALID, ACTIVE, HRESET,
VRESET and FIELD
Table 21. FIFO Timing Parameters (Bt819A Only)
Parameter
Symbol
Min
Typ
Max
Units
FRST Low Time
CLKIN Rate
CLKIN Duty Cycle
RDEN Setup Time
RDEN Hold Time
CLKIN to Data Delay (except DVALID)
FIFO Data Retention Time
Data to QCLK (Rising Edge) Delay
QCLK (Rising Edge) to Data Delay
CLKIN to DVALID Data Delay
19
20
21
22
23
24
4
40
10
5
5
64
10
6
5
36
60
20
22
CLKx1 cycles
MHz
%
ns
ns
ns
ms
ns
ns
ns
Figure 40. FIFO Output Timing Diagram
21
20
23
22
19
CLKIN
RDEN
P
IXEL
AND
C
ONTROL
D
ATA
QCLK
VALID
VALID
24
Table 22. Decoder Performance Parameters
Parameter
Symbol
Min
Typ
Max
Units
Horizontal Lock Range
7
% of Line
Length
Fsc, Lock-in Range
800
Hz
Gain Range
6
6
dB
97
P
ARAMETRIC
I
NFORMATION
Package Mechanical Drawings
Bt819A/7A/5A
Package Mechanical Drawings
Figure 41. 100PQFP Package Mechanical Drawing
98
P
ARAMETRIC
I
NFORMATION
Package Mechanical Drawings
Bt819A/7A/5A
Figure 42. 100TQFP Package Mechanical Drawing
99
P
ARAMETRIC
I
NFORMATION
Datasheet Revision History
Bt819A/7A/5A
Datasheet Revision History
Table 23. Bt819A Datasheet Revision History
(1 of 2)
Revision
Date
Change
Description
Rev. A
4/21/95
Corrections
from L819001
Rev. B
1)
Description of ByteStream changed to indicate CLKx2 is normally
used and not QCLK.
2)
The recommended inductor value in the anti-aliasing filter in "Typi-
cal External Circuitry" changed to 3.3
H from 3.6
H. Note the
recommended tolerance for all inductors in the datasheet is
10%
3)
Figure 26 changed to indicate that pixel output data changes one
clock after DVALID transitions low.
4)
Table 9 changed to indicate that HRESET is output after the last
pixel in a line and VRESET is output after the HRESET of the last
line in the field.
5)
Typographical mistake in the recommended entry for the
HSCALE_LO value at the beginning of the Control Register Defini-
tion section. The value for square pixel NTSC was changed from
0xAC to 0xAA.
6)
The power numbers have been added to Table 18 for all three
devices.
7)
Suggested configuration for use of the FIFO in API mode B has
been added to the API section of the datasheet.
100
P
ARAMETRIC
I
NFORMATION
Datasheet Revision History
Bt819A/7A/5A
Rev. B
12/29/95
1)
Bt815 pin definitions changed to provide complete compatibility
between Bt819, Bt817 and Bt815 (Pin numbers 64, 67, 74 and
81).
2)
Bt817 pin definition for pin 81 changed to provide compatibility
between Bt819, Bt817 and Bt815.
3)
Standard Crystal included in recommended crystal manufacturers
as they offer very short lead times.
4)
Bias capacitors changed to optional. Not recommended for new
designs.
5)
FIFO pin definitions in Table 7 and Table 9 are incorrect. The even
field is field 2, and the odd field is field 1.
6)
API mode-A change: CLKIN must be connected to CLKx1.
7)
API mode-B change: The FIFO should not be emptied while active
video is being written into the FIFO. Do not read the FIFO until
empty, during the active video line.
8)
In both API modes A and B: The control codes are not valid when
the FIFO is not being read.
9)
Example schematic in Figure 36 changed to reflect Bt819A.
10)
Typographical error in the STATUS register corrected. COF is the
least significant bit.
11)
Additional crystal vendors added. Short lead times available from
Standard Crystal.
12)
The timing from QCLK to Data Valid in 8-bit mode was changed.
See Figure 37.
13)
The VPOLE register definition was changed to indicate that
DVALID, FIELD and AFF do not have programmable polarities in
API mode.
Rev. C
09/18/96
In Functional Description section under Scaling Registers, HSCALE:
was = 12331
changed to = 15602
Table 23. Bt819A Datasheet Revision History
(2 of 2)
Revision
Date
Change
Description
Rockwell Semiconductor Systems, Inc.
9868 Scranton Road
San Diego, CA 92121-3707
(619) 452-7580
1(800) 2-BT-APPS
FAX: (619) 452-1249
Internet: image@brooktree.com
L819_C
printed on recycled paper