CN108197051A - Intelligence manufacture equipment and the data conversion system and method for external audio collecting device - Google Patents

Intelligence manufacture equipment and the data conversion system and method for external audio collecting device Download PDF

Info

Publication number
CN108197051A
CN108197051A CN201810004775.4A CN201810004775A CN108197051A CN 108197051 A CN108197051 A CN 108197051A CN 201810004775 A CN201810004775 A CN 201810004775A CN 108197051 A CN108197051 A CN 108197051A
Authority
CN
China
Prior art keywords
data
signals
collecting device
intelligence manufacture
spi interface
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.)
Pending
Application number
CN201810004775.4A
Other languages
Chinese (zh)
Inventor
郭锐
邓民
邓一民
李鸿峰
贾昌武
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Xuan Yu Science And Technology Co Ltd
Original Assignee
Shenzhen Xuan Yu Science And Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Xuan Yu Science And Technology Co Ltd filed Critical Shenzhen Xuan Yu Science And Technology Co Ltd
Priority to CN201810004775.4A priority Critical patent/CN108197051A/en
Publication of CN108197051A publication Critical patent/CN108197051A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/387Information transfer, e.g. on bus using universal interface adapter for adaptation of different data processing systems to different peripheral devices, e.g. protocol converters for incompatible systems, open system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4295Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using an embedded synchronisation

Abstract

The invention discloses intelligence manufacture equipment and the data conversion system and method for external audio collecting device, the data conversion system includes:IIS interfaces are arranged on the external audio collecting device, for sending audio signal.Processor is arranged in the intelligence manufacture equipment, for handling audio signal.SPI interface is set on the processor, for receiving audio signal.The IIS interfaces are connect with the SPI interface.Technical solution of the present invention is simple and practical, realizes and being directly connected to and communicating between IIS interfaces and SPI interface, greatly reduces cost, ensure that the synchronization that signal transmits, prevents loss of data.

Description

Intelligence manufacture equipment and the data conversion system and method for external audio collecting device
Technical field
The present invention relates to equipment interface conversion arts, more particularly to intelligence manufacture equipment and the number of external audio collecting device According to converting system and method.
Background technology
In intelligence manufacture field, in the high end communication field such as 5G, glass, ceramics are common materials.Glass, Ceramic manufacturing Usually using the method for grinding.Simultaneously in order to which on-line intelligence analyzes the quality of workpiece grinding and workpiece or sand whether occurs Wheel damage, using real-time acoustic wave analysis method.When glass ceramic workpieces are damaged or when grinding wheel is damaged, sound wave Difference is formed with normal sound wave, it in this way can be with intellectual analysis monitoring industrial processes.IIS interfaces have the characteristics that serial, high speed, It is the communication interface of mainstream in audio data equipment.Spi bus standard is standard configuration on most of processors, easily with outside Peripheral equipment interaction data.But many general processors are configured without IIS data-interfaces, can not be set with peripheral IIS interfaces voice Standby interaction.Data conversion between SPI and IIS is usually carried out by fpga chip in the prior art, but is needed larger interior It deposits, cost is higher.Simultaneously as caching exists, there is delay in system, if data input is too fast, data buffer storage can be caused to overflow Go out, loss of data occurs.
Invention content
The main object of the present invention be propose intelligence manufacture equipment and external audio collecting device data conversion system and Method, it is intended to realize and be directly connected to and communicating between IIS interfaces and SPI interface, greatly reduce cost, ensure that signal passes The synchronization passed, prevents loss of data.
To achieve the above object, intelligence manufacture equipment proposed by the present invention and the data conversion system of external audio collecting device System, including:IIS interfaces are arranged on the external audio collecting device, for sending audio signal.Processor is arranged on institute It states in intelligence manufacture equipment, for handling audio signal.SPI interface, setting on the processor, are believed for receiving audio Number.The IIS interfaces are connect with the SPI interface.
Preferably, IIS interfaces include:SCLK serial clock signals end, SDATA data terminals, LRCK left and right acoustic channels data are cut Change end.SPI interface includes:CLK clock signal terminals, MISO serial data output terminals and several CS equipment enable signal ends.It is described SCLK serial clock signals end is connect with the CLK clock signal terminals, and the SDATA data terminals and the MISO serial datas are defeated Outlet connects.The CS equipment enable signal end includes CS1 ends and CS2 ends, the LRCK left and right acoustic channels data switch terminal setting Left channel data exports road and right data output road, and the left channel data output road is connect with the CS1 ends, the right side Channel data output road is connect by a phase inverter with the CS2 ends.
Preferably, IIS interfaces are 16bit signals or 24bit signal output interfaces, and SPI interface connects for 8bit signals Mouthful, the processor is used to multiple 8bit signal processings being converted to 16bit signals or 24bit signals.
Preferably, phase inverter uses the NOT gate chip of model 74C04.
To solve the above problems, the present invention also proposes intelligence manufacture equipment and the data conversion side of external audio collecting device Method includes the following steps:
Step S1:The SPI interface of intelligence manufacture equipment is connect with the IIS interfaces of external audio collecting device.
Step S2:IIS interfaces send audio signal.
Step S3:SPI interface receives the audio signal that IIS interfaces are sent.
Step S4:The audio signal that the processor of intelligence manufacture equipment receives SPI interface carries out data processing.
Preferably, in step S1, IIS interfaces setting SCLK serial clock signals end, SDATA data terminals, LRCK or so sound Track data switch terminal.Also, SPI interface setting CLK clock signal terminals, MISO serial data output terminals and several CS equipment make It can signal end.
Preferably, in step S1, CS equipment enable signals end is set as CS1 ends and CS2 ends, and LRCK left and right acoustic channels data are cut It changes end and is set as left channel data output road and right data output road.And:
The SCLK serial clock signals end is connect with the CLK clock signal terminals.
The SDATA data terminals are connect with the MISO serial data output terminals.
Left channel data output road is connect with the CS1 ends.
Right data output road is connect by a phase inverter with the CS2 ends.
Preferably, in step S2, the audio signal that IIS interfaces are sent is 16bit signals or 24bit signals.
Preferably, in step S3, when SPI interface receives the audio signal that IIS interfaces are sent, by the 16bit signals or 24bit signals do twice/receive three times, and be split into the data of 2/3 byte;Also, in step S4, the processor will be torn open Data after point are handled, and are reduced to the 16bit signals or 24bit signals.
Preferably, phase inverter uses the NOT gate chip of model 74C04.
Compared with prior art, the beneficial effects of the invention are as follows:Utilize SPI interface and the common serial number of IIS interfaces According to feature, while to its difference hardware, using simple process (only needing to add a simple inverter gate circuit), reach object Manage the logical sequence docking of layer.Simultaneously in order to be adapted to this hardware transport, in data processing, the data of 24bit are divided into 3 Data after being received using SPI interface, then are reassembled into 24bit data, completed to peripheral IIS by a 8bit data The reading of audio data.Change the connection mode of traditional IIS interfaces and SPI interface, realize IIS interfaces and SPI interface it Between be directly connected to and communicate, greatly reduce cost, ensure that signal transmit synchronization, prevent loss of data.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Structure according to these attached drawings obtains other attached drawings.
Fig. 1 is the signal end connection diagram of data conversion system of the present invention;
Fig. 2 is the flow chart of data transfer device of the present invention;
Fig. 3 is the sequence diagram that left and right acoustic channels of the present invention select CS1, CS2 with SPI pieces;
Fig. 4 is reduction schematic diagram inside IIS data transmission of the present invention-SPI interface partition-processor;
Fig. 5 is IIS-SPI general line systems of the present invention and data segmentation, synthesis transition diagram;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art obtained without creative efforts it is all its His embodiment, shall fall within the protection scope of the present invention.
The present invention provides intelligence manufacture equipment and the data conversion system of external audio collecting device, including:IIS interfaces, It is arranged on the external audio collecting device, for sending audio signal.Processor is arranged on the intelligence manufacture equipment On, for handling audio signal.SPI interface is set on the processor, for receiving audio signal.As shown in Figure 1, institute IIS interfaces are stated to connect with the SPI interface.IIS interfaces include:SCLK serial clock signals end, SDATA data terminals, LRCK are left Right data switch terminal.SPI interface includes:CLK clock signal terminals, MISO serial data output terminals and several CS equipment make It can signal end.The SCLK serial clock signals end is connect with the CLK clock signal terminals, the SDATA data terminals with it is described MISO serial data output terminals connect.The CS equipment enable signal end includes CS1 ends and CS2 ends, the LRCK left and right acoustic channels Data switch terminal setting left channel data exports road and right data output road, left channel data output road with it is described CS1 ends connect, and the right data output road is connect by a phase inverter with the CS2 ends.
It should be noted that left channel data is low level signal, right data is high electric signal, and the CS equipment Enable signal end is that received signal is low level signal.Therefore, left channel data output road can directly connect with the CS1 ends It connects, right data output road can realize the connection with CS2 ends by a phase inverter, and phase inverter can turn high level signal Become low level signal.
Further, IIS interfaces are 16bit signals or 24bit signal output interfaces, and SPI interface receives for 8bit signals Interface, the processor are used to 8bit signal processings being converted to 16bit signals or 24bit signals.
Specifically, as shown in Figures 3 to 5, in the docking of SPI interface and IIS interface data layers, SPI interface receives 8bit signals, IIS interfaces output 16bit signals or 24bit signals, the data that SPI interface can export IIS interfaces are done It receives twice or thrice, is split into the byte of 2 8bit or 3 8bit, original data are then reduced into inside processor. By taking IIS interfaces export 24bit signals as an example, within the time of L channel, CS1 ends enable, and CS2 ends are closed, 24bit signal quilts SPI interface receives, and forms the data of 3 8bit bytes.Within the time of right channel, CS2 ends enable, and CS1 ends are closed, 24bit Signal is received by SPI interface, splits into the data of 3 8bit bytes.The 24bit signals that IIS interfaces are sent, by SPI interface During reception, it is split into the byte of 3 8bit.By the processing of processor, again by data convert into the audio data of 24bit.
Further, phase inverter use model 74C04 NOT gate chip, it is cheap, greatly reduce system into This.
The present invention also provides intelligence manufacture equipment and the data transfer device of external audio collecting device, as shown in Fig. 2, packet Include following steps:
Step S1:The SPI interface of intelligence manufacture equipment is connect with the IIS interfaces of external audio collecting device.
Step S2:IIS interfaces send audio signal.
Step S3:SPI interface receives the audio signal that IIS interfaces are sent.
Step S4:The audio signal that the processor of intelligence manufacture equipment receives SPI interface carries out data processing.
Specifically, in step S1, IIS interfaces setting SCLK serial clock signals end, SDATA data terminals, LRCK or so sound Track data switch terminal.Also, SPI interface setting CLK clock signal terminals, MISO serial data output terminals and several CS equipment make It can signal end.Further, in step S1, CS equipment enable signals end is set as CS1 ends and CS2 ends, LRCK left and right acoustic channels numbers Left channel data output road and right data output road are set as according to switch terminal.And:
The SCLK serial clock signals end is connect with the CLK clock signal terminals.By the SDATA data terminals and institute State the connection of MISO serial data output terminals.Left channel data output road is connect with the CS1 ends.By the right channel number It is connect according to output road by a phase inverter with the CS2 ends.
Left channel data is low level signal, and right data is high electric signal, and the CS equipment enable signal end is Received signal is low level signal.Therefore, left channel data output road can directly be connect with the CS1 ends, right channel number The connection with CS2 ends can be realized by a phase inverter according to output road, high level signal can be transformed into low level by phase inverter Signal.Further, the audio signal that IIS interfaces are sent is 16bit signals or 24bit signals, and the audio that SPI interface receives is believed Number for 8bit signals, 8bit signals can be converted to 16bit signals or 24bit signals by the processor.
Specifically, in the docking of SPI interface and IIS interface data layers, SPI interface receives 8bit signals, and IIS interfaces are defeated Go out 16bit signals or 24bit signals, the data that SPI interface can export IIS interfaces are done and received twice or thrice, partition Into the byte of 2 8bit or 3 8bit, original data are then reduced into inside processor.24bit is exported with IIS interfaces For signal, within the time of L channel, CS1 ends enable, and CS2 ends are closed, and 24bit signals are received by SPI interface, form 3 The data of 8bit bytes.Within the time of right channel, CS2 ends enable, and CS1 ends are closed, and 24bit signals are received by SPI interface, torn open It is divided into the data of 3 8bit bytes.The 24bit signals that IIS interfaces are sent, when being received by SPI interface, are split into 3 8bit Byte.By the processing of processor, again by data convert into the audio data of 24bit.
Further, phase inverter is set as the NOT gate chip of model 74C04, cheap, greatly reduces system Cost.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. intelligence manufacture equipment and the data conversion system of external audio collecting device, which is characterized in that including:IIS interfaces, if It puts on the external audio collecting device, for sending audio signal;
Processor is arranged in the intelligence manufacture equipment, for handling audio signal;
SPI interface is set on the processor, for receiving audio signal;
The IIS interfaces are connect with the SPI interface.
2. intelligence manufacture equipment as described in claim 1 and the data conversion system of external audio collecting device, feature exist In the IIS interfaces include:SCLK serial clock signals end, SDATA data terminals, LRCK left and right acoustic channels data switch terminals;It is described SPI interface includes:CLK clock signal terminals, MISO serial data output terminals and several CS equipment enable signal ends;The SCLK Serial clock signal end is connect with the CLK clock signal terminals, the SDATA data terminals and the MISO serial data output terminals Connection;The CS equipment enable signal end includes CS1 ends and CS2 ends, and the LRCK left and right acoustic channels data switch terminal sets left sound Track data exports road and right data output road, and the left channel data output road is connect with the CS1 ends, the right channel Data output road is connect by a phase inverter with the CS2 ends.
3. intelligence manufacture equipment as described in claim 1 and the data conversion system of external audio collecting device, feature exist It is 16bit signals or 24bit signal output interfaces in, IIS interfaces, the SPI interface is 8bit signal receiving interfaces, institute Processor is stated for multiple 8bit signal processings to be converted to 16bit signals or 24bit signals.
4. intelligence manufacture equipment as claimed in claim 2 and the data conversion system of external audio collecting device, feature exist In the phase inverter is set as the NOT gate chip of model 74C04.
5. intelligence manufacture equipment and the data transfer device of external audio collecting device, which is characterized in that include the following steps:
Step S1:The SPI interface of intelligence manufacture equipment is connect with the IIS interfaces of external audio collecting device;
Step S2:IIS interfaces send audio signal;
Step S3:SPI interface receives the audio signal that IIS interfaces are sent;
Step S4:The audio signal that the processor of intelligence manufacture equipment receives SPI interface carries out data processing.
6. intelligence manufacture equipment as claimed in claim 5 and the data transfer device of external audio collecting device, feature exist In in step S1, the IIS interfaces setting SCLK serial clock signals end, SDATA data terminals, LRCK left and right acoustic channels data are cut Change end;Also, the SPI interface setting CLK clock signal terminals, MISO serial data output terminals and several CS equipment enable letter Number end.
7. intelligence manufacture equipment as claimed in claim 6 and the data transfer device of external audio collecting device, feature exist In in step S1, the CS equipment enable signal end setting CS1 ends and CS2 ends, the LRCK left and right acoustic channels data switch terminal are set Put left channel data output road and right data output road;And:
The SCLK serial clock signals end is connect with the CLK clock signal terminals;
The SDATA data terminals are connect with the MISO serial data output terminals;
Left channel data output road is connect with the CS1 ends;
Right data output road is connect by a phase inverter with the CS2 ends.
8. intelligence manufacture equipment as claimed in claim 5 and the data transfer device of external audio collecting device, feature exist In in step S2, the audio signal that the IIS interfaces are sent is 16bit signals or 24bit signals.
9. intelligence manufacture equipment as claimed in claim 8 and the data transfer device of external audio collecting device, feature exist In in step S3, when SPI interface receives the audio signal that IIS interfaces are sent, the 16bit signals or 24bit signals are done two It is secondary/to receive three times, and it is split into the data of 2/3 byte;Also, in step S4, the processor by the data after fractionation into Row processing, is reduced to the 16bit signals or 24bit signals.
10. intelligence manufacture equipment as claimed in claim 7 and the data transfer device of external audio collecting device, feature exist In the phase inverter uses the NOT gate chip of model 74C04.
CN201810004775.4A 2018-01-03 2018-01-03 Intelligence manufacture equipment and the data conversion system and method for external audio collecting device Pending CN108197051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810004775.4A CN108197051A (en) 2018-01-03 2018-01-03 Intelligence manufacture equipment and the data conversion system and method for external audio collecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810004775.4A CN108197051A (en) 2018-01-03 2018-01-03 Intelligence manufacture equipment and the data conversion system and method for external audio collecting device

Publications (1)

Publication Number Publication Date
CN108197051A true CN108197051A (en) 2018-06-22

Family

ID=62587666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810004775.4A Pending CN108197051A (en) 2018-01-03 2018-01-03 Intelligence manufacture equipment and the data conversion system and method for external audio collecting device

Country Status (1)

Country Link
CN (1) CN108197051A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201104365Y (en) * 2007-05-31 2008-08-20 深圳创维-Rgb电子有限公司 Microcontroller
RU2360282C2 (en) * 2007-08-31 2009-06-27 Государственное образовательное учреждение высшего профессионального образования Московский государственный институт электронной техники (технический университет) Programmable serial bus controller
CN103065657A (en) * 2012-12-18 2013-04-24 航天科工深圳(集团)有限公司 Audio system with small scale integration (SSI) module and working method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201104365Y (en) * 2007-05-31 2008-08-20 深圳创维-Rgb电子有限公司 Microcontroller
RU2360282C2 (en) * 2007-08-31 2009-06-27 Государственное образовательное учреждение высшего профессионального образования Московский государственный институт электронной техники (технический университет) Programmable serial bus controller
CN103065657A (en) * 2012-12-18 2013-04-24 航天科工深圳(集团)有限公司 Audio system with small scale integration (SSI) module and working method thereof

Similar Documents

Publication Publication Date Title
CN110417780B (en) Multi-channel high-speed data interface conversion module of customized data transmission protocol
US20120082166A1 (en) Analog front end protocol converter/adapter for slpi protocol
CN106025742A (en) Adapter applied to Type-C interface intelligent terminal and adaption method
WO2015135201A1 (en) Dual-microphone earphone and noise reduction processing method for audio signal in call
CN109889268A (en) A kind of USB distance transmission system and method based on FPGA
US8626975B1 (en) Communication interface with reduced signal lines
US20030081707A1 (en) Data synchronization circuit and communication interface circuit
CN102098055B (en) Data baud rate adaptive digital-analogue conversion device
CN105786741B (en) SOC high-speed low-power-consumption bus and conversion method
CN114257245A (en) Multichannel AD acquisition system based on DSP-FPGA
CN108197051A (en) Intelligence manufacture equipment and the data conversion system and method for external audio collecting device
CN106159611A (en) It is applied to adapter and the forwarding method of Lightning interface intelligent terminal
CN108667706A (en) The adjustable Ethernet serial server of serial ports quantity dynamic and its data transmission method
CN208707932U (en) A kind of audio interface conversion circuit, audio collecting system and electronic equipment
CN106792321A (en) A kind of separated wireless earphone and its communication means
CN210670115U (en) Communication module's extension device and robot
CN207427125U (en) One kind is based on DSP parallel data mouth AD analog-digital conversion data sampling systems
CN203691430U (en) Audio conference system
CN202818282U (en) Digital audio signal transmission apparatus
CN101635857A (en) Multi-path audio collecting system
CN106792466A (en) A kind of equipment end and host side communication means
CN206602511U (en) Control system based on DMR and GSM R dual mode communications
US8654982B2 (en) Reducing power consumption in sink devices by having sinks receive only left audio channel or right audio channel
CN206850769U (en) Audio transmission system based on power line
CN209571228U (en) A kind of audio decoding circuit based on multi core chip

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622

RJ01 Rejection of invention patent application after publication