Preliminary: SPCA702A
Preliminary: SPCA702A
Preliminary: SPCA702A
VCD DECODER
GENERAL DESCRIPTION
The SPCA702A VCD decoder is designed to maximize system performance and minimize cost. The standard
configuration requires only a 256K x 16 DRAM, a ROM, a VCD-AV interface IC and a CD-kit to build a complete
VCD player. An enhancement mode extends external DRAM from 4Mbits to 8Mbits (extendable to 16Mbits if
package uses a 160 pin QFP).
The SPCA702A integrates functions needed for a VCD system, such as Stereo Key controller for Karaoke, Audio
wide sound and Digital audio decoder. And in order to make the VCD system more sophisticated, the
SPCA702A also includes a flexible programmable interface. Through the interface, not only can the
microprocessor in a VCD player be neglected, but it also allows the VCD player to be programmed for numerous
applications.
The SPCA702A is designed as a glueless connection for traditional TV encoder and audio DAC. In order to
further reduce costs, it can also be directly interfaced with CD-DSP IC, AV interface IC, and echo generator.
Designed to fulfill VCD requirements, the SPCA702A includes, not only the latest technology, but also the full
service and support of Sunplus.
DRAM ROM
CD-DSP TV Encoder TV
SPCA702A
up(optional)
Stereo
Audio DAC
Audio
Front Function
Panel Keys
FEATURES
✝General features ✝Built-in Programmable Karaoke processor with
─ Only requires one 256K x 16 DRAM ─ Key control for MPEG audio layer1, layer2 and
─ 14K bytes free space for user usage and OSD layer3
─ Glueless interface to CD-DSP, DRAM, ROM, ─ Programmable wide sound
Audio DAC and TV encoder ✝Built-in PLLs generating system and audio clocks
✝Real time video decompression ✝Programmable serial bitstream CD interface
─ MPEG1 video decoder conforming to ISO-11172 ✝Supports parallel mode Host control Interface
─ Programmable hybrid video error concealment ✝Low voltage detection circuit to prevent power
✝Real time audio decompression instability
1)
─ MPEG audio layer 1, 2 and 3 decompression ✝Software Drivers
conforming to ISO-11172 standard ─ Drivers for CD-I (green book, white book),
─ Automatic audio error concealment Karaoke CD, Video CD 2.0/1.1 and Audio CD
─ Digital volume control (CD-DA)
✝Real time system layer decompression conforming ─ Preview
to ISO-11172 standard ─ User definable features
✝Advanced video processing and display ─ RISC game software
─ Supports NTSC and PAL TV standards ─ ZoomPro: Programmable video Zoom-in/out
─ Performs vertical scaling to allow NTSC/PAL ─ ImagePro: Programmable digital image
source to be displayed on PAL/NTSC TV in processing
correct aspect ratio ✝Versatile programmable interface
─ Performs real-time processing at 720x480x30 ─ Support system controller emulation
fps, 720x240x60 fps, 720x576x25 fps or ─ Programmable serial I/O interface for IR in/out,
720x288x50 fps CD-kit (DSA or CD-DSP IC) control and VFD
─ Horizontal and Vertical Interpolation for high control etc.
quality video output ─ Accept digital audio PCM format input
─ Video fade-in/fade-out
✝Component features
─ Supply voltage : 3.0 volts to 3.6 volts
─ I/O interface : 5 volts tolerance
─ Package : 128-pin QFP
License Notice:
Supply of this implementation of MPEG audio layer 3 technology does not convey a license nor imply any right to use this
implementation in any finished end-user or ready-to-use final product. An independent license for such use is required.
For more information contact: [email protected].
DRAM Video
Interface Interface
Programmable
I/O Interafce
CD Interafce MPEG1
Video Decoder
Host Interafce
PCM
Interface
KaraOk&
RISC
Sound Effect
Processor
Processor
Clock MPEG1
Generator Audio Decoder
ROM_DATA(7:0) ROM data bus Input Ack signal for DSA interface
Generic 8-bit parallel ROM data bus. DSA_DATA Data signal Bidirectional
ROM_ADDR(17:0) ROM address bus Output Data signal for DSA interface.
VFD_CLK clock signal Output IR input pin. This input supports both NEC and Philips
SYSTEM SYNC
SOME ABBREVIATIONS FOR SYSTEM SYNC MODULE
STC - System Time Clock
SCR - System Clock Reference
DTS - Decode Time Stamp
PTS - Presentation Time Stamp
STD - System Target Decoder (ideal decoder)
PU - Presentation Unit
AU - Access Unit
DSM - Digital Storage Medium
Fs - Sampling Frequency
TIME MASTER
A decoding system, including all of the synchronized decoders and the source of the coded data, must have
exactly one independent time master. The SPCA702A chip allows the microcode to use either the DSM or
Audio block as the time master. The time master selection depends on how the STC is updated.
VIDEO DECODER
The Video Decoder is an MPEG 1 video decoder optimized for minimum size while conforming to ISO 11172
standard. The module will read an MPEG 1 video stream in and continuously generate frames in external
DRAM. The frames will then be processed by a video processor for final display. The Video Decoder performs
the following functions:
1) Huffman Decoding
2) Dequantization
3) Inverse Cosine Transform
4) Motion Vector Generator
5) Address Generator
6) Motion Compensation
VIDEO PROCESSOR
The Video Processor & Output Interface is responsible for taking decompressed data from memory (DRAM), and
process the data into raster (interlaced or non-interlaced) video. Some of the important processing functions
include horizontal/vertical interpolation, filtering and clipping.
The video processing functions performed by the video processor include vertical interpolation, horizontal
interpolation, horizontal filtering, proprietary high-resolution functions and clipping functions. Video
interpolations allow for small SIF images of MPEG video decoding to be enlarged without blocking or
discontinuity effects. The final display of the SIF image will have smooth transitions in both horizontal and
vertical directions. Horizontal filtering will also be performed to reduce any aliasing effects. The proprietary
SPCA702A PAL_NTSC
CLK27OUT
8
DATA_TV
TV
Encoder
VSYNC_IN
HSYNC_IN
CLK27OUT
HSYNC_IN
ON SCREEN DISPLAY
The on screen display feature is intended to display a rectangular area which can be a graphic or text overlay the
decoded video on the screen. There are flexible numbers of rectangular regions that can be in a field and each
region consists of a region header and data. Host or RISC will program these headers and data then store to
the DRAM for various application purpose. OSD decoder reads the header and data, then interpreted as
graphic data and overlaid with video 3.2(o)(e)-0S purpose.d data, pur 8dec4105 Tithvideo am t6video 3. c ists01279-8.4
BLEND LEVEL
This parameter gives the ratio of OSD that will mix with the corresponding video data to be displayed on the
screen.
AUDIO DECODER
The Audio Decoder will process all computation intensive functions for the MPEG 1 Layer1, Layer 2 and Layer3
decompression tasks. However, Layer3 can not be decoded when the video decoding function is in progress.
Layer1 and Layer2 can be smoothly decoded when the video decoding function is enabled. RISC and Audio
Decoder cooperate in the audio decoding procedure. Front-end decoding functions, which have low
computational requirements, are handled by the RISC processor. The Re-quantization and Synthesis Subband
Filter functions are the most computationally intensive portions of audio decompression and are processed by
the Audio Decoder. After audio data has been decompressed, the resulting PCM data is stored in DRAM for
final output by the Audio Output Interface Module.
This signal is used to control the de-emphasis circuitry of the audio output DACs. In CD-DA pass-through
mode, this output follows the state of the CD_EMP signal; when in VCD mode, this pin follows the LSB of the
emphasis field of the MPEG-1 audio header.
AUD_XCK
SPCA702A AUD_DATA
AUD_LRCK Audio
AUD_BCK DAC
AUD_EMP
A timing diagrams of the audio interface clocking modes are presented in Figure 8-2 below.
AUD_BCK
AUD_LRCK
AUD_DATA 0 15 14 1 0 15 14 1 0 15
BCK = 32 x Fs
AUD_BCK
AUD_LRCK
AUD_DATA 0 15 14 1 0 15 14 1 0 15 14
BCK = 48 x Fs
RISC PROCESSOR
The RISC processor is used to help decode high level data formats, MPEG system layers, low bandwidth MPEG
audio and video decoding and assorted miscellaneous functions. If the SPCA702A were used in a low cost
system with simple user interfaces, additional savings can be accomplished by using the RISC core to perform
host micro-controller functions; thereby dropping the micro-controller from the bill-of-materials.
DRAM INTERFACE
The DRAM interface is used by the SPCA702A to access DRAM for all required functions in the system including
bit stream store after parsing, reading bit stream into the VLD, reference macroblock read and motion
compensated macroblock write, display data read for display interface, OSD data store and read, and so on.
A programmable pointer points to each region. RISC can change the content of any pointer via register file.
Software usage
OSD
CD
REF0_CHROMA
Reference Frame 0 - (Chroma)
REF1_CHROMA
Reference Frame 1 - (Chroma)
BIDIR_LUMA
BF - (Luma)
BIDIR_CHROMA
BF - (Chroma)
CD INTERFACE
The CD interface is a simple serial interface for standard CD-DSPs. Serial data from the CD-DSP is shifted into
the SPCA702A, preprocessed by the CD interface module, then written to DRAM for post-processing by the
RISC processor. Since post-processing is accomplished by the RISC processor, the data stream can be in any
format. For example CD-DA, CD-ROM, CD-ROM/XA, CD-I, MPEG1 system streams, MPEG1 video streams
and MPEG1 audio streams. Note that for the CD-DA format, since no post-processing is necessary, the serial
data can be routed directly to the audio DACs.
The RISC processor and dedicated hardware is responsible for the following CD data stream post-processing
functions when the data format is not CD-DA :
─ Real-time parsing for Mode 2 form 2 sectors.
─ Real-time parsing for Mode 1 and Mode 2 form 1 (e )12u6.1(oc)10.3(r)-6.5 ((e )12u4.1 Tf9.96 0 D )]TJ/M(e -13.y96
1 32 MSB Right 1
2 32 MSB Left 0
3 24 MSB Right 1
4 24 LSB Right 0
5 24 MSB Right 1
6 16 MSB Left 1
Functional timing diagrams of the above six formats are detailed below:
CD-BCK
User Data
Scrambled
Scrambled
Scrambled
Scrambled
IR INPUT/OUTPUT
There are two commonly used IR format, i.e., NEC and PHILIPS. The timing diagramming are listed below.
These timing diagrams are extracted from the HT6221 / HOLTEK and SA3010 / PHILIPS. For the NEC format,
two instruction commands are defined. One is normal command and the other is repeat command. The
normal command consists of pre-emble, address and data field. The parameters that ar thatr16.and dat234cr thnd dat
IR INPUT
Register Name Reg Bits Description RW RST
IR OUTPUT
Register Name Reg Bits Description RW RST
IROUT_PRE_CD 77
IROUT_RPT_EF 78
IROUT_STRT_G 79
IROUT_DATA_PER 156
IROUT_ADDR 157
IROUT_GUARD 158
IROUT_STATUS 159 read the transmission status of IR out
IROUT_DATA 69 IR data to be transmitted
The IR output is for the control of VCD 1.0 loader. The format must be NEC. There are reset value for all the
programming registers. No action by the user is required.
HOST INTERFACE
The host interface consist of ten signals which are D7 - D0, and nstrobe / nwrite. The Mpeg chip is master and
the host is slave. Whenever the host wants to access Mpeg, it has to read D0 - D7. At this time, the nstrobe
and nwrite are high. The following table defines the actions that the host can take after read.
VFD CONTROL
Register Name Reg. Bits Description RW RST
[15-13] Reserved.
[12-9] VFD Pin Status
Bit 12: CLK 1
Bit 11: STB 1
Command Type
00: Read
[9-8] 01: Write rw 0
10: Write Form 1
11: Reserved.
[7-5] Data Size in Command Mode rw 0
[4-2] Data Size in Polling Mode rw 0
Command Mode Control
[1] 0: Disable rw 0
1: Enable
Polling Mode Control
[0] 0: Disable rw 0
1: Enable
[15-8] Command 0 rw 0
VFD_CMD 179
[7-0] Command 1 rw 0
[15-8] Data Byte 0 rw 0
VFD_DAT0 180
[7-0] Data Byte 1 rw 0
[15-8] Data Byte 2 rw 0
VFD_DAT1 181
[7-0] Data Byte 3 rw 0
[15-8] Data Byte 4 rw 0
VFD_DAT2 182
[7-0] Data Byte 5 rw 0
[15-8] Data Byte 6 rw 0
VFD_DAT3 183
[7-0] Data Byte 7 rw 0
read VFD_DAT0[15:8]
the read data is stored here.
write VFD_FUNC, 0x0000
command mode control: disable
cycle complete
MACRO COMMANDS
For the application of SPCA702, programmers could access and modify most firmware options directly.
However for most VCD playback applications the SPCA702 firmware also provides a generic program interface
for popular functions. The programming interface covers most CDDA, VCD1.0, VCD1.1 and VCD2.0 playback
functions. For example, play a CD track in A/V mode or read a specific CD sector. A generic navigator or
specialized playback path can be built by utilizing the control interface.
The programming interface is consisted of macro commands. Generally they could be classified into 2 groups
of functions, initialization functions and playback functions. An initialization function is to setup the playback
environment ready for playback, and a playback function will execute the playback (or any other specific
operations) request. To achieve most functions, an application should issue an initialization macro command
before it issues the playback command. A generic control flow would look like:
while (task_not_finished)
{
/* issue playback_track macro-command */
PlayTrack(2);
MACRO
Init()
Parameter
None
Description
Init() will reset system to a known state.
Applicable
Always
MACRO
Abort()
Parameter
None
Description
Abort() will terminate current playback process.
Applicable
Always
MACRO
Sync()
Category
CONTROL
Parameter
None
Description
Sync() is used to wait until a locked state of system when issue command will be safe.
Applicable
Always
MACRO
Pause()
Category
CONTROL
Parameter
None
Description
Pause() command stops the current program playback. After receive this command the A/V decoder would
stop decoding incoming bitstream. If playing from CD kit, the A/V decoder also issue CDKIT to pause.
Applicable
CDDA, VCD1.0, VCD1.1 and VCD2.0.
MACRO
Continue()
Category
CONTROL
Parameter
None
Description
Continue() undo the effect of command Pause() and Freeze(). If A/V decoder is not paused nor frozen, this
command has no effect on the system.
Applicable
CDDA, VCD1.0, VCD1.1 and VCD2.0.
MACRO
Freeze()
Category
CONTROL
Parameter
None
Description
Freeze() will instruct the A/V decoder stop video decoding. The overall effect will look like the video program is
frozen and only audio playback carry on.
Applicable
Motion picture sequences within VCD1.0, VCD1.1 and VCD2.0.
MACRO
Play()
Category
PLAYBACK
Parameter
None
Description
Play() will instruct the VCD A/V decoder to prepare for LINEAR PLAYBACK for a program.
MACRO
PlayTrack(Track)
Category
PLAYBACK
Parameter
Name Type Description
Track BYTE Specified Track number (1-99)
Description
PlayTrack() will instruct the VCD A/V decoder to prepare for a CD track. Track format will be decided from
current CD format and TOC content of this track.
Applicable
CDDA, VCD1.0, VCD1.1, VCD2.0
MACRO
MACRO
MACRO
PlayRomSlide(RomAddr)
Category
PLAYBACK
Parameter
Name Type Description
RomAddr UINT32 Specified ROM bitstream address
Description
PlayRomSlide() will instruct the VCD A/V decoder to prepare for video-elementary bistream playback, where
the bitstream comes from ROM embedded pattern.
Applicable
Always
MACRO
DisplayPreviewBackground()
Category
FRAMEBUFFER
Parameter
None
Description
DisplayPreviewBackground() will configure the memory mapping into 9-digest PREVIEW and clear the
background. After this operation
Applicable
Always
Reference Value
Color Y Cr Cb
White 0xEB 0x80 0x80
Yellow 0xA2 0x8E 0x2C
Cyan 0x83 0x2C 0x9C
Green 0x70 0x3A 0x48
Magenta 0x54 0xC6 0xB8
Red 0x41 0xD4 0x64
Blue 0x23 0x72 0xD4
Black 0x10 0x80 0x80
MACRO
SetOsdColorDirect(region,color,value)
Category
CONTROL
Parameter
Name Type Description
region BYTE OSD region selected
0xFF write to all OSD regions.
color BYTE Color index of the specified OSD region
(0-3 for 4-color OSD)
value UINT16 value of color entry
Description
SetOsdColorDirect() will set the color of a specified OSD (On Screen Display) region according to the color
value.
MACRO
ReadCDMSF(DST,MSF,SKIP,SIZE)
Category
CD OPERATION
Parameter
Name Type Description
DST UINT32 Memory address pointer to store the result
MSF UINT32 Packed Red-book MM:SS:FF CDROM address of the
starting sector to be read
SKIP UINT32 Bytes to skip before storing into memory
SIZE UINT32 Bytes to read
Description
ReadCDMSF() will try to read a specified CDROM address into a memory portion. The memory address is
assigned in RISC memory space. After the command issued, the A/V decoder will try to seek to the specified
CDROM position and wait for the starting sector. CDROM data is extracted from CDROM/XA format and store
to the memory position.
Applicable
Any CD format conforms to CDROM (Yellow book) or CDROM/XA.
MACRO
ReadCD(DST,EXT,SKIP,SIZE)
Category
CD OPERATION
Parameter
Name Type Description
DST UINT32 Memory address pointer to store the result
EXT UINT32 High-Sierra CDROM address of the starting sector to be read
SKIP UINT32 Bytes to skip before storing into memory
SIZE UINT32 Bytes to read
Description
ReadCD() acts just like ReadCDMSF(). Except that the CDROM address is in High-Sierra CDROM format.
Applicable
see ReadCDMSF()
ELECTRICAL SPECIFICATIONS
✝OPERATING CONDITIONS
Table 16-1: Absolute Maximum Ratings
Symbol Parameter Rating Units
Stresses above those listed under "Absolute Maximum Ratings" may cause permanent damage to the device. These are
stress ratings only. Functional operation of this device at these or any other conditions above those indicated in the
operational sections of this specification is not implied and exposure to absolute maximum rating conditions for extended
Limit
Characteristics Symbol Unit Conditions
Min. Typ. Max.
Table 16-3-2
Conditions: I/Opower VDD-VSS = 5V, Kernel power VDD-VSS = 3V, VCCTVP = 5V, TA = 25℃, MCLK = 27MHz
Limit
Characteristics Symbol Unit Conditions
Min. Typ. Max.
AC TIMING CHARACTERISTICS
✝DRAM INTERFACE TIMING DIAGRAM
CLK
t15
t25 t26 t14
RAS_B
t8 t12 t13 t7
t6
CAS_B
t20 t28
t11 t9 t24
t10
t3
DA[11:0] row addr. col. addr. . addr. . a67( a67(4)]TJ-1772 l33(.)-7.7(.)-562.3(.)-7.766.921841-.88 .3(.)-7.766.921841
t16 t17
WE_B
t4 t5
t9
DD[15:0]
t1
Limit
Time Description Units
Min. Typ. Max.
ROM_ADDR[17:0]
t
ROM_DATA[7:0]
Limit
Time Description Units
Min. Typ. Max.
t0 t1
nstrobe
t2 t3
data
t4
nwrite
nstrobe
t5
data
nwrite
Limit
Time Description Units
Min. Typ. Max.
t1 t2
CD_BCK
CD_LRCK t3 t5
CD_DATA t4 t6
Limit
Time Description Units
Min. Typ. Max.
AUD_XCK
AUD_BCK t1
AUD_LRCK t2
AUD_DATA t2
Limit
Time Description Units
Min. Typ. Max.
t0 t1 t2
CLK27_OUT
RESET_B t1
t2
t3
CLK_OUT27 t4
Limit
Time Description Units
Min. Typ. Max.
400
Current (mA)
300
200
100
0
2.8 3 3.2 3.4 3.6 3.8 4
Voltage (V)
DRAM_D[0..15] ROM_D[0..7]
DRAM_A[0..8]
VCC
ROM_A[0..17]
VCC
VCC
VCC
/RAS0 GND
/CAS
/DRAM_WR
GND
VCC
GND
AVCC3
GND
GND
/HSYNC
/VSYNC
AUDIO FILTER ( 20 mil wire ) LOUT JACK
YC[0..7]
S-VIDEO JACK
AUD_XCK
AUD_LRCK
AUD_DATA
AUD_BCK
AGND
AVCC
PAL/NTSC
VID_CLK VGND
AVCC3
3.3V VGND AGND
GND GND
VGND CVBS JACK
3.3V GND 3.3V
AVCC
GND
=0, CVBS
=1, S-VIDEO
AVCC3 3.3V VGND AGND
AGND
VGND GND
V ID _C LK
D S A_ STB/I 2C _S D A
D SA _D ATA/ I2C _S C L
D SA _A CK
IR _O U T
IR _IN
V FD _S TB
V FD _C LK
VF D _ DA TA
G ND
V CC 2. 5
VCC
3 .3V
R ES E T
NW R ITE
N STR O BE 3 .3V
ND A TA 0 V CC 2. 5
ND A TA 1
ND A TA 2
ND A TA 3 VCC
ND A TA 4
ND A TA 5
ND A TA 6
ND A TA 7
GND
G ND
V CC 2. 5
G ND
3 .3V
V CC 2. 5
G ND
G ND
3 .3V
G ND
GND
G ND
V CC3
AVCC3
VVCC
VVCC
AVCC3
3.3V VGND
GND GND VGND
VGND
3.3V GND 3.3V
GND
VGND
VGND
AVCC3 3.3V VGND
VGND GND
AVCC3
3.3V VGND
GND
VGND
GND 3.3V
GND
AVCC3 3.3V
GND
AGND
GND
AVCC
AGND
AVCC
AGND
AGND
AGND AVCC
AGND
DISCLAIMER
The information appearing in this publication is believed to be accurate.
Integrated circuits sold by Sunplus Technology are covered by the warranty and patent indemnification provisions
stipulated in the terms of sale only. SUNPLUS makes no warranty, express, statutory implied or by description
regarding the information in this publication or regarding the freedom of the described chip(s) from patent
infringement. FURTHER, SUNPLUS MAKES NO WARRANTY OF MERCHANTABILITY OR FITNESS FOR
ANY PURPOSE. SUNPLUS reserves the right to halt production or alter the specifications and prices at any
time without notice. Accordingly, the reader is cautioned to verify that the data sheets and other information in
this publication are current before placing orders. Products described herein are intended for use in normal
commercial applications. Applications involving unusual environmental or reliability requirements, e.g. military
equipment or medical life support equipment, are specifically not recommended without additional processing by
SUNPLUS for such applications. Please note that application circuits illustrated in this document are for
reference purposes only.