CN101827290B - PCM time slot interchange method capable of directly carrying out voice interchange with voice codec - Google Patents
PCM time slot interchange method capable of directly carrying out voice interchange with voice codec Download PDFInfo
- Publication number
- CN101827290B CN101827290B CN 201010125387 CN201010125387A CN101827290B CN 101827290 B CN101827290 B CN 101827290B CN 201010125387 CN201010125387 CN 201010125387 CN 201010125387 A CN201010125387 A CN 201010125387A CN 101827290 B CN101827290 B CN 101827290B
- Authority
- CN
- China
- Prior art keywords
- pcm
- time slot
- decoder
- codec
- iis
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Use Of Switch Circuits For Exchanges And Methods Of Control Of Multiplex Exchanges (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to a PCM time slot interchange method capable of directly carrying out voice interchange with a voice codec, which comprises the following steps of: taking equipment with a PCM interface as main equipment and a PCM time slot interchange controller module as the auxiliary equipment of PCM; meanwhile, taking the PCM time slot interchange controller module as an IIS main equipment interface and a voice encoder/decoder as an IIS auxiliary equipment interface; designing a time slot switch for a VHDL code, controlling concrete time slots ascending and descending from the PCM by the time slot switch, finishing the reception and the maintenance of the data of the concrete time slots of the PCM by a PCM time slot interchange controller module, forming a novel IIS bus timing and transmitting the novel IIS bus timing to the voice encoder/decoder; and meanwhile, transmitting voice data transmitted from the voice encoder/decoder to the ascending concrete time slots after carrying out frequency-conversion processing on the voice data, thereby finishing real-time interchange. The invention can solve the problem of real-time transmission of voice without the participation of a CPU and a memory and also does not need to compile an IIS driver.
Description
[technical field]
The invention belongs to the network exchange products such as gateway, router, specifically refer to a kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech.
[background technology]
In the wireless home gateway project, need processed voice professional.The speech interface of some wireless modules is pcm stream forms.And a lot of audio codecs are not supported and PCM speech data direct interface, and compatibling problem is then appearring when various kinds of equipment with the PCM voice is connected in these codecs.Therefore need solution PCM speech data and audio coder ﹠ decoder (codec) to carry out the problem of exchange of speech.
In the existing technology, common way is that the PCM speech data is received CPU, is finished the up-downgoing of time slot by CPU and processes, and finishes communicating by letter of speech data by the IIS bus of CPU with audio coder ﹠ decoder (codec) simultaneously.The shortcoming of this technology is as follows:
1) because speech data is to need to process in real time, this way must take a large amount of CPU times.
2) data volume of voice is larger, cushions these data and need to take memory resource, and in embedded system, memory resource also is relatively more valuable.
3) needs solve the driving problems of IIS bus, at some CPU, such as the CPU7130 of ATHEROS, because the IIS bus driver not being provided.Finishing this drives and then to need to spend the peopleware and grope the more time.
The design can address the above problem fully, does not need the participation of CPU and memory can solve the real-time Transmission problem of voice.Do not need to write the IIS driver yet.
[summary of the invention]
Technical problem to be solved by this invention be to provide a kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, do not need the participation of CPU and memory can solve the real-time Transmission problem of voice, do not need to write the IIS driver yet.
The present invention solves the problems of the technologies described above by the following technical solutions:
A kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, comprise the steps: to have the equipment of pcm interface as main equipment, PCM time gas exchange controller module as PCM from equipment, simultaneously, PCM time gas exchange controller module is as the IIS host device interface, audio coder ﹠ decoder (codec) as IIS from equipment interface; The VHDL Code Design time slot switch, by the time slot switch control concrete time slot from the PCM uplink and downlink, PCM time gas exchange controller module finish PCM concrete time slot data reception, maintenance and form new IIS bus timing and send to audio coder ﹠ decoder (codec); The speech data that transmits from audio coder ﹠ decoder (codec) simultaneously sends to up concrete time slot through after the frequency-conversion processing, thereby finishes real-time exchange; The interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) is the trailing edge transmission data at clock, in the rising edge sampled data.
The interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) adopts the IIS pattern, and the trailing edge of second BCLK clock after the FRAME edge changes just sends data.
The interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) adopts the DSP/PCM pattern, is to send data at the first trailing edge.
The invention has the advantages that: utilize Hardware Description Language VHDL to describe a PCM to the Time Slot Switching Circuit of IIS bus, certain time slot data of finishing pcm stream with CPLD or FPGA are converted to the IIS bus data, finish simultaneously in up certain time slot that joins pcm stream of IIS bus data.Do not need the participation of CPU and memory can solve the real-time Transmission problem of voice, do not need to write the IIS driver yet.And the development time is short, and expense is cheap.
[description of drawings]
The invention will be further described in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the theory diagram of PCM time gas exchange controller module of the present invention.
Fig. 2 is the sequential chart of PCM time gas exchange controller module of the present invention and PCM equipment interface.
Fig. 3 is that the interface modes of PCM time gas exchange controller module of the present invention and audio coder ﹠ decoder (codec) adopts the IIS pattern diagram.
Fig. 4 is that the interface modes of PCM time gas exchange controller module of the present invention and audio coder ﹠ decoder (codec) adopts the DPS/PCM pattern diagram.
[embodiment]
A kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, comprise that the time slot uplink and downlink of pcm stream are processed, and the data transmit-receive of IIS voice bus is processed.See also shown in Figure 1, with equipment with pcm interface as main equipment, PCM time gas exchange controller module as PCM from equipment, simultaneously, PCM time gas exchange controller module is as the IIS host device interface, audio coder ﹠ decoder (codec) as IIS from equipment interface.To realize system's Complete Synchronization.The VHDL Code Design time slot switch (SLOT_SEL), by the concrete time slot of time slot switch control from the PCM uplink and downlink, time slot three (SLOT3) such as what adopt among Fig. 1, PCM time gas exchange controller module finish PCM the SLOT3 time slot data reception, maintenance and form new IIS bus timing and send to audio encoding/decoding apparatus.Speech data from audio encoding/decoding apparatus is through sending to the SLOT3 of ascending time slot after the frequency-conversion processing simultaneously.Thereby finish real-time exchange, need not CPU and intervene.
Describe as an example of the PCM equipment sequential of Fig. 2 example.FSC is synchronizing signal, and DCL is the PCM clock, and DD/DU (tx) is the downlink data bus, and DU/DD (rx) is upper row bus.Adopt the single clock pattern in our design.PCM equipment sends data to DD/DU (tx) bus at the rising edge of clock.PCM equipment is preserved the data of upstream data bus DU/DD (rx) at the trailing edge of clock.
Therefore when the PCM time slot interchanger is with pcm audio data code flow interface, be the data in the trailing edge preservation DD/DU (tx) of DCL clock bus, send data to DU/DD (rx) at the rising edge of DCL clock.
Pcm interface is divided into 12 time slots, and (SLOT0~SLOT11), clock DCL is 1.536MHz.
The interface of PCM time slot interchanger and audio coder ﹠ decoder (codec) is divided into two kinds of patterns as shown in Figure 3 and Figure 4, and two kinds of patterns all are that the trailing edge at clock BCLK sends data, in the rising edge sampled data.The difference of two kinds of patterns is the difference of synchronizing signal, and whether first clock sends data.The trailing edge of second the BCLK clock of IIS pattern after the FRAME edge changes just sends data.To send data at the first trailing edge in the DSP/PCM pattern.
The BCLK clock is 128KHz.The left and right sides passage of IIS pattern bus is 8 bit wides.Sampling clock is 8KHz.
The present invention utilizes Hardware Description Language VHDL to describe a PCM to the Time Slot Switching Circuit of IIS bus, certain time slot data of finishing pcm stream with CPLD or FPGA are converted to the IIS bus data, finish simultaneously in up certain time slot that joins pcm stream of IIS bus data.Do not need the participation of CPU and memory can solve the real-time Transmission problem of voice, do not need to write the IIS driver yet.And the development time is short, and expense is cheap.
Claims (3)
- One kind can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, it is characterized in that: comprise the steps: to have the equipment of pcm interface as main equipment, PCM time gas exchange controller module as PCM from equipment, simultaneously, PCM time gas exchange controller module is as the IIS host device interface, audio coder ﹠ decoder (codec) as IIS from equipment interface; The VHDL Code Design time slot switch, by the time slot switch control concrete time slot from the PCM uplink and downlink, PCM time gas exchange controller module finish PCM concrete time slot data reception, maintenance and form new IIS bus timing and send to audio coder ﹠ decoder (codec); The speech data that transmits from audio coder ﹠ decoder (codec) simultaneously sends to up concrete time slot through after the frequency-conversion processing, thereby finishes real-time exchange; The interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) is the trailing edge transmission data at clock, in the rising edge sampled data.
- As claimed in claim 1 a kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, it is characterized in that: the interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) adopts the IIS pattern, and the trailing edge of second BCLK clock after the FRAME edge changes just sends data.
- As claimed in claim 1 a kind of can be directly and audio coder ﹠ decoder (codec) carry out the PCM time slot interchange method of exchange of speech, it is characterized in that: the interface modes of described PCM time gas exchange controller module and audio coder ﹠ decoder (codec) adopts the DSP/PCM pattern, is to send data at the first trailing edge.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010125387 CN101827290B (en) | 2010-03-15 | 2010-03-15 | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010125387 CN101827290B (en) | 2010-03-15 | 2010-03-15 | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101827290A CN101827290A (en) | 2010-09-08 |
CN101827290B true CN101827290B (en) | 2013-05-01 |
Family
ID=42690949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010125387 Expired - Fee Related CN101827290B (en) | 2010-03-15 | 2010-03-15 | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101827290B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051817B (en) * | 2011-10-14 | 2014-05-07 | 苏州鼎尚软件技术有限公司 | Method and voice terminal device for realizing pulse code modulation (PCM) information interaction by utilizing serial peripheral interface (SPI) interface |
CN104244119B (en) * | 2013-12-26 | 2018-05-08 | 邦彦技术股份有限公司 | Time slot exchange device and method based on FPGA |
CN104200033A (en) * | 2014-09-09 | 2014-12-10 | 哈尔滨工业大学 | High-speed circuit board serial port debugging method based on FPGA and DSP |
CN107122320B (en) * | 2016-02-25 | 2021-02-09 | 邦彦技术股份有限公司 | Device, system and method for realizing PCM audio playing based on FPGA |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1417772A (en) * | 2001-10-31 | 2003-05-14 | 深圳市中兴通讯股份有限公司上海第二研究所 | Time interval insertion encoding and decoding monitor for matching image, voice and data |
CN1540966A (en) * | 2003-04-23 | 2004-10-27 | 华为技术有限公司 | Method for handling conference telephone by programmable logic device |
EP1806660A2 (en) * | 2005-11-26 | 2007-07-11 | Wolfson Microelectronics Plc | Audio device |
-
2010
- 2010-03-15 CN CN 201010125387 patent/CN101827290B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1417772A (en) * | 2001-10-31 | 2003-05-14 | 深圳市中兴通讯股份有限公司上海第二研究所 | Time interval insertion encoding and decoding monitor for matching image, voice and data |
CN1540966A (en) * | 2003-04-23 | 2004-10-27 | 华为技术有限公司 | Method for handling conference telephone by programmable logic device |
EP1806660A2 (en) * | 2005-11-26 | 2007-07-11 | Wolfson Microelectronics Plc | Audio device |
Non-Patent Citations (1)
Title |
---|
王素珍等.基于可编程器件的语音PCM基群同步识别器设计.《电声技术》.2006, * |
Also Published As
Publication number | Publication date |
---|---|
CN101827290A (en) | 2010-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101827290B (en) | PCM time slot interchange method capable of directly carrying out voice interchange with voice codec | |
MX2009003351A (en) | Methods and apparatus for transmitting a frame structure in a wireless communication system. | |
CN112666905B (en) | Multichannel communication control system and channel control method | |
CN101567731B (en) | Digital broadcasting system on train and implementation method thereof | |
CN202602697U (en) | Train communication gateway device based on computer program configuration item (CPCI) trunk | |
CN105592077B (en) | A kind of voice transmission method | |
CN101656582B (en) | Two-band broadband indoor united testing communication simulation method and platform | |
CN1816142A (en) | Video-frequency data transmission system and method based on E1 interface | |
CN203466854U (en) | HDLC gateway device for rail train | |
CN105101109B (en) | The implementation method discontinuously sent, terminal and the system of police digital cluster system | |
CN208768308U (en) | A kind of locomotive wireless communication equipment based on Bluetooth technology | |
JP2009049506A5 (en) | ||
CN203691430U (en) | Audio conference system | |
CN201860370U (en) | Internet protocol (IP)-based coal mine broadcasting communication and program-controlled telephone device | |
CN102117254B (en) | Embedded-system-based asynchronous data receiving method | |
CN105389155A (en) | Method and system for receiving TDM audio data by using SPI interface | |
CN102348007B (en) | Method and mobile terminal of realizing bidirectional call recording in packet switched domain | |
CN202696724U (en) | Computer pulse code modulation (PCM) voice communication module | |
CN101287237A (en) | Double-mode double-standby mobile phone and voice signal transmitting method for the same | |
CN201682593U (en) | Voice intercommunication system for combustion gas water heater | |
CN104219636A (en) | Radio broadcasting system based on ZigBee protocol | |
CN204652548U (en) | Centralized multi-spot video conference system | |
CN1971540A (en) | Control system and method of multipath input data | |
CN202306540U (en) | Asynchronous device controlled by using switch | |
WO2014053565A3 (en) | Cable modem, receiving method, cable modem termination system and transmitting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130501 Termination date: 20190315 |