WO2016000639A1 - Headset interface control system and headset interface control method - Google Patents

Headset interface control system and headset interface control method Download PDF

Info

Publication number
WO2016000639A1
WO2016000639A1 PCT/CN2015/083180 CN2015083180W WO2016000639A1 WO 2016000639 A1 WO2016000639 A1 WO 2016000639A1 CN 2015083180 W CN2015083180 W CN 2015083180W WO 2016000639 A1 WO2016000639 A1 WO 2016000639A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
headset interface
interface control
headset
control method
Prior art date
Application number
PCT/CN2015/083180
Other languages
French (fr)
Chinese (zh)
Inventor
陈锋
Original Assignee
王玮冰
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 王玮冰 filed Critical 王玮冰
Publication of WO2016000639A1 publication Critical patent/WO2016000639A1/en

Links

Images

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/08Mouthpieces; Microphones; Attachments therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones

Definitions

  • the present invention relates to the field of terminal equipment technologies, and in particular, to a headset interface control system and a headset interface control method.
  • Headsets are extremely versatile, so there are headsets on many devices.
  • the prior art headset interface only serves as a bridge between the headset device and the audio codec, baseband or processor, etc. Therefore, the prior art headset interface can only implement the connection between the host and the headset device.
  • the object of the present invention is to provide a headset interface control system and a headset interface control method, so as to solve the problem that the headset interface in the prior art only serves as a bridge between the headset device and the audio codec, baseband or processor, and has a relatively simple function. problem.
  • the present invention provides a headset interface control system, where the headset interface control system includes: a host controller, a headset interface, and a slave conversion module, wherein the host controller configures the headset interface, The slave conversion module is coupled to the headset interface to convert signals on the headset interface into bus signals.
  • the method further includes: a host baseband or a host audio codec connected to the host controller, and a filtering connection with the host baseband or the host audio codec.
  • a bias circuit wherein the host baseband or host audio codec includes a buffer and a register coupled to the buffer, the headset interface being disposed on the filtering and biasing circuit.
  • the headset interface includes a microphone interface, a grounding port, a left channel earphone interface, and a right channel earphone interface.
  • the slave conversion module converts a signal on the headset interface into an I2C bus signal or an SPI bus signal.
  • the invention also provides a headset interface control method, and the headset interface control method includes:
  • the host controller configures a signal on the headset interface
  • the slave conversion module converts the signal on the headset interface into a bus signal.
  • the signal that the host controller configures the headset interface includes:
  • the host controller configures an input signal of the buffer
  • the input signal of the host controller configuration buffer includes:
  • the output signal of the host controller configuration register and the offset input level, the left channel digital-to-analog signal, and the right-channel digital-to-analog signal is the output signal of the host controller configuration register and the offset input level, the left channel digital-to-analog signal, and the right-channel digital-to-analog signal.
  • the output signal of the register includes: the zeroth register is a logic high level or a logic low level, the first register is a logic high level or a logic low level, or The second register is logic high or logic low.
  • the bias input level includes: a logic high level or a logic low level.
  • the left channel digital-to-analog signal includes: a digital signal or an analog signal.
  • the right channel digital-to-analog signal comprises: a digital signal or an analog signal.
  • the buffer output signal to the filtering and biasing circuit includes:
  • the buffer outputs a microphone bias level, a left channel output signal, and a right channel output signal to the filtering and biasing circuit.
  • the microphone bias level includes: a low resistance high level, a logic low level, or a high resistance.
  • the left channel output signal includes: a buffered left channel digital-to-analog signal or a high impedance.
  • the right channel output signal includes: a buffered right channel digital-to-analog signal or a high impedance.
  • the input signals of the host controller configuration buffer include:
  • Configuring the second register to be a logic high level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal or a DC high level; configuring the zeroth register to a logic high level, configuring the right channel
  • the digital-to-analog signal is an AC clock signal or a logic low level.
  • the input signals of the host controller configuration buffer include:
  • Configuring the second register to be a logic low level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal; configuring the zeroth register to a logic high level, configuring the right channel digital-to-analog signal to be send data.
  • the host controller configures a headset interface
  • the slave converter module is connected to the headset interface to convert the signal on the headset interface into a bus signal, thereby implementing the host through the headset interface.
  • Connecting with a variety of devices makes the functions of the headset interface diversified.
  • FIG. 1 is a block diagram showing the structure of a headset interface control system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a frame in which a headset interface is configured as an I2C interface according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a frame in which a headset interface is configured as an SPI interface according to an embodiment of the present invention.
  • FIG. 1 is a block diagram of a headset interface control system according to an embodiment of the present invention.
  • the headset interface control system includes: a host controller 10, a headset interface, and a slave conversion module 13, wherein the host controller 10 configures the headset interface, and the slave conversion module 13 and The headset interfaces are connected to convert signals on the headset interface into bus signals.
  • the headset interface control system further includes: a host baseband or host audio codec (BaseBand/Codec) 11 connected to the host controller 10, and connected to the host baseband or host audio codec 11 Filtering and biasing circuit (RC) 12, wherein the host baseband or host audio codec 11 includes a buffer 20 and a register 21 connected to the buffer 20, the headset interface is disposed in the The filtering and biasing circuit 12 is described.
  • BaseBand/Codec host baseband or host audio codec
  • RC Filtering and biasing circuit
  • the headset interface includes a microphone interface MIC, a grounding port GND, a left channel earphone interface HPL, and a right channel headphone interface HPR.
  • the slave conversion module 13 converts output signals of the microphone interface MIC, the grounding port GND, the left channel headphone interface HPL, and the right channel headphone interface HPR. Specifically, the slave conversion module 13 converts the signal on the headset interface into an I2C bus signal or an SPI bus signal. Therefore, the corresponding slave conversion module 13 can be an I2C conversion module or an SPI conversion module.
  • the register 21 is a 3-bit register of the control buffer 20 in the host baseband or host audio codec 11, which can be represented as CTRL ⁇ 2:0>. Further, CTRL ⁇ 0> indicates The zeroth register, CTRL ⁇ 1> represents the first bit register, and CTRL ⁇ 2> represents the second bit register.
  • the embodiment further provides a headset interface control method, which specifically includes:
  • the host controller configures a signal on the headset interface
  • the slave conversion module converts the signal on the headset interface into a bus signal.
  • the signal configured on the headset interface by the host controller includes:
  • the host controller 10 configures an input signal of the buffer 20;
  • the buffer 20 outputs a signal to the filtering and biasing circuit 12;
  • the filtering and biasing circuit 12 outputs a signal.
  • the input signal of the host controller 10 configuring the buffer 20 includes: an output signal of the host controller 10 configuration register 21 and a bias input level BIAS_IN, a left channel digital-to-analog signal/port HPL_DAC, and a right channel digital-to-analog signal/ Port HPR_DAC.
  • the buffer 20 output signal to the filtering and biasing circuit 12 includes a buffer 20 outputting a microphone bias level MIC_BIAS, a left channel output signal/port HPLOUT, and a right channel output signal/port HPROUT to the filtering and biasing circuit 12.
  • the microphone bias level MIC_BIAS output by the buffer 20 (ie, the host baseband or the host audio codec 11) is generally connected to the microphone interface MIC via a resistor in the filter and bias circuit 12, and the microphone is biased.
  • the level MIC_BIAS internal buffer 20 is controlled by the bias input level BIAS_IN and the second bit register CTRL ⁇ 2>.
  • the microphone bias level MIC_BIAS is traditionally used as the bias port of the microphone, and can be used as an output port of data in subsequent applications of the present application.
  • the microphone bias level MIC_BIAS is controlled as follows: the bias input level BIAS_IN is from the signal in the host audio codec 11, the bias input level BIAS_IN is logic high and the second bit register CTRL ⁇ 2> is logic High level, buffer 20 outputs microphone bias level MIC_BIAS (typically low impedance high level); bias input level BIAS_IN is logic low and The second bit register CTRL ⁇ 2> is a logic high level, and the buffer 20 outputs the microphone bias level MIC_BIAS to a logic low level; as long as the second bit register CTRL ⁇ 2> is a logic low level, the buffer 20 outputs a microphone.
  • the bias level MIC_BIAS is high impedance. Specifically, the control of the microphone bias level MIC_BIAS is as shown in Table 1.
  • the microphone input signal/port MICI of the host baseband or the host audio codec 11 is generally connected to the microphone interface MIC through the DC blocking capacitor inside the filtering and biasing circuit 12, and the gain adjustable amplifier outputting the microphone modulus through the buffer 20 internally.
  • Signal/port MIC_ADC, microphone analog signal/port MIC_ADC is connected to the analog to digital converter inside the host baseband or host audio codec 11.
  • the microphone analog-to-digital signal/port MIC_ADC is traditionally used as an input port for an audio microphone signal and can be used as an input port for data in subsequent applications of the present application.
  • GND is the ground of the buffer 20 and the host baseband or host audio codec 11.
  • the left channel output signal/port HPLOUT of the host baseband or host audio codec 11 is typically connected to the left channel headphone interface HPL via a DC blocking capacitor inside the filter and bias circuit 12, either directly or directly via a wire (CLASS) -G output).
  • the input left channel digital-to-analog signal/port HPL_DAC of the power amplifier is derived from the output of the internal digital-to-analog converter.
  • the right channel output signal/port HPROUT is traditionally used as the output port of the left channel of the audio headphone port. It can be used as a power generation port or as a clock generation port in the subsequent applications of this application. Can be used as a data port. When used as a clock port, different duty cycles of CLK can be configured. With different duty cycles, additional information can be transferred from the master to the slave.
  • the right channel output signal/port HPROUT control method is as follows: the left channel digital-to-analog signal/port HPL_DAC is derived from the analog signal outputted by the internal baseband or the host audio codec 11 internal digital-to-analog converter, and the first bit register CTRL ⁇ 1> is Logic high, left channel digital-to-analog signal/port HPL_DAC is typically driven by the power amplifier inside buffer 20 to the left channel output signal/port HPLOUT of buffer 20; as long as the first bit register CTRL ⁇ 1> is logic low Level, buffer 20 outputs left channel output signal / port HPLOUT is high impedance. The last left channel output signal/port HPLOUT is output to the left channel headphone interface HPL via the filtering and biasing circuit 12. The control of the left channel output signal/port HPLOUT is shown in Table 2.
  • the right channel output signal/port HPROUT of the host baseband or host audio codec 11 is generally connected to the right channel headphone interface HPR through the DC blocking capacitor inside the filtering and biasing circuit 12, and the two are directly connected directly through the wire (CLASS) -G output).
  • the input left channel digital-to-analog signal/port HPL_DAC of the power amplifier is derived from the output of the internal digital-to-analog converter.
  • the right channel output signal/port HPROUT is traditionally used as the output port of the right channel of the audio headphone port. It can be used as a power generation port in the subsequent applications of this application, as a clock generation port, or as a data port. When used as a clock port, different duty cycles of CLK can be configured. With different duty cycles, additional information can be transferred from the master to the slave.
  • the right channel output signal / port HPROUT control method is as follows: left channel digital analog signal / port
  • the HPL_DAC is derived from the analog signal output from the internal baseband or host audio codec 11 internal digital-to-analog converter.
  • the zeroth register CTRL ⁇ 0> is logic high, and the left channel digital-to-analog signal/port HPL_DAC is generally passed through the buffer 20.
  • the power amplifier is driven to the right channel output signal/port HPROUT of the buffer 20; as long as the zeroth register CTRL ⁇ 0> is logic low, the buffer 20 outputs the right channel output signal/port HPROUT to high impedance.
  • the right channel output signal/port HPROUT is output to the left channel headphone interface HPL via the filtering and biasing circuit 12.
  • Table 3 The control of the right channel output signal/port HPROUT is shown in Table 3.
  • Various data interfaces can be configured by different configurations of the output signal of the register 21, the bias input level BIAS_IN, the left channel digital-to-analog signal/port HPL_DAC, and the right channel digital-to-analog signal/port HPR_DAC.
  • the conversion module is specifically an I2C conversion module, and the microphone interface MIC is generally connected to the SDA port via the I2C conversion module; the grounding port GND is generally directly connected to the GND port via the internal wire of the I2C conversion module; the left channel headphone interface HPL is generally converted via I2C.
  • the power submodule inside the module is connected to the VDD port; the right channel headphone interface HPR is generally connected to the SCL port via the clock recovery and processing circuit sub-module inside the I2C conversion module.
  • the bias input level BIAS_IN is configured to a logic low level.
  • the second register CTRL ⁇ 2> is configured to be a logic high level, and then the microphone bias level MIC_BIAS is outputted to a logic low level via the buffer 20, and then filtered and biased through the resistor 12
  • the resistor divider in R3 and filter and bias circuit 12 is at a logic low level (selecting a suitable resistor ratio) at the microphone interface MIC of filter and bias circuit 12.
  • the last logic low level is communicated to the SDA port via the I2C conversion module.
  • the second register CTRL ⁇ 2> is configured to be logic low. From the above signal path, an equivalent open-drain logic high level is obtained at the SDA port (because the resistor R3 is pulled up to the VDD port). This is the typical SDA port for the I2C interface.
  • / Port HPR_DAC is DC high level (corresponding to the right channel output signal / port HPROUT is CLASS-G output).
  • the right channel digital-to-analog signal/port HPR_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 or directly to the left channel earphone
  • the interface HPL, the left channel headphone interface HPL passes through the power submodule inside the I2C conversion module (if the CLASS-G output can directly replace the power module with a wire), the power from the left channel headphone interface HPL is output to the VDD port.
  • the right channel output signal / port HPROUT has a DC blocking capacitor, configure the zeroth register CTRL ⁇ 0> to be a logic high level, and configure the right channel digital-to-analog signal/port HPR_DAC to be an AC clock signal (periodic signal).
  • the right channel digital-to-analog signal/port HPR_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 to the right channel headphone interface HPR
  • the right channel headphone interface HPR outputs the clock from the right channel headphone interface HPR to the SCL port through the clock recovery and processing circuit sub-module inside the I2C conversion module, making it a clock signal conforming to the I2C standard.
  • I2C interface devices such as gyroscopes, accelerometers, thermometers, pressure gauges, etc.
  • the conversion module is specifically an SPI conversion module, and the microphone interface MIC is generally connected to the MISO port via the SPI conversion module; the grounding port GND is generally directly connected to the GND port via the internal wire of the SPI conversion module; the left channel headphone interface HPL is generally converted via SPI.
  • the power module and the clock circuit module and the duty cycle decoding module inside the module are connected to the VDD, CLK and CS ports respectively; the right channel headphone interface HPR is generally connected to the MOSI port via the circuit module inside the SPI conversion module.
  • the second register CTRL ⁇ 2> is configured to be a logic low level, and then the microphone bias level MIC_BIAS outputs a high impedance via the buffer 20.
  • the MISO port is directly connected to the microphone interface MIC, and the data from the SPI slave is coupled to the microphone input signal/port MICI via the capacitance inside the filter and bias circuit 12, and reaches the microphone analog signal/port MIC_ADC via the PGA in the buffer 20. This configures an SPI host side data input channel.
  • the first register CTRL ⁇ 1> is configured to be a logic high level, and the left channel digital-to-analog signal/port HPL_DAC is configured as an alternating current signal.
  • the left channel digital-to-analog signal/port HPL_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 or directly to the left channel earphone Interface HPL, left
  • the channel headphone interface HPL outputs the power from the left channel headphone interface HPL to the VDD port through the power module inside the SPI conversion module, while the left channel headphone interface HPL passes the clock recovery module inside the SPI conversion module to the left channel earphone.
  • the clock information of the interface HPL is output to the CLK port, and the duty ratio of the left channel digital-to-analog signal/port HPL_DAC AC clock signal is configured, and the duty cycle signal is decoded into CS ⁇ N by the duty ratio decoding circuit inside the SPI conversion module.
  • the N-bit SPI chip select signal of -1:0> configures the VDD, CLK, and CS ⁇ N-1:0> ports of the SPI.
  • the right channel output signal / port HPROUT has DC blocking capacitor or no DC blocking capacitor (CLASS-G output), configure the zeroth register CTRL ⁇ 0> to logic high level, configure the right channel digital-to-analog signal/port HPR_DAC to Data to be sent on the SPI host.
  • the left channel digital-to-analog signal/port HPL_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the left channel output signal/port HPLOUT passes through the filtering and biasing circuit 12 to the right channel headphone interface HPR.
  • the right channel headphone interface HPR outputs the data from the right channel headphone interface HPR to the MOSI port through the circuit module inside the SPI conversion module, thus configuring an SPI host side data output channel.
  • SPI data bus ie VDD port, MISO port, MOSI port, CLK port, CS ⁇ N-1:0> port and GND port
  • SPI interface devices such as gyroscopes, accelerometers, thermometers, Pressure gauges, etc.
  • the headset interface can be configured by configuring the input signal of the buffer, so that the host and the multiple devices can be implemented through the headset interface.
  • the connection makes the functions of the headset interface diversified.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

A headset interface control system and a headset interface control method. The headset interface control system comprises: a host controller (10), a headset interface, and a slave conversion module (13). The host controller (10) configures the headset interface. The slave conversion module (13) is connected to the headset interface and converts a signal on the headset interface into a bus signal. The headset interface control system and method implement connection between a host and various devices via the headset interface, thus allowing functional diversification of the headset interface.

Description

耳麦接口控制系统及耳麦接口控制方法Headset interface control system and headset interface control method 技术领域Technical field
本发明涉及终端设备技术领域,特别涉及一种耳麦接口控制系统及耳麦接口控制方法。The present invention relates to the field of terminal equipment technologies, and in particular, to a headset interface control system and a headset interface control method.
背景技术Background technique
耳麦的应用极其广泛,因此在很多设备上都有耳麦接口。现有技术中耳麦接口仅充当耳麦设备与音频编解码器、基带或处理器等的连接的桥梁,因此,现有技术的耳麦接口只能实现主机与耳麦设备的连接。Headsets are extremely versatile, so there are headsets on many devices. The prior art headset interface only serves as a bridge between the headset device and the audio codec, baseband or processor, etc. Therefore, the prior art headset interface can only implement the connection between the host and the headset device.
发明内容Summary of the invention
本发明的目的在于提供一种耳麦接口控制系统及耳麦接口控制方法,以解决现有技术中耳麦接口仅充当耳麦设备与音频编解码器、基带或处理器等的连接的桥梁,功能比较单一的问题。The object of the present invention is to provide a headset interface control system and a headset interface control method, so as to solve the problem that the headset interface in the prior art only serves as a bridge between the headset device and the audio codec, baseband or processor, and has a relatively simple function. problem.
为解决上述技术问题,本发明提供一种耳麦接口控制系统,所述耳麦接口控制系统包括:主机控制器,耳麦接口以及从机转换模块,其中,所述主机控制器配置所述耳麦接口,所述从机转换模块与所述耳麦接口相连,将所述耳麦接口上的信号转换成总线信号。In order to solve the above technical problem, the present invention provides a headset interface control system, where the headset interface control system includes: a host controller, a headset interface, and a slave conversion module, wherein the host controller configures the headset interface, The slave conversion module is coupled to the headset interface to convert signals on the headset interface into bus signals.
可选的,在所述的耳麦接口控制系统中,还包括:与所述主机控制器连接的主机基带或主机音频编解码器、以及与所述主机基带或主机音频编解码器连接的滤波及偏置电路,其中,所述主机基带或主机音频编解码器包括缓冲器及与所述缓冲器连接的寄存器,所述耳麦接口设置于所述滤波及偏置电路上。Optionally, in the headset interface control system, the method further includes: a host baseband or a host audio codec connected to the host controller, and a filtering connection with the host baseband or the host audio codec. A bias circuit, wherein the host baseband or host audio codec includes a buffer and a register coupled to the buffer, the headset interface being disposed on the filtering and biasing circuit.
可选的,在所述的耳麦接口控制系统中,所述耳麦接口包括麦克风接口、接地口、左声道耳机接口及右声道耳机接口。 Optionally, in the headset interface control system, the headset interface includes a microphone interface, a grounding port, a left channel earphone interface, and a right channel earphone interface.
可选的,在所述的耳麦接口控制系统中,所述从机转换模块将所述耳麦接口上的信号转换成I2C总线信号或者SPI总线信号。Optionally, in the headset interface control system, the slave conversion module converts a signal on the headset interface into an I2C bus signal or an SPI bus signal.
本发明还提供一种耳麦接口控制方法,所述耳麦接口控制方法包括:The invention also provides a headset interface control method, and the headset interface control method includes:
主机控制器配置耳麦接口上的信号;The host controller configures a signal on the headset interface;
从机转换模块将耳麦接口上的信号转换成总线信号。The slave conversion module converts the signal on the headset interface into a bus signal.
可选的,在所述的耳麦接口控制方法中,所述主机控制器配置耳麦接口上的信号包括:Optionally, in the headset interface control method, the signal that the host controller configures the headset interface includes:
主机控制器配置缓冲器的输入信号;The host controller configures an input signal of the buffer;
缓冲器输出信号至滤波及偏置电路;Buffer output signal to the filtering and biasing circuit;
滤波及偏置电路输出信号。Filter and bias circuit output signals.
可选的,在所述的耳麦接口控制方法中,主机控制器配置缓冲器的输入信号包括:Optionally, in the headset interface control method, the input signal of the host controller configuration buffer includes:
主机控制器配置寄存器的输出信号以及偏置输入电平、左声道数模信号和右声道数模信号。The output signal of the host controller configuration register and the offset input level, the left channel digital-to-analog signal, and the right-channel digital-to-analog signal.
可选的,在所述的耳麦接口控制方法中,寄存器的输出信号包括:第零寄存器为逻辑高电平或者逻辑低电平、第一寄存器为逻辑高电平或者逻辑低电平、或者第二寄存器为逻辑高电平或者逻辑低电平。Optionally, in the headset interface control method, the output signal of the register includes: the zeroth register is a logic high level or a logic low level, the first register is a logic high level or a logic low level, or The second register is logic high or logic low.
可选的,在所述的耳麦接口控制方法中,偏置输入电平包括:逻辑高电平或者逻辑低电平。Optionally, in the headset interface control method, the bias input level includes: a logic high level or a logic low level.
可选的,在所述的耳麦接口控制方法中,左声道数模信号包括:数字信号或者模拟信号。Optionally, in the headset interface control method, the left channel digital-to-analog signal includes: a digital signal or an analog signal.
可选的,在所述的耳麦接口控制方法中,右声道数模信号包括:数字信号或者模拟信号。Optionally, in the headset interface control method, the right channel digital-to-analog signal comprises: a digital signal or an analog signal.
可选的,在所述的耳麦接口控制方法中,缓冲器输出信号至滤波及偏置电路包括: Optionally, in the headset interface control method, the buffer output signal to the filtering and biasing circuit includes:
缓冲器输出麦克风偏置电平、左声道输出信号及右声道输出信号至滤波及偏置电路。The buffer outputs a microphone bias level, a left channel output signal, and a right channel output signal to the filtering and biasing circuit.
可选的,在所述的耳麦接口控制方法中,麦克风偏置电平包括:低阻高电平、逻辑低电平或者高阻。Optionally, in the headset interface control method, the microphone bias level includes: a low resistance high level, a logic low level, or a high resistance.
可选的,在所述的耳麦接口控制方法中,左声道输出信号包括:经过缓冲的左声道数模信号或者高阻。Optionally, in the headset interface control method, the left channel output signal includes: a buffered left channel digital-to-analog signal or a high impedance.
可选的,在所述的耳麦接口控制方法中,右声道输出信号包括:经过缓冲的右声道数模信号或者高阻。Optionally, in the headset interface control method, the right channel output signal includes: a buffered right channel digital-to-analog signal or a high impedance.
可选的,在所述的耳麦接口控制方法中,当将耳麦接口配置成I2C接口时,主机控制器配置缓冲器的输入信号包括:Optionally, in the headset interface control method, when the headset interface is configured as an I2C interface, the input signals of the host controller configuration buffer include:
配置第二寄存器为逻辑高电平;配置第一寄存器为逻辑高电平,配置左声道数模信号为交流信号或者直流高电平;配置第零寄存器为逻辑高电平,配置右声道数模信号为交流时钟信号或者逻辑低电平。Configuring the second register to be a logic high level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal or a DC high level; configuring the zeroth register to a logic high level, configuring the right channel The digital-to-analog signal is an AC clock signal or a logic low level.
可选的,在所述的耳麦接口控制方法中,当将耳麦接口配置成SPI接口时,主机控制器配置缓冲器的输入信号包括:Optionally, in the headset interface control method, when the headset interface is configured as an SPI interface, the input signals of the host controller configuration buffer include:
配置第二寄存器为逻辑低电平;配置第一寄存器为逻辑高电平,配置左声道数模信号为交流信号;配置第零寄存器为逻辑高电平,配置右声道数模信号为待发送数据。Configuring the second register to be a logic low level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal; configuring the zeroth register to a logic high level, configuring the right channel digital-to-analog signal to be send data.
在本发明提供的耳麦接口控制系统及耳麦接口控制方法中,主机控制器配置耳麦接口,从机转换模块与耳麦接口相连,将耳麦接口上的信号转换成总线信号,从而通过耳麦接口可以实现主机与多种设备连接,使得耳麦接口的功能多样化。In the headset interface control system and the headset interface control method provided by the present invention, the host controller configures a headset interface, and the slave converter module is connected to the headset interface to convert the signal on the headset interface into a bus signal, thereby implementing the host through the headset interface. Connecting with a variety of devices makes the functions of the headset interface diversified.
附图说明DRAWINGS
图1是本发明实施例的耳麦接口控制系统框结构示意图;1 is a block diagram showing the structure of a headset interface control system according to an embodiment of the present invention;
图2是本发明实施例的耳麦接口配置成I2C接口的框结构示意图; 2 is a schematic structural diagram of a frame in which a headset interface is configured as an I2C interface according to an embodiment of the present invention;
图3是本发明实施例的耳麦接口配置成SPI接口的框结构示意图。FIG. 3 is a schematic structural diagram of a frame in which a headset interface is configured as an SPI interface according to an embodiment of the present invention.
具体实施方式detailed description
以下结合附图和具体实施例对本发明提出的耳麦接口控制系统及耳麦接口控制方法作进一步详细说明。根据下面说明和权利要求书,本发明的优点和特征将更清楚。需说明的是,附图均采用非常简化的形式且均使用非精准的比例,仅用以方便、明晰地辅助说明本发明实施例的目的。The headset interface control system and the headset interface control method proposed by the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments. Advantages and features of the present invention will be apparent from the description and appended claims. It should be noted that the drawings are in a very simplified form and all use non-precise proportions, and are only for convenience and clarity to assist the purpose of the embodiments of the present invention.
请参考图1,其为本发明实施例的耳麦接口控制系统框结构示意图。如图1所示,所述耳麦接口控制系统包括:主机控制器10,耳麦接口以及从机转换模块13,其中,所述主机控制器10配置所述耳麦接口,所述从机转换模块13与所述耳麦接口相连,将所述耳麦接口上的信号转换成总线信号。Please refer to FIG. 1 , which is a block diagram of a headset interface control system according to an embodiment of the present invention. As shown in FIG. 1, the headset interface control system includes: a host controller 10, a headset interface, and a slave conversion module 13, wherein the host controller 10 configures the headset interface, and the slave conversion module 13 and The headset interfaces are connected to convert signals on the headset interface into bus signals.
进一步的,所述耳麦接口控制系统还包括:与所述主机控制器10连接的主机基带或主机音频编解码器(BaseBand/Codec)11、以及与所述主机基带或主机音频编解码器11连接的滤波及偏置电路(RC)12,其中,所述主机基带或主机音频编解码器11包括缓冲器(Buffer)20及与所述缓冲器20连接的寄存器21,所述耳麦接口设置于所述滤波及偏置电路12上。Further, the headset interface control system further includes: a host baseband or host audio codec (BaseBand/Codec) 11 connected to the host controller 10, and connected to the host baseband or host audio codec 11 Filtering and biasing circuit (RC) 12, wherein the host baseband or host audio codec 11 includes a buffer 20 and a register 21 connected to the buffer 20, the headset interface is disposed in the The filtering and biasing circuit 12 is described.
其中,所述耳麦接口包括麦克风接口MIC、接地口GND、左声道耳机接口HPL及右声道耳机接口HPR。所述从机转换模块13对麦克风接口MIC、接地口GND、左声道耳机接口HPL及右声道耳机接口HPR的输出信号进行转换。具体的,所述从机转换模块13将耳麦接口上的信号转换成I2C总线信号或者SPI总线信号,因此,相应的所述从机转换模块13可以为I2C转换模块或者SPI转换模块。The headset interface includes a microphone interface MIC, a grounding port GND, a left channel earphone interface HPL, and a right channel headphone interface HPR. The slave conversion module 13 converts output signals of the microphone interface MIC, the grounding port GND, the left channel headphone interface HPL, and the right channel headphone interface HPR. Specifically, the slave conversion module 13 converts the signal on the headset interface into an I2C bus signal or an SPI bus signal. Therefore, the corresponding slave conversion module 13 can be an I2C conversion module or an SPI conversion module.
具体的,寄存器21是主机基带或主机音频编解码器11内控制缓冲器20的3位寄存器,其可以表示为CTRL<2:0>。进一步的,CTRL<0>表示 第零位寄存器,CTRL<1>表示第一位寄存器,CTRL<2>表示第二位寄存器。Specifically, the register 21 is a 3-bit register of the control buffer 20 in the host baseband or host audio codec 11, which can be represented as CTRL<2:0>. Further, CTRL<0> indicates The zeroth register, CTRL<1> represents the first bit register, and CTRL<2> represents the second bit register.
相应的,本实施例还提供一种耳麦接口控制方法,具体包括:Correspondingly, the embodiment further provides a headset interface control method, which specifically includes:
主机控制器配置耳麦接口上的信号;The host controller configures a signal on the headset interface;
从机转换模块将耳麦接口上的信号转换成总线信号。The slave conversion module converts the signal on the headset interface into a bus signal.
其中,所述主机控制器配置耳麦接口上的信号包括:The signal configured on the headset interface by the host controller includes:
主机控制器10配置缓冲器20的输入信号;The host controller 10 configures an input signal of the buffer 20;
缓冲器20输出信号至滤波及偏置电路12;The buffer 20 outputs a signal to the filtering and biasing circuit 12;
滤波及偏置电路12输出信号。The filtering and biasing circuit 12 outputs a signal.
其中,主机控制器10配置缓冲器20的输入信号包括:主机控制器10配置寄存器21的输出信号以及偏置输入电平BIAS_IN、左声道数模信号/端口HPL_DAC和右声道数模信号/端口HPR_DAC。缓冲器20输出信号至滤波及偏置电路12包括:缓冲器20输出麦克风偏置电平MIC_BIAS、左声道输出信号/端口HPLOUT及右声道输出信号/端口HPROUT至滤波及偏置电路12。The input signal of the host controller 10 configuring the buffer 20 includes: an output signal of the host controller 10 configuration register 21 and a bias input level BIAS_IN, a left channel digital-to-analog signal/port HPL_DAC, and a right channel digital-to-analog signal/ Port HPR_DAC. The buffer 20 output signal to the filtering and biasing circuit 12 includes a buffer 20 outputting a microphone bias level MIC_BIAS, a left channel output signal/port HPLOUT, and a right channel output signal/port HPROUT to the filtering and biasing circuit 12.
具体的,缓冲器20(也即主机基带或主机音频编解码器11)输出的麦克风偏置电平MIC_BIAS一般经过滤波及偏置电路12内的一个电阻连接到麦麦克风接口MIC上,麦克风偏置电平MIC_BIAS内部经过缓冲器20由偏置输入电平BIAS_IN及第二位寄存器CTRL<2>来控制。麦克风偏置电平MIC_BIAS传统作为麦克风的偏置口,本申请后续的应用中可以作为数据的输出口。Specifically, the microphone bias level MIC_BIAS output by the buffer 20 (ie, the host baseband or the host audio codec 11) is generally connected to the microphone interface MIC via a resistor in the filter and bias circuit 12, and the microphone is biased. The level MIC_BIAS internal buffer 20 is controlled by the bias input level BIAS_IN and the second bit register CTRL<2>. The microphone bias level MIC_BIAS is traditionally used as the bias port of the microphone, and can be used as an output port of data in subsequent applications of the present application.
麦克风偏置电平MIC_BIAS的控制方法如下:偏置输入电平BIAS_IN来自主机音频编解码器11内的信号,偏置输入电平BIAS_IN为逻辑高电平且第二位寄存器CTRL<2>为逻辑高电平,缓冲器20输出麦克风偏置电平MIC_BIAS(一般为低阻高电平);偏置输入电平BIAS_IN为逻辑低电平且 第二位寄存器CTRL<2>为逻辑高电平,缓冲器20输出麦克风偏置电平MIC_BIAS为逻辑低电平;只要第二位寄存器CTRL<2>为逻辑低电平,缓冲器20输出麦克风偏置电平MIC_BIAS为高阻。具体的,麦克风偏置电平MIC_BIAS的控制如表1所示。The microphone bias level MIC_BIAS is controlled as follows: the bias input level BIAS_IN is from the signal in the host audio codec 11, the bias input level BIAS_IN is logic high and the second bit register CTRL<2> is logic High level, buffer 20 outputs microphone bias level MIC_BIAS (typically low impedance high level); bias input level BIAS_IN is logic low and The second bit register CTRL<2> is a logic high level, and the buffer 20 outputs the microphone bias level MIC_BIAS to a logic low level; as long as the second bit register CTRL<2> is a logic low level, the buffer 20 outputs a microphone. The bias level MIC_BIAS is high impedance. Specifically, the control of the microphone bias level MIC_BIAS is as shown in Table 1.
Figure PCTCN2015083180-appb-000001
Figure PCTCN2015083180-appb-000001
表1麦克风偏置电平MIC_BIASTable 1 microphone bias level MIC_BIAS
主机基带或主机音频编解码器11的麦克风输入信号/端口MICIN,一般经过滤波及偏置电路12内部的隔直电容与麦克风接口MIC连接,内部经过缓冲器20的增益可调放大器输出麦克风模数信号/端口MIC_ADC,麦克风模数信号/端口MIC_ADC接主机基带或主机音频编解码器11内部的模数转换器。麦克风模数信号/端口MIC_ADC传统作为音频麦克风信号的输入口,在本申请后续的应用中可以作为数据的输入口。The microphone input signal/port MICI of the host baseband or the host audio codec 11 is generally connected to the microphone interface MIC through the DC blocking capacitor inside the filtering and biasing circuit 12, and the gain adjustable amplifier outputting the microphone modulus through the buffer 20 internally. Signal/port MIC_ADC, microphone analog signal/port MIC_ADC is connected to the analog to digital converter inside the host baseband or host audio codec 11. The microphone analog-to-digital signal/port MIC_ADC is traditionally used as an input port for an audio microphone signal and can be used as an input port for data in subsequent applications of the present application.
GND是缓冲器20及主机基带或主机音频编解码器11的地。GND is the ground of the buffer 20 and the host baseband or host audio codec 11.
主机基带或主机音频编解码器11的左声道输出信号/端口HPLOUT一般经过滤波及偏置电路12内部的隔直电容与左声道耳机接口HPL相连,两者或直接经导线直连(CLASS-G输出)。内部来自缓冲器20内的功放输出,功放的输入左声道数模信号/端口HPL_DAC来自于内部的数模转换器的输出。右声道输出信号/端口HPROUT传统作为音频耳机口左声道的输出口,在本申请后续的应用中可以作为电源产生口,也可以作为时钟产生口,也 可以作为数据口。用作时钟口时,可以配置不同的CLK的占空比,通过不同的占空比,可以实现从主机到从机额外信息的传输。The left channel output signal/port HPLOUT of the host baseband or host audio codec 11 is typically connected to the left channel headphone interface HPL via a DC blocking capacitor inside the filter and bias circuit 12, either directly or directly via a wire (CLASS) -G output). Internally from the power amplifier output in the buffer 20, the input left channel digital-to-analog signal/port HPL_DAC of the power amplifier is derived from the output of the internal digital-to-analog converter. The right channel output signal/port HPROUT is traditionally used as the output port of the left channel of the audio headphone port. It can be used as a power generation port or as a clock generation port in the subsequent applications of this application. Can be used as a data port. When used as a clock port, different duty cycles of CLK can be configured. With different duty cycles, additional information can be transferred from the master to the slave.
右声道输出信号/端口HPROUT控制方法如下:左声道数模信号/端口HPL_DAC来自主机基带或主机音频编解码器11内部数模转换器输出的模拟信号,第一位寄存器CTRL<1>为逻辑高电平,左声道数模信号/端口HPL_DAC一般经过缓冲器20内部的功率放大器驱动到缓冲器20的左声道输出信号/端口HPLOUT;只要第一位寄存器CTRL<1>为逻辑低电平,缓冲器20输出左声道输出信号/端口HPLOUT为高阻。最后左声道输出信号/端口HPLOUT经由滤波及偏置电路12输出到左声道耳机接口HPL。左声道输出信号/端口HPLOUT的控制如表2所示。The right channel output signal/port HPROUT control method is as follows: the left channel digital-to-analog signal/port HPL_DAC is derived from the analog signal outputted by the internal baseband or the host audio codec 11 internal digital-to-analog converter, and the first bit register CTRL<1> is Logic high, left channel digital-to-analog signal/port HPL_DAC is typically driven by the power amplifier inside buffer 20 to the left channel output signal/port HPLOUT of buffer 20; as long as the first bit register CTRL<1> is logic low Level, buffer 20 outputs left channel output signal / port HPLOUT is high impedance. The last left channel output signal/port HPLOUT is output to the left channel headphone interface HPL via the filtering and biasing circuit 12. The control of the left channel output signal/port HPLOUT is shown in Table 2.
Figure PCTCN2015083180-appb-000002
Figure PCTCN2015083180-appb-000002
表2左声道输出信号/端口HPLOUTTable 2 left channel output signal / port HPLOUT
主机基带或主机音频编解码器11的右声道输出信号/端口HPROUT一般经过滤波及偏置电路12内部的隔直电容与右声道耳机接口HPR相连,两者或直接经导线直连(CLASS-G输出)。内部来自缓冲器20内的功放输出,功放的输入左声道数模信号/端口HPL_DAC来自于内部的数模转换器的输出。右声道输出信号/端口HPROUT传统作为音频耳机口右声道的输出口,在本申请后续的应用中可以作为电源产生口,也可以作为时钟产生口,也可以作为数据口。用作时钟口时,可以配置不同的CLK的占空比,通过不同的占空比,可以实现从主机到从机额外信息的传输。The right channel output signal/port HPROUT of the host baseband or host audio codec 11 is generally connected to the right channel headphone interface HPR through the DC blocking capacitor inside the filtering and biasing circuit 12, and the two are directly connected directly through the wire (CLASS) -G output). Internally from the power amplifier output in the buffer 20, the input left channel digital-to-analog signal/port HPL_DAC of the power amplifier is derived from the output of the internal digital-to-analog converter. The right channel output signal/port HPROUT is traditionally used as the output port of the right channel of the audio headphone port. It can be used as a power generation port in the subsequent applications of this application, as a clock generation port, or as a data port. When used as a clock port, different duty cycles of CLK can be configured. With different duty cycles, additional information can be transferred from the master to the slave.
右声道输出信号/端口HPROUT控制方法如下:左声道数模信号/端口 HPL_DAC来自主机基带或主机音频编解码器11内部数模转换器输出的模拟信号,第零寄存器CTRL<0>为逻辑高电平,左声道数模信号/端口HPL_DAC一般经过缓冲器20内部的功率放大器驱动到缓冲器20的右声道输出信号/端口HPROUT;只要第零寄存器CTRL<0>为逻辑低电平,缓冲器20输出右声道输出信号/端口HPROUT为高阻。最后右声道输出信号/端口HPROUT经由滤波及偏置电路12输出到左声道耳机接口HPL。右声道输出信号/端口HPROUT的控制如表3所示。The right channel output signal / port HPROUT control method is as follows: left channel digital analog signal / port The HPL_DAC is derived from the analog signal output from the internal baseband or host audio codec 11 internal digital-to-analog converter. The zeroth register CTRL<0> is logic high, and the left channel digital-to-analog signal/port HPL_DAC is generally passed through the buffer 20. The power amplifier is driven to the right channel output signal/port HPROUT of the buffer 20; as long as the zeroth register CTRL<0> is logic low, the buffer 20 outputs the right channel output signal/port HPROUT to high impedance. Finally, the right channel output signal/port HPROUT is output to the left channel headphone interface HPL via the filtering and biasing circuit 12. The control of the right channel output signal/port HPROUT is shown in Table 3.
Figure PCTCN2015083180-appb-000003
Figure PCTCN2015083180-appb-000003
表3右声道输出信号/端口HPROUTTable 3 right channel output signal / port HPROUT
通过对寄存器21的输出信号,偏置输入电平BIAS_IN,左声道数模信号/端口HPL_DAC及右声道数模信号/端口HPR_DAC的不同配置,可以配置出各种数据接口。接下去,将介绍耳麦接口配置成I2C接口的实现方法,具体可参考图2。Various data interfaces can be configured by different configurations of the output signal of the register 21, the bias input level BIAS_IN, the left channel digital-to-analog signal/port HPL_DAC, and the right channel digital-to-analog signal/port HPR_DAC. Next, the implementation method of configuring the headset interface as an I2C interface will be described. For details, refer to FIG. 2 .
此时,转换模块具体为I2C转换模块,麦克风接口MIC一般经由I2C转换模块与SDA端口相连;接地口GND一般经由I2C转换模块内部导线与GND端口直接相连;左声道耳机接口HPL一般经由I2C转换模块内部的电源子模块与VDD端口相连;右声道耳机接口HPR一般经由I2C转换模块内部的时钟恢复及处理电路子模块与SCL端口相连。At this time, the conversion module is specifically an I2C conversion module, and the microphone interface MIC is generally connected to the SDA port via the I2C conversion module; the grounding port GND is generally directly connected to the GND port via the internal wire of the I2C conversion module; the left channel headphone interface HPL is generally converted via I2C. The power submodule inside the module is connected to the VDD port; the right channel headphone interface HPR is generally connected to the SCL port via the clock recovery and processing circuit sub-module inside the I2C conversion module.
偏置输入电平BIAS_IN配置成逻辑低电平。The bias input level BIAS_IN is configured to a logic low level.
配置第二寄存器CTRL<2>为逻辑高电平,那么经缓冲器20后麦克风偏置电平MIC_BIAS输出逻辑低电平,再经滤波及偏置电路12后经电阻 R3与滤波及偏置电路12内的电阻分压在滤波及偏置电路12的麦克风接口MIC得到逻辑低电平(选取合适的电阻比例来实现)。最后逻辑低电平经由I2C转换模块传达到SDA端口。配置第二寄存器CTRL<2>为逻辑低电平,由以上信号路径,在SDA端口得到一个等效开漏的逻辑高电平(因为电阻R3到VDD端口的上拉)。这是I2C接口的典型的SDA端口。The second register CTRL<2> is configured to be a logic high level, and then the microphone bias level MIC_BIAS is outputted to a logic low level via the buffer 20, and then filtered and biased through the resistor 12 The resistor divider in R3 and filter and bias circuit 12 is at a logic low level (selecting a suitable resistor ratio) at the microphone interface MIC of filter and bias circuit 12. The last logic low level is communicated to the SDA port via the I2C conversion module. The second register CTRL<2> is configured to be logic low. From the above signal path, an equivalent open-drain logic high level is obtained at the SDA port (because the resistor R3 is pulled up to the VDD port). This is the typical SDA port for the I2C interface.
配置第一寄存器CTRL<1>为逻辑高电平,配置右声道数模信号/端口HPR_DAC为交流信号(对应右声道输出信号/端口HPROUT有隔直电容)或配置右声道数模信号/端口HPR_DAC为直流高电平(对应右声道输出信号/端口HPROUT为CLASS-G输出)。右声道数模信号/端口HPR_DAC经缓冲器20中的功率放大器到达右声道输出信号/端口HPROUT,右声道输出信号/端口HPROUT经过滤波及偏置电路12隔离或直接到达左声道耳机接口HPL,左声道耳机接口HPL经过I2C转换模块内部的电源子模块(如果是CLASS-G输出,那么可以用导线直接替换电源模块)把来自左声道耳机接口HPL的电能输出到VDD端口。Configure the first register CTRL<1> to be logic high, configure the right channel digital-to-analog signal/port HPR_DAC to be an AC signal (corresponding to the right channel output signal/port HPROUT has a DC blocking capacitor) or configure the right channel digital-to-analog signal. / Port HPR_DAC is DC high level (corresponding to the right channel output signal / port HPROUT is CLASS-G output). The right channel digital-to-analog signal/port HPR_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 or directly to the left channel earphone The interface HPL, the left channel headphone interface HPL passes through the power submodule inside the I2C conversion module (if the CLASS-G output can directly replace the power module with a wire), the power from the left channel headphone interface HPL is output to the VDD port.
对应右声道输出信号/端口HPROUT有隔直电容,配置第零寄存器CTRL<0>为逻辑高电平,配置右声道数模信号/端口HPR_DAC为交流时钟信号(周期信号)。右声道数模信号/端口HPR_DAC经缓冲器20中的功率放大器到达右声道输出信号/端口HPROUT,右声道输出信号/端口HPROUT经过滤波及偏置电路12隔离到达右声道耳机接口HPR,右声道耳机接口HPR经过I2C转换模块内部的时钟恢复及处理电路子模块把来自右声道耳机接口HPR的时钟输出到SCL端口,使之成为符合I2C标准的时钟信号。Corresponding to the right channel output signal / port HPROUT has a DC blocking capacitor, configure the zeroth register CTRL<0> to be a logic high level, and configure the right channel digital-to-analog signal/port HPR_DAC to be an AC clock signal (periodic signal). The right channel digital-to-analog signal/port HPR_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 to the right channel headphone interface HPR The right channel headphone interface HPR outputs the clock from the right channel headphone interface HPR to the SCL port through the clock recovery and processing circuit sub-module inside the I2C conversion module, making it a clock signal conforming to the I2C standard.
对应右声道输出信号/端口HPROUT无隔直电容(CLASS-G输出),那么从右声道输出信号/端口HPROUT到SCL端口直接导线相连。配置第零寄存器CTRL<0>为逻辑高电平,配置右声道数模信号/端口HPR_DAC为逻 辑低电平,那么,SCL端口信号为逻辑低电平。配置第零寄存器CTRL<0>为逻辑低电平,那么SCL端口得到一个等效开漏的逻辑高电平(因为电阻R2到VDD端口的上拉)。这是I2C接口的典型的时钟接口。可以配置不同的CLK的占空比,通过不同的占空比,可以实现从主机到从机额外信息的传输。Corresponding to the right channel output signal / port HPROUT without DC blocking capacitor (CLASS-G output), then direct wire connection from the right channel output signal / port HPROUT to the SCL port. Configure the zeroth register CTRL<0> to be logic high and configure the right channel digital-to-analog signal/port HPR_DAC to be logic The low level, then, the SCL port signal is logic low. Configure the zeroth register CTRL<0> to be logic low, then the SCL port gets an equivalent open-drain logic high (because the resistor R2 is pulled up to the VDD port). This is a typical clock interface for the I2C interface. Different CLK duty cycles can be configured, and different information can be transferred from the master to the slave through different duty cycles.
在数据总线上(即VDD端口、SDA端口、SCL端口和GND端口)可以挂一堆I2C接口的设备,如陀螺仪、加速度计、温度计、压力计等。On the data bus (ie VDD port, SDA port, SCL port and GND port), you can hang a bunch of I2C interface devices such as gyroscopes, accelerometers, thermometers, pressure gauges, etc.
接下去,将介绍耳麦接口配置成SPI接口的实现方法,具体可参考图3。Next, the implementation method of configuring the headset interface as an SPI interface will be described. For details, refer to FIG. 3.
此时,转换模块具体为SPI转换模块,麦克风接口MIC一般经由SPI转换模块与MISO端口相连;接地口GND一般经由SPI转换模块内部导线与GND端口直接相连;左声道耳机接口HPL一般经由SPI转换模块内部的电源模块及时钟电路模块及占空比解码模块相应与VDD、CLK及CS端口相连;右声道耳机接口HPR一般经由SPI转换模块内部的电路模块与MOSI端口相连。At this time, the conversion module is specifically an SPI conversion module, and the microphone interface MIC is generally connected to the MISO port via the SPI conversion module; the grounding port GND is generally directly connected to the GND port via the internal wire of the SPI conversion module; the left channel headphone interface HPL is generally converted via SPI. The power module and the clock circuit module and the duty cycle decoding module inside the module are connected to the VDD, CLK and CS ports respectively; the right channel headphone interface HPR is generally connected to the MOSI port via the circuit module inside the SPI conversion module.
配置第二寄存器CTRL<2>为逻辑低电平,那么经缓冲器20后麦克风偏置电平MIC_BIAS输出高阻。MISO端口与麦克风接口MIC直连,从SPI从机来的数据经由滤波及偏置电路12内部的电容耦合到麦克风输入信号/端口MICIN,经缓冲器20内的PGA到达麦克风模数信号/端口MIC_ADC,这样就配置了一个SPI主机端数据输入通道。The second register CTRL<2> is configured to be a logic low level, and then the microphone bias level MIC_BIAS outputs a high impedance via the buffer 20. The MISO port is directly connected to the microphone interface MIC, and the data from the SPI slave is coupled to the microphone input signal/port MICI via the capacitance inside the filter and bias circuit 12, and reaches the microphone analog signal/port MIC_ADC via the PGA in the buffer 20. This configures an SPI host side data input channel.
配置第一寄存器CTRL<1>为逻辑高电平,配置左声道数模信号/端口HPL_DAC为交流信号。左声道数模信号/端口HPL_DAC经缓冲器20中的功率放大器到达右声道输出信号/端口HPROUT,右声道输出信号/端口HPROUT经过滤波及偏置电路12隔离或直接到达左声道耳机接口HPL,左 声道耳机接口HPL经过SPI转换模块内部的电源模块把来自左声道耳机接口HPL的电能输出到VDD端口,同时左声道耳机接口HPL经过SPI转换模块内部的时钟恢复模块把来自左声道耳机接口HPL的时钟信息输出到CLK端口,同时配置左声道数模信号/端口HPL_DAC交流时钟信号的占空比,利用SPI转换模块内部的占空比解码电路把占空比信号解码成CS<N-1:0>的N位SPI片选信号,这样就配置了SPI的VDD、CLK及CS<N-1:0>端口。The first register CTRL<1> is configured to be a logic high level, and the left channel digital-to-analog signal/port HPL_DAC is configured as an alternating current signal. The left channel digital-to-analog signal/port HPL_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the right channel output signal/port HPROUT is isolated by the filtering and biasing circuit 12 or directly to the left channel earphone Interface HPL, left The channel headphone interface HPL outputs the power from the left channel headphone interface HPL to the VDD port through the power module inside the SPI conversion module, while the left channel headphone interface HPL passes the clock recovery module inside the SPI conversion module to the left channel earphone. The clock information of the interface HPL is output to the CLK port, and the duty ratio of the left channel digital-to-analog signal/port HPL_DAC AC clock signal is configured, and the duty cycle signal is decoded into CS<N by the duty ratio decoding circuit inside the SPI conversion module. The N-bit SPI chip select signal of -1:0> configures the VDD, CLK, and CS<N-1:0> ports of the SPI.
对应右声道输出信号/端口HPROUT有隔直电容或无隔直电容(CLASS-G输出),配置第零寄存器CTRL<0>为逻辑高电平,配置右声道数模信号/端口HPR_DAC为SPI主机端待发送的数据。左声道数模信号/端口HPL_DAC经缓冲器20中的功率放大器到达右声道输出信号/端口HPROUT,左声道输出信号/端口HPLOUT经过滤波及偏置电路12到达右声道耳机接口HPR,右声道耳机接口HPR经过SPI转换模块内部的电路模块把来自右声道耳机接口HPR的数据输出到MOSI端口,这样就配置了一个SPI主机端数据输出通道。Corresponding to the right channel output signal / port HPROUT has DC blocking capacitor or no DC blocking capacitor (CLASS-G output), configure the zeroth register CTRL<0> to logic high level, configure the right channel digital-to-analog signal/port HPR_DAC to Data to be sent on the SPI host. The left channel digital-to-analog signal/port HPL_DAC reaches the right channel output signal/port HPROUT via the power amplifier in the buffer 20, and the left channel output signal/port HPLOUT passes through the filtering and biasing circuit 12 to the right channel headphone interface HPR. The right channel headphone interface HPR outputs the data from the right channel headphone interface HPR to the MOSI port through the circuit module inside the SPI conversion module, thus configuring an SPI host side data output channel.
在SPI数据总线上(即VDD端口、MISO端口、MOSI端口、CLK端口、CS<N-1:0>端口和GND端口)可以挂一堆SPI接口的设备,如陀螺仪、加速度计、温度计、压力计等。On the SPI data bus (ie VDD port, MISO port, MOSI port, CLK port, CS<N-1:0> port and GND port), you can hang a bunch of SPI interface devices such as gyroscopes, accelerometers, thermometers, Pressure gauges, etc.
综上可见,在本发明实施例提供的耳麦接口控制系统及耳麦接口控制方法中,通过控制器配置缓冲器的输入信号,可以对耳麦接口进行配置,从而通过耳麦接口可以实现主机与多种设备连接,使得耳麦接口的功能多样化。In summary, in the headset interface control system and the headset interface control method provided by the embodiments of the present invention, the headset interface can be configured by configuring the input signal of the buffer, so that the host and the multiple devices can be implemented through the headset interface. The connection makes the functions of the headset interface diversified.
上述描述仅是对本发明较佳实施例的描述,并非对本发明范围的任何限定,本发明领域的普通技术人员根据上述揭示内容做的任何变更、修饰,均属于权利要求书的保护范围。 The above description is only for the description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes and modifications made by those skilled in the art in light of the above disclosure are all within the scope of the appended claims.

Claims (17)

  1. 一种耳麦接口控制系统,其特征在于,包括:主机控制器,耳麦接口以及从机转换模块,其中,所述主机控制器配置所述耳麦接口,所述从机转换模块与所述耳麦接口相连,将所述耳麦接口上的信号转换成总线信号。A headset interface control system, comprising: a host controller, a headset interface, and a slave conversion module, wherein the host controller configures the headset interface, and the slave conversion module is connected to the headset interface Transmitting the signal on the headset interface into a bus signal.
  2. 如权利要求1所述的耳麦接口控制系统,其特征在于,还包括:与所述主机控制器连接的主机基带或主机音频编解码器、以及与所述主机基带或主机音频编解码器连接的滤波及偏置电路,其中,所述主机基带或主机音频编解码器包括缓冲器及与所述缓冲器连接的寄存器,所述耳麦接口设置于所述滤波及偏置电路上。The headset interface control system of claim 1 further comprising: a host baseband or host audio codec coupled to said host controller, and coupled to said host baseband or host audio codec And a filter and bias circuit, wherein the host baseband or host audio codec includes a buffer and a register coupled to the buffer, the headset interface being disposed on the filtering and biasing circuit.
  3. 如权利要求1所述的耳麦接口控制系统,其特征在于,所述耳麦接口包括麦克风接口、接地口、左声道耳机接口及右声道耳机接口。The headset interface control system according to claim 1, wherein the headset interface comprises a microphone interface, a grounding port, a left channel earphone interface, and a right channel earphone interface.
  4. 如权利要求1所述的耳麦接口控制系统,其特征在于,所述从机转换模块将所述耳麦接口上的信号转换成I2C总线信号或者SPI总线信号。The headset interface control system of claim 1 wherein said slave conversion module converts a signal on said headset interface into an I2C bus signal or an SPI bus signal.
  5. 一种耳麦接口控制方法,其特征在于,包括:A headset interface control method, comprising:
    主机控制器配置耳麦接口上的信号;The host controller configures a signal on the headset interface;
    从机转换模块将耳麦接口上的信号转换成总线信号。The slave conversion module converts the signal on the headset interface into a bus signal.
  6. 如权利要求5所述的耳麦接口控制方法,其特征在于,所述主机控制器配置耳麦接口上的信号包括:The headset interface control method according to claim 5, wherein the signal configured on the headset interface by the host controller comprises:
    主机控制器配置缓冲器的输入信号;The host controller configures an input signal of the buffer;
    缓冲器输出信号至滤波及偏置电路;Buffer output signal to the filtering and biasing circuit;
    滤波及偏置电路输出信号。Filter and bias circuit output signals.
  7. 如权利要求6所述的耳麦接口控制方法,其特征在于,主机控制器配置缓冲器的输入信号包括:The headset interface control method according to claim 6, wherein the input signal of the host controller configuring the buffer comprises:
    主机控制器配置寄存器的输出信号以及偏置输入电平、左声道数模信 号和右声道数模信号。Output signal of the host controller configuration register and offset input level, left channel digital analog Number and right channel digital-to-analog signals.
  8. 如权利要求7所述的耳麦接口控制方法,其特征在于,寄存器的输出信号包括:第零寄存器为逻辑高电平或者逻辑低电平、第一寄存器为逻辑高电平或者逻辑低电平、或者第二寄存器为逻辑高电平或者逻辑低电平。The headset interface control method according to claim 7, wherein the output signal of the register comprises: the zeroth register is a logic high level or a logic low level, and the first register is a logic high level or a logic low level, Or the second register is logic high or logic low.
  9. 如权利要求7所述的耳麦接口控制方法,其特征在于,偏置输入电平包括:逻辑高电平或者逻辑低电平。The headset interface control method according to claim 7, wherein the bias input level comprises: a logic high level or a logic low level.
  10. 如权利要求7所述的耳麦接口控制方法,其特征在于,左声道数模信号包括:数字信号或者模拟信号。The headset interface control method according to claim 7, wherein the left channel digital-to-analog signal comprises: a digital signal or an analog signal.
  11. 如权利要求7所述的耳麦接口控制方法,其特征在于,右声道数模信号包括:数字信号或者模拟信号。The headset interface control method according to claim 7, wherein the right channel digital-to-analog signal comprises: a digital signal or an analog signal.
  12. 如权利要求7所述的耳麦接口控制方法,其特征在于,缓冲器输出信号至滤波及偏置电路包括:The headset interface control method according to claim 7, wherein the buffer output signal to the filtering and biasing circuit comprises:
    缓冲器输出麦克风偏置电平、左声道输出信号及右声道输出信号至滤波及偏置电路。The buffer outputs a microphone bias level, a left channel output signal, and a right channel output signal to the filtering and biasing circuit.
  13. 如权利要求12所述的耳麦接口控制方法,其特征在于,麦克风偏置电平包括:低阻高电平、逻辑低电平或者高阻。The headset interface control method according to claim 12, wherein the microphone bias level comprises: a low resistance high level, a logic low level or a high resistance.
  14. 如权利要求12所述的耳麦接口控制方法,其特征在于,左声道输出信号包括:经过缓冲的左声道数模信号或者高阻。The headset interface control method according to claim 12, wherein the left channel output signal comprises: a buffered left channel digital-to-analog signal or a high impedance.
  15. 如权利要求12所述的耳麦接口控制方法,其特征在于,右声道输出信号包括:经过缓冲的右声道数模信号或者高阻。The headset interface control method according to claim 12, wherein the right channel output signal comprises: a buffered right channel digital-to-analog signal or a high impedance.
  16. 如权利要求7所述的耳麦接口控制方法,其特征在于,当将耳麦接口配置成I2C接口时,主机控制器配置缓冲器的输入信号包括:The headset interface control method according to claim 7, wherein when the headset interface is configured as an I2C interface, the input signal of the host controller configuration buffer includes:
    配置第二寄存器为逻辑高电平;配置第一寄存器为逻辑高电平,配置左声道数模信号为交流信号或者直流高电平;配置第零寄存器为逻辑高电平,配置右声道数模信号为交流时钟信号或者逻辑低电平。 Configuring the second register to be a logic high level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal or a DC high level; configuring the zeroth register to a logic high level, configuring the right channel The digital-to-analog signal is an AC clock signal or a logic low level.
  17. 如权利要求7所述的耳麦接口控制方法,其特征在于,当将耳麦接口配置成SPI接口时,主机控制器配置缓冲器的输入信号包括:The headset interface control method according to claim 7, wherein when the headset interface is configured as an SPI interface, the input signal of the host controller configuration buffer includes:
    配置第二寄存器为逻辑低电平;配置第一寄存器为逻辑高电平,配置左声道数模信号为交流信号;配置第零寄存器为逻辑高电平,配置右声道数模信号为待发送数据。 Configuring the second register to be a logic low level; configuring the first register to be a logic high level, configuring the left channel digital-to-analog signal to be an AC signal; configuring the zeroth register to a logic high level, configuring the right channel digital-to-analog signal to be send data.
PCT/CN2015/083180 2014-07-04 2015-07-02 Headset interface control system and headset interface control method WO2016000639A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410317921.0A CN105282639B (en) 2014-07-04 2014-07-04 Earphone microphone interface control system and earphone microphone interface control method
CN201410317921.0 2014-07-04

Publications (1)

Publication Number Publication Date
WO2016000639A1 true WO2016000639A1 (en) 2016-01-07

Family

ID=55018473

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/083180 WO2016000639A1 (en) 2014-07-04 2015-07-02 Headset interface control system and headset interface control method

Country Status (2)

Country Link
CN (1) CN105282639B (en)
WO (1) WO2016000639A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106101903B (en) * 2016-08-09 2022-07-01 杭州纳雄科技有限公司 Digital headset, headset system and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853733B1 (en) * 2003-06-18 2005-02-08 National Semiconductor Corporation Two-wire interface for digital microphones
CN202167034U (en) * 2011-07-19 2012-03-14 深圳市江波龙电子有限公司 Peripheral application device and mobile terminal system
CN102427569A (en) * 2011-12-20 2012-04-25 杭州硅星科技有限公司 Headset interface and GPIO (General Purpose Input/Output) interface multiplex circuit structure
CN102857631A (en) * 2012-07-31 2013-01-02 上海天臣防伪技术股份有限公司 Method and system for reading RFID (Radio Frequency Identification)/NFC (Near Field Communication) tag by earphone jack of mobile phone
CN203133830U (en) * 2013-03-25 2013-08-14 北京展芯智源信息技术有限公司 External interface equipment and signal transmission system based on earphone passage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102395084B (en) * 2011-11-11 2014-05-14 杭州硅星科技有限公司 Headset circuit

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6853733B1 (en) * 2003-06-18 2005-02-08 National Semiconductor Corporation Two-wire interface for digital microphones
CN202167034U (en) * 2011-07-19 2012-03-14 深圳市江波龙电子有限公司 Peripheral application device and mobile terminal system
CN102427569A (en) * 2011-12-20 2012-04-25 杭州硅星科技有限公司 Headset interface and GPIO (General Purpose Input/Output) interface multiplex circuit structure
CN102857631A (en) * 2012-07-31 2013-01-02 上海天臣防伪技术股份有限公司 Method and system for reading RFID (Radio Frequency Identification)/NFC (Near Field Communication) tag by earphone jack of mobile phone
CN203133830U (en) * 2013-03-25 2013-08-14 北京展芯智源信息技术有限公司 External interface equipment and signal transmission system based on earphone passage

Also Published As

Publication number Publication date
CN105282639B (en) 2019-07-23
CN105282639A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
KR101141268B1 (en) Apparatus and method for enabling digital and analog data communication over a data bus
WO2020063594A1 (en) Audio playback circuit and terminal
US20130058495A1 (en) System and A Method For Streaming PDM Data From Or To At Least One Audio Component
KR101732295B1 (en) Methods and apparatus for multi-drop digital bus
Lewis Analog and digital MEMS microphone design considerations
US8558577B1 (en) Systems and methods for bidirectional signal separation
US10645553B2 (en) Method and apparatus for processing signal in a mobile device
US10013378B2 (en) ASIC chip system dedicated for optical three-dimensional sensing
US20170195778A1 (en) Method and apparatus for being compatible with forward insertion and inverted insertion of analog earphone
EP3782033B1 (en) Digital identification of devices attached to serial communication cables
WO2016000639A1 (en) Headset interface control system and headset interface control method
US9685136B2 (en) Display system and conversion apparatus
WO2013091516A1 (en) Earphone interface and gpio interface multiplexing circuit structure
CN105991100A (en) Signal amplifying circuit
CN107809702B (en) Signal output circuit
EP2670166A1 (en) Combo-jack detecting circuit
TWI683219B (en) A Biphase Mark Coding Transmitter
JP2017530607A (en) Phase noise reduction technology for quartz crystal circuits
Lewis Common inter-IC digital interfaces for audio data transfer
US8565907B2 (en) Audio mixing device and method
US9794665B2 (en) System and method for a transducer interface
US9213761B1 (en) Electronic systems and methods for integrated, automatic, medium-quality audio
US8199797B2 (en) Transceiving apparatus and transceiving system of low turn-around voltage
TW201430576A (en) Electronic device
US20130236026A1 (en) Circuit capable of reducing audio interference

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15815978

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15815978

Country of ref document: EP

Kind code of ref document: A1