Design and Implementation of DVB-C Set Top Box Source Decoder

This article refers to the address: http://

Abstract : This paper implements the set-top box source decoder with SC2005 as the main chip, and connects the decoder to the L64768 front end to form a complete set-top box solution conforming to the DVB-C standard; it can match the audio and video streams conforming to the MPEG-2 standard. Decoded and compatible with analog TV reception in PAL/NTSC/SECAM format.
Keywords : DVB-C; set-top box; source decoder; SC2005

introduction
In recent years, the process of digitalization of China's radio and television has been significantly accelerated, which has directly triggered a huge market demand for set-top boxes, highlighting its importance. In the development of set-top boxes, the development of the source decoder is the foundation and core of the entire development work. With the introduction of the card separation policy, the versatility and complexity of the source decoder has made it more important in the development of set-top box terminals. This paper discusses the design and implementation of a digital cable set-top box source decoder that conforms to the DVB-C standard.

Overall plan
The set top box can be roughly divided into two functional parts: a channel demodulation decoding part and a source decoding part. The channel part, the front end, is responsible for demodulation reception and channel decoding of the digital television signal. Due to the difference in front-end, set-top boxes can be divided into digital satellite set-top boxes, digital terrestrial set-top boxes and digital cable set-top boxes.

The source decoder is developed for digital cable set-top boxes and will be paired with the L64768 front-end to form a complete set-top box solution compliant with the DVB-C standard. This article uses LSI Logic's SC2005-based second-generation single-chip source decoding solution to achieve decoding. The block diagram of the decoder is shown in Figure 1. It can be divided into four parts according to the function: CPU and storage control subsystem with SC2005 as the core; transport stream demultiplexing and audio and video decoding subsystem; graphics processing and on-screen menu display And output subsystem; peripheral interface subsystem.


Figure 1 Set-top box source decoder

Hardware implementation
The startup code of the source decoder is stored in the Flash Boot ROM, and the font used is stored in the Flash Font ROM. The two SDRAM memory interfaces of SC2005 are connected to SDRAM-A and SDRAM-B, respectively. After the system is powered up, the boot code saved in the Flash Boot ROM is transferred to SDRAM-B for execution. The clock is provided by a 27MHz voltage controlled oscillator after frequency multiplication. The clock signal generated by the voltage controlled oscillator is shaped by the 74LVC14 and sent to the VCXO pin of the SC2005, and synchronously restored by the output of the SDET pin. Functions such as transport stream multiplexing, audio and video decoding, and graphics processing are implemented by the corresponding integrated modules in SC2005 in conjunction with external related circuits.

CPU and Storage Control Subsystem The SC2005 combines the functions of the Demultiplexer L641x8 and the MPEG-2 Audio and Video Decoder L64105. It includes the EZ4102 core, 16KB instruction cache and 8KB data cache. This is the core component of SC2005.

The two 1M×16bit Flash ROMs used by the source decoder are AM29LV160DT-70, which are powered by a single power supply. Both read and write and programming use 3.3V voltage and 70ns high-speed read/write time. They are connected to SC2005 via E-Bus, address bus A[6:0] is connected to ADDR[7:1] of SC2005, A[19:7] is connected to AD[28:16] of SC2005, data bus DQ[15 :0] is connected to AD[15:0] of SC2005. There are 35 sectors inside the chip, 4 of which are used as boot sectors, the size is 4k words to 16k words, and the remaining 31 sectors are 32k words; there is a byte/word mode selection pin BYTE#, which should be used in this design. The pin is tied high and the word mode is selected.

The 81MHz/1M×16bit SDRAM-A and the 108MHz/2M×16bit SDRAM-B are connected to the SDRAM memory interface of the CPU through the S-BUS. SDRAM-A is dedicated to storing video frames and related information during MPEG decoding, and SDRAM-B stores information on demultiplexing, OSG and peripheral interface subsystems. Data can be directly transferred between SDRAM-A and SDRAM-B via a DMA engine.

The transport stream demultiplexing and audio and video decoding subsystem SC2005 first receives the TS stream from the channel decoder or the code stream generator, and then automatically performs transmission packet synchronization detection. Once the synchronization is established, the transport packet is sent to the PID preprocessor. The PID preprocessor analyzes the input transport packets and checks their PID values. Only the PID values ​​matching the PID table can be filtered by the first step, and the unmatched packets are discarded. The transmission packet through the PID filter is sent to the DVB descrambler, and the descrambled packet enters the PID post-processor. After filtering, the audio and video PES data directly enters the A/V decoder, and other data are The CPU can directly read data from the memory in the circular buffer sent to the external SDRAM-B. The block diagram of the transport stream demultiplexing subsystem is shown in Figure 2.


Figure 2 Transport Stream Demultiplexing Subsystem

The demultiplexed audio and video PES stream enters the L64105 MPEG-2 decoder through the A/V interface for packet decoding. The L64105 outputs two sets of digital video and digital audio signals. A set of digital video and a set of digital audio signals are output directly. The other set of digital video signals are sent to the video encoder and converted into full TV signals (CVBS) or S-terminal signals (Y/C), which are directly sent to the TV after external low-pass filtering; digital audio signals are sent In the audio DAC, it is converted into a stereo analog signal, which is output by external low-pass filtering.

Graphics Processing and On-Screen Menu Display Output Subsystem The SC2005 integrates a high-performance OSG (On-Screen Graphics) subsystem that produces text and graphics and overlays it onto decoded video. The OSG subsystem generates a still layer, an OSD layer, and a cursor layer; the decoding subsystem provides a video layer; the mixer/encoder subsystem generates a background color layer, and encodes the above 5 layers before the video output, thereby displaying the desired content as needed The composite video output. This subsystem mixes the graphics and decoded video data from the OSG subsystem and outputs NTSC/PAL/SECAM RGB/YPbPr, CVBS or S-video signals to the TV or monitor.


Figure 3 ATA hard disk interface


Peripheral Interface Subsystem The source decoder integrates an ATA hard disk interface, as shown in Figure 3. Users can use this interface to realize the personal digital video recorder PVR (Personal Video Recorder) function; also can open a large buffer area in the hard disk, while playing digital TV, the program can be stored for several hours in real time. Depending on this caching technology, users can play time-shifted.

The decoder has a TDA8004T smart card interface and an IEEE 1149.1 compliant JTAG module that provides basic debugging capabilities and an LVDS interface for receiving TS streams from the stream generator output. The LVDS signal input by the DB-25 interface is level-converted by three DS90C032s and then enters the decoder. In addition, the system uses a UART for set-top box debugging and software upgrades.


Figure 4 set-top box software layered framework


software design
The software system is based on a layered framework, some of which is provided by LSI Logic in its reference software, and other parts need to be developed by the user. The overall structure of the software is shown in Figure 4.

The Real-Time Operating System Layer (RTOS) is the basis for all upper-level program code operations, and is mainly responsible for multi-task scheduling, system resource management, interrupt processing, communication operations, and synchronization processing. This article uses a modular, high-performance real-time operating system, pSOSystem, designed and developed by WindRiver specifically for embedded systems. The RTOS layer uses the board support package (BSP) to interface with the hardware layer.

The Operating System Migration Layer (OSP) implements two main functions: one is to dynamically configure task attributes, such as context switching, priority, etc.; the other is to manage communication between tasks, such as data transfer and synchronization. The hardware abstraction layer (HAL) is responsible for directly programming the hardware registers; the device driver layer (DDL) is a clear and convenient backup and package of the hardware abstraction layer, and provides corresponding drivers for each hardware module, such as the SC2005 exception handling driver. , the driver of the clock service module and the driver of the OSG graphics library. The application interface layer (API) provides API functions for upper-level applications.

The Drive Adaptation Layer (DAL) is a further collection of device driver layer functions that can be applied directly to the application layer through a combination of functions, which acts as an interface. For example, for the operation of Flash, such a driver adaptation layer can be further encapsulated to facilitate the call of the upper application.

The user application layer is the main part of the set-top box user application software and is also the focus of software development. The implementation of all upper-level functions related to the set-top box is completed at this level, such as implementation of user interface functions, implementation of EPG, management of program database, user information input/output control, and software upgrade.

Performance test result
After the source decoder is connected to the L64768 front end, it is tested to achieve the predetermined function. Its performance characteristics are as follows:
1. The whole system is fully compliant with the DVB-C/MPEG-2 standard.
2. Channel decoding supports 16/32/64/128/256QAM, conversion rate: 3MSPS~ 7MSPS
3.TS demultiplexer maximum input bit rate: 60Mbps (serial 1) / 7.5Mbps (parallel)
4. Video decoding resolution: Max720 × 576, support for graphics and subtitles
5. Audio decoder sampling rate: 32/44.1/48kHz, support 32-level volume adjustment
6. Support ATA hard disk interface
Conclusion
This paper implements the DVB-C set-top box source decoder based on SC2005, integrates the personal digital video recorder, and is equipped with the L64768 front end to form a functional prototype that conforms to the standard.

references:
1 SC2005 Single-Chip Source Decode Technical Manual. LSI Logic, 2000
2 Yu Sile, Hou Zhengxin, Feng Qiming, etc. TV Principles (Fifth Edition). Beijing: National Defense Industry Press, 2000
3 Cheng Mingming, Zhang Yue, Gao Hongwei, etc. Implementation of a Novel Digital SDTV Source Decoder. Signal Processing, 2004, 20(2): 204~207

Shield TPU Cable ; Low Voltage Multicore TPU Cable ; TPU Cable

High Flexibility Feature

Provide 100% Costom Service.

Main Industry Application Products
            Bone Conduction Transduer
            Speed Sensor ; Angle Snesor ; Temperture Sensor ; Urea Sensor
            CNC Equipment Robot Arm
            AED ; Electrocardiograph

            Industrical Controllers ;Industrial Control Equipment ;Robot Control

Description of Senkin Shield TPU Cable

  • Conductor structure: see common conductor structure table or customization
  • Insulation : TPEE/FEP/MPPO/TPV/PP/HDPE
  • Sheath material : general with polyester type TPU or polyether type TPU 
  • Working temperature : -60 ℃--150 ℃ 
  • Production range: standard section 0.03-6 square meter or customization
  • Multiple conductors: 1-37 conductors or customization 

Feature Of  Shield TPU Cable

  • Flexibility
  • Elasticity (Spring Elongation Length Can Reach The Original Length Of 3 to 10 Times)
  • Cold Resistance
  • Flame Retardant
  • Oil Resistance
  • Abrasion Resistance.


Shield TPU Cable

Shield TPU Cable,Low Voltage Multicore TPU Cable,TPU Cable

Shenzhen Senkin Electronic Co.,Ltd. , http://www.senkincable.com

Posted on