Implementation of digital multi-function board based on DSP

Publisher:幸福的时光Latest update time:2014-03-25 Source: EDNKeywords:DSP Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  1 Introduction

  Tone board , caller ID display board, multi-frequency inter-control transceiver board, dual audio receiver board, etc. are important common equipment of program-controlled switches. These devices are different hardware boards in program-controlled switches, and these boards all use dedicated integrated circuits (ICs) to realize their functions. However, when adding business functions to a board or the IC used in a board is discontinued, the board manufacturer needs to redesign the hardware circuit. This will increase R&D costs and risks.

Based on this, a digital multifunctional board based on DSP  is developed with digital signal processing technology as the core, targeting the characteristics of the switch . This board is a DSP hardware single-board platform that can provide a variety of external interfaces. By using different DSP algorithms and microcontroller programs, it processes various signals required by the switch and completes the functions of each single board, which is convenient for maintenance and upgrading, saving development costs and shortening the development cycle. Here, the specific process of realizing the sound board is used as an example to explain in detail.

  2 Digital Multi-Function Board Architecture and Working Principle

  2.1 Overall architecture of digital multi-function board

  The architecture of the digital multifunctional board is divided into two parts: a control unit and a functional unit, as shown in FIG1 .

The overall architecture of the digital multi-function board

  In addition to controlling the DSP of the module, the microcontroller MCU can provide a driven CPU bus to the outside world. The DSP provides a multi-channel buffered serial port MCBSP (Muhi Channel Buffer Serial) and a host parallel interface HPI (Host Parallel Inter-terface). In addition, 3.5 V and 3.3 V power input interfaces are required.

  MCU is the core control unit, responsible for communicating with the processor and console PC, downloading DSP code to DSP through HPI, and monitoring DSP operation; controlling the switching network MCV device, completing dynamic time slot allocation and conversion between 2 Mbit/s and 8 Mbit/s; and controlling the work of other devices on the MCU expansion bus. DSP is the core functional unit, processing the 8 M-bit TDM audio code stream to achieve specific functions. If the soundboard function is to be realized, the DSP reads and sends the audio signal encoding data, controls the intermittent ratio, and sends the corresponding audio signal in each time slot cycle; receives user-defined audio data, writes it into Flash, replaces the preset voice, and controls the deletion of the white-defined audio and the complete erasure of Flash to achieve flexible modification.

  2.2 Digital Multi-Function Board Software and Hardware Interface

  The digital multifunction board provides externally driven MCU standard bus, serial communication interface, multi-channel buffered serial port, etc. Among them, the serial communication interface is used as the download serial port for MCU and DSP programs; McBSP is 2 channels of 8 M-bit TDM code stream input and output of the digital multifunction board. Users can define the serial communication protocol between the digital multifunction board MCU software and the PC download software. The circuit board is designed as a 4-layer wiring in a modular form. The external connection of each interface adopts a standard connector with a pitch of 2.54 mm to improve its interconnectivity. The serial port connection with the PC uses an ordinary serial port line, connecting from the 9-pin socket of the digital multifunction board to the 9-pin socket of the COM port of the PC.

  2.3 Working principle of digital multi-function board

  The working principle of the digital multi-function board is analyzed in detail as follows:

  (1) Code download and online modification The MCU communicates with the DSP (TMS320VC5402) through its HPI interface. The DSP program code is stored as a constant segment in the microcontroller 's on-chip program memory or off-chip data memory, and is downloaded by the microcontroller to the DSP's on-chip RAM via HPI for execution. By executing the code, the DSP completes the function of sending audio signals (including live voice updates). The MCU device characteristics and circuit design enable the contents of the microcontroller's on-chip program memory or off-chip data memory to be modified online, and the new code can be downloaded to the board from the PC via the COM port.

  (2) Audio Signal Transmission The original audio signal data is pre-stored in the Flash of the DSP plug-in. The DSP reads it out according to certain rules and outputs it in the form of 8M bit rate TDM code stream through the multi-channel buffer serial port McBSP.

  (3) Live Voice Update The user inputs the recorded voice into the PC program in the form of a WAV file, which is then converted into the required format and transmitted to the MCU via the PC COM port, which is then transferred to the DSP, which finally writes it into the Flash. The board to be updated is required to be in standby mode.

  2.4 Component Selection

  To realize the digital multi-function board, it is necessary to select appropriate components, such as microcontroller, DSP , Flash, serial interface, etc. The DSP uses TMS320VC5402, which is a relatively common and cost-effective 16-bit fixed-point DSP with a processing capacity of 100 MI/s; the MCU uses SST89C58, which has 2 Flash blocks inside to realize online modification of the microcontroller and DSP program firmware, and its instructions are compatible with the MCS51 series microcontrollers. It is convenient for development and application; Flash uses TE28F160C3, a 3.3 V memory with basically compatible 16 M-bit, 32 M-bit, and 64 M-bit packages. The RS-232 interface uses a single-channel device MAX3221E. This device can withstand 15 kV electrostatic shock and is not easily damaged in actual use.

  3 Specific implementation and analysis

  The sound board program of the digital multi-function board is written in C language, mainly including: communicating with the processor, controlling the switching network, downloading the DSP program code through the HPI interface, and receiving the number detected by the DSP, that is, the program of the MCU MCS51 and the program of the DSP TMS320VC5402. When programming the DSP, the digital signal processing function library DSPLIB of TMS3-20VC5509 is used. DSPLIB includes commonly used digital signal processing functions. All functions are written in assembly language, with a high degree of optimization, and can be called by C programs, which greatly facilitates program programming. Figure 2 is the audio information processing flow. Command "1" means connecting the time slot. According to the tone number in the command (if used for SP30, conversion is performed first), the switching network device is controlled to complete the exchange of the 8M HW time slot in and out; command "4" means disconnecting the time slot channel; command "8" means resetting, and reporting command 8 as a response. The test is mainly to test the interface signal. That is, the sound of each time slot is played out through an oscilloscope or PCM tester. Through testing, it is found that the multi-function board can provide 4 or 8-channel analog carrier relay, and various signal tones and test tones meet the requirements of the "General Technical Specifications for Telephone Exchange Equipment of the Ministry of Posts and Telecommunications".

Audio information processing flow

  2.3 Working principle of digital multi-function board

  The working principle of the digital multi-function board is analyzed in detail as follows:

  (1) Code download and online modification The MCU communicates with the DSP (TMS320VC5402) through its HPI interface. The DSP program code is stored as a constant segment in the microcontroller 's on-chip program memory or off-chip data memory, and is downloaded by the microcontroller to the DSP's on-chip RAM via HPI for execution. By executing the code, the DSP completes the function of sending audio signals (including live voice updates). The MCU device characteristics and circuit design enable the contents of the microcontroller's on-chip program memory or off-chip data memory to be modified online, and the new code can be downloaded to the board from the PC via the COM port.

  (2) Audio Signal Transmission The original audio signal data is pre-stored in the Flash of the DSP plug-in. The DSP reads it out according to certain rules and outputs it in the form of 8M bit rate TDM code stream through the multi-channel buffer serial port McBSP.

  (3) Live Voice Update The user inputs the recorded voice into the PC program in the form of a WAV file, which is then converted into the required format and transmitted to the MCU via the PC COM port, which is then transferred to the DSP, which finally writes it into the Flash. The board to be updated is required to be in standby mode.

  2.4 Component Selection

  To realize the digital multi-function board, it is necessary to select appropriate components, such as microcontroller , DSP, Flash, serial interface, etc. The DSP uses TMS320VC5402, which is a relatively common and cost-effective 16-bit fixed-point DSP with a processing capacity of 100 MI/s; the MCU uses SST89C58, which has 2 Flash blocks inside to realize the online modification of the microcontroller and DSP program firmware, and its instructions are compatible with the MCS51 series microcontroller. It is convenient for development and application; Flash uses TE28F160C3, a 3.3 V memory with basically compatible 16 M-bit, 32 M-bit, and 64 M-bit packages. The RS-232 interface uses a single-channel device MAX3221E. This device can withstand 15 kV electrostatic shock and is not easily damaged in actual use.

  3 Specific implementation and analysis

  The sound board program of the digital multi-function board is written in C language, mainly including: communicating with the processor, controlling the switching network, downloading the DSP program code through the HPI interface, and receiving the number detected by the DSP, that is, the program of the MCU MCS51 and the program of the DSP TMS320VC5402. When programming the DSP, the digital signal processing function library DSPLIB of TMS3-20VC5509 is used. DSPLIB includes commonly used digital signal processing functions. All functions are written in assembly language, with a high degree of optimization, and can be called by C programs, which greatly facilitates program programming. Figure 2 is the audio information processing flow. Command "1" means connecting the time slot. According to the tone number in the command (if used for SP30, conversion is performed first), the switching network device is controlled to complete the exchange of the 8M HW time slot in and out; command "4" means disconnecting the time slot channel; command "8" means resetting, and reporting command 8 as a response. The test is mainly to test the interface signal. That is, the sound of each time slot is played out through an oscilloscope or PCM tester. Through testing, it is found that the multi-function board can provide 4 or 8-channel analog carrier relay, and various signal tones and test tones meet the requirements of the "General Technical Specifications for Telephone Exchange Equipment of the Ministry of Posts and Telecommunications".

Keywords:DSP Reference address:Implementation of digital multi-function board based on DSP

Previous article:Decomposing the low power and high performance advantages of multi-core DSP
Next article:Design of audio processing system based on DSP and ARM

Recommended ReadingLatest update time:2024-11-15 16:22

Design and implementation of voice control system based on DSP
  The research of robot voice control system has always been one of the main contents of robot research. Traditional voice control systems generally use PC as the core platform to control robots. Although it has the advantages of powerful processing power, complete voice library, strong system update ability, etc., PC
[Microcontroller]
Design and implementation of voice control system based on DSP
"One frame of image requires two chips", why does OPPO Find X5 Pro require so much effort?
The mobile phone ISP market is getting more and more popular. Previously, apart from mobile phone manufacturers such as MediaTek and Qualcomm, few other companies were involved in this product. In 2021, OPPO, Xiaomi, and VIVO have successively launched their own "ISP" chips, and Huawei HiSilicon has recently launched
[Mobile phone portable]
Ultra-low-power audio codec with DSP capabilities helps solve audio solution challenges
Portable consumer electronic device manufacturers are currently faced with the daunting challenge of developing low-cost, high-performance, feature-rich audio solutions with extended battery life. At the same time, manufacturers are also forced to shorten development time to get ahead of new products. With the recent
[Embedded]
Ultra-low-power audio codec with DSP capabilities helps solve audio solution challenges
Design and implementation of DSP Ethernet interface based on DM9000A
DSP (Digital Signal Processor) is a unique microprocessor that processes large amounts of information using digital signals. Its powerful data processing capabilities and high operating speed are two of its most commendable features. With the development of network technology, in the fields of industrial control, inte
[Embedded]
Design and implementation of DSP Ethernet interface based on DM9000A
BF51x DSP processors surpass MCU solutions
Blackfin and SHARC processors are two major DSP product lines of ADI. Currently, some customers in industrial control and test and measurement are turning to DSP solutions that go beyond MCUs. For example, Ethernet (IEEE1588 and 802.3)/wireless connections achieve ease of use, simple connections for high-quality measu
[Embedded]
BF51x DSP processors surpass MCU solutions
Design of Real-time Video Wireless Transmission System Based on DSP and CDMA 2000
  The bandwidth of the existing CDMA2000 EVDO network can fully meet the transmission of real-time video data after compression and encoding. However, due to the real-time requirements in the field of video surveillance, the UDP/IP protocol must be used, which is a connectionless and unreliable transmission service. A
[Embedded]
Design of Real-time Video Wireless Transmission System Based on DSP and CDMA 2000
Design of wireless subsystem based on DSP+FPGA co-processing architecture
You can significantly improve the performance of signal processing functions in wireless systems. How? By taking advantage of the flexibility of the FPGA fabric and the embedded DSP blocks in today's FPGA architecture that benefit from parallel processing. Such processing commonly found in wireless applications inclu
[Embedded]
Design of wireless subsystem based on DSP+FPGA co-processing architecture
Design of Dual-channel Digital Voice Recorder Based on DSP
With the development of digital signal processing chips ( DSP ), voice coding and decoding technology is increasingly widely used in military, civil and monitoring fields. As for voice recorders, they can be used in many fields such as transportation, public security, fire protection, and telephone service quality sup
[Analog Electronics]
Design of Dual-channel Digital Voice Recorder Based on DSP
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号