Electronic devices
By using an expansion chip with analog-to-digital conversion and digital-to-analog conversion functions, I2S signal expansion is solved based on the analog function of the processor, and the problems of poor expansion compatibility and complex circuits in the prior art are solved, and the circuit design is simple, low cost and low software configuration pressure are achieved.
Patent Information
- Application Number
- CN201810859660.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-07-31
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2038-07-31
AI Technical Summary
When the prior art expands the I2S interface to meet the access needs of multiple peripherals, poor compatibility, data blocking and other problems, and the use of multiple chip solutions leads to complex circuit design, high cost and high software configuration pressure.
Using an expansion chip with both analog-to-digital conversion function and digital-to-analog conversion function, I2S signal expansion is performed based on the processor's analog function, and multiple signal expansion is achieved by flexibly configuring the branch working state.
It achieves the effect of simple circuit design, low cost and low software configuration pressure, overcomes problems such as poor compatibility and data blocking, and improves the flexibility and efficiency of the system.
Smart Images

Figure CN110781113B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and more particularly, to an electronic device. Background Art
[0002] At present, there are more and more smart electronic products, and the audio playback function and microphone recording function in smart electronic products have gradually formed standards, and these functions require audio interfaces to transmit data. In order to make the audio interface simpler and more universal, these functional peripherals generally choose digital I2S signals as the standard, but in application scenarios involving multiple peripherals, the I2S interface of the central processor may not meet the access requirements of all peripherals, so it is necessary to expand the I2S interface to meet the access requirements of multiple peripherals.
[0003] In this regard, several expansion solutions are provided in the relevant technology:
[0004] For example, using a dedicated I2S expansion chip, one I2S signal is first expanded into several I2S signals, and then connected to multiple peripherals. Among them, the signals from multiple peripherals need to be uniformly encoded before they can be sent to the central processing unit.
[0005] For another example, using the analog-to-digital conversion chip and the digital-to-analog conversion chip and the analog function of the central processing unit, the specific processing flow is as follows: first, the analog-to-digital conversion chip converts the analog audio signal of the central processing unit into a digital signal and sends it to the peripheral device, while obtaining the digital audio signal from the peripheral device, and then the digital-to-analog conversion chip converts the obtained digital audio signal into an analog signal and sends it to the central processing unit.
[0006] In the process of implementing the concept of the present disclosure, the inventors found that there are at least the following problems in the related art:
[0007] When using a dedicated I2S expansion chip, multiple signals need to be synthesized into one signal. Since the encoding formats of multiple peripherals may be inconsistent, the compatibility is poor. In addition, if several peripherals work at the same time and the amount of peripheral data is too large, data blocking will occur after synthesizing one signal, causing data interruption and jamming.
[0008] The combination of a digital-to-analog conversion chip and an analog-to-digital conversion chip has the disadvantages of complex circuit design and high cost. Controlling the encoding and decoding of the two chips at the same time requires matching time, which increases the pressure on software configuration. Summary of the invention
[0009] In view of this, the present disclosure provides an electronic device.
[0010] The present disclosure provides an electronic device, comprising: a processor having a first analog input terminal and a first analog output terminal; an expansion chip having a digital-to-analog conversion module and an analog-to-digital conversion module, wherein the digital-to-analog conversion module has a second analog output terminal and a first digital input terminal, and the analog-to-digital conversion module has a second analog input terminal and a first digital output terminal; a digital peripheral having a second digital input terminal and a second digital output terminal, wherein the second digital output terminal is connected to the first digital input terminal and the second analog output terminal is connected to the first analog input terminal to form a first branch, and the first analog output terminal is connected to the second analog input terminal and the first digital output terminal is connected to the second digital input terminal to form a second branch.
[0011] According to an embodiment of the present disclosure, only the first branch is in working state; or only the second branch is in working state; or the first branch and the second branch can form a first loop and are in working state at the same time.
[0012] According to an embodiment of the present disclosure, the electronic device further includes: an analog peripheral having a third analog input terminal and a third analog output terminal; the processor further having a third digital input terminal and a third digital output terminal, wherein the third digital output terminal is connected to the first digital input terminal and the second analog output terminal is connected to the third analog input terminal to form a third branch, and the third analog output terminal is connected to the second analog input terminal and the first digital output terminal is connected to the third digital input terminal to form a fourth branch.
[0013] According to an embodiment of the present disclosure, only the third branch is in working state; or only the fourth branch is in working state; or the third branch and the fourth branch can form a second loop and are in working state at the same time.
[0014] According to an embodiment of the present disclosure, when the above-mentioned digital peripherals are in a working state, the above-mentioned analog peripherals are in a non-working state; or when the above-mentioned analog peripherals are in a working state, the above-mentioned digital peripherals are in a non-working state; or the above-mentioned digital peripherals and the above-mentioned analog peripherals can be in a working state at the same time.
[0015] According to an embodiment of the present disclosure, the above-mentioned analog peripherals include headphones, a microphone and a speaker.
[0016] According to an embodiment of the present disclosure, the digital peripheral device includes Bluetooth having a digital interface.
[0017] According to an embodiment of the present disclosure, the above-mentioned extension chip includes an audio codec chip.
[0018] According to an embodiment of the present disclosure, the audio codec chip includes a controller for controlling the working states of the digital-to-analog conversion module and the analog-to-digital conversion module in the audio codec chip.
[0019] According to an embodiment of the present disclosure, the above-mentioned processor includes: an audio codec module, which is used to: convert the audio data stream in the above-mentioned processor into a corresponding analog signal and output it through the above-mentioned first analog output terminal; and / or convert the analog signal input into the above-mentioned processor through the above-mentioned first analog input terminal into a corresponding audio data stream.
[0020] According to the embodiments of the present disclosure, since an expansion chip having both analog-to-digital conversion function and digital-to-analog conversion function is used to perform I2S signal expansion based on the analog function of the processor, the technical problems of complex circuit design, high cost and high software configuration pressure caused by the use of two or even more chips for 2S signal expansion in the related art are at least partially overcome, thereby achieving the technical effect of simple circuit design, low cost and low software configuration pressure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0022] Figure 1 The application scenario of the electronic device according to the embodiment of the present disclosure is schematically shown;
[0023] Figure 2 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 3 A block diagram schematically shows an electronic device according to another embodiment of the present disclosure;
[0025] Figure 4 A block diagram schematically shows an electronic device according to another embodiment of the present disclosure;
[0026] Figure 5 A block diagram schematically shows an electronic device according to another embodiment of the present disclosure;
[0027] Figure 6 A block diagram schematically shows an audio codec chip according to an embodiment of the present disclosure; and
[0028] Figure 7 The block diagram schematically shows a processor according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0032] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). Those skilled in the art should also understand that any transitional conjunctions and / or phrases that substantially indicate two or more optional items, whether in the specification, claims, or drawings, should be understood to give the possibility of including one of these items, either of these items, or both of these items. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B", or "A and B".
[0033] An embodiment of the present disclosure provides an electronic device. The electronic device includes a processor having a first analog input terminal and a first analog output terminal; an expansion chip having a digital-to-analog conversion module and an analog-to-digital conversion module, wherein the digital-to-analog conversion module has a second analog output terminal and a first digital input terminal, and the analog-to-digital conversion module has a second analog input terminal and a first digital output terminal; a digital peripheral having a second digital input terminal and a second digital output terminal, wherein the second digital output terminal is connected to the first digital input terminal and the second analog output terminal is connected to the first analog input terminal to form a first branch, and the first analog output terminal is connected to the second analog input terminal and the first digital output terminal is connected to the second digital input terminal to form a second branch.
[0034] Figure 1 The application scenario of the electronic device according to the embodiment of the present disclosure is schematically shown. Figure 1 As shown, the electronic device includes a processor (which may be a central processing unit) and peripherals, wherein the processor needs to have an analog port, that is, an analog functional module, and the peripherals are digital peripherals with a digital audio interface, such as digital Bluetooth, more specifically Bluetooth headphones and Bluetooth speakers.
[0035] Since the analog interface of the processor cannot directly communicate with the digital audio interface of the peripheral device, it is necessary to expand the analog interface of the processor into a digital interface, such as a digital interface of the I2S bus protocol.
[0036] Among them, the I2S (Inter-IC Sound) bus, also known as the integrated circuit built-in audio bus, is a bus standard developed for audio data transmission between digital audio devices. This bus is specifically used for data transmission between audio devices and is widely used in various multimedia systems.
[0037] It should be understood that Figure 1 The examples shown are merely scenarios in which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.
[0038] Figure 2 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown.
[0039] like Figure 2 As shown, the electronic device 100 includes a processor 101 , an expansion chip 102 and a digital peripheral 103 .
[0040] The processor 101 has a first analog input terminal IO 11 and the first analog output IO 12 .
[0041] That is, in the embodiment of the present disclosure, the processor 101 may be a central processing unit, and needs to have an analog function module, which includes two analog ports, namely, a first analog input terminal IO 11 and the first analog output IO 12 .
[0042] Furthermore, it should be understood that in the embodiment of the present disclosure, the processor 101 may include a digital function module in addition to the analog function module, and the digital function module includes one or more digital ports, which is not limited here.
[0043] In addition, a processor can be a very large-scale integrated circuit, which is the computing core (Core) and control core (Control Unit) of an electronic device such as a computer, mobile phone, tablet, etc. Its main function is to interpret instructions and data in the processor software.
[0044] The expansion chip 102 has a digital-to-analog conversion module D / A and an analog-to-digital conversion module A / D, wherein the digital-to-analog conversion module D / A has a second analog output terminal IO 14 and the first digital input terminal IO 21 The analog-to-digital conversion module A / D has a second analog input terminal IO 13 and the first digital output terminal IO 22 .
[0045] That is, in the embodiment of the present disclosure, two conversion modules are integrated in the expansion chip 102 at the same time, namely a digital-to-analog conversion module D / A and an analog-to-digital conversion module A / D.
[0046] In the embodiment of the present disclosure, the digital-to-analog conversion module A / D can be used to convert an analog audio signal into a digital audio signal, and the digital-to-analog conversion module D / A can be used to convert a digital audio signal into an analog audio signal.
[0047] Furthermore, digital audio signals include I2S signals, and analog audio signals are (Audio) regular sound waves with voice, music and sound effects, with frequency and amplitude changes. According to the characteristics of the sound waves, audio information can be classified into regular audio and irregular audio.
[0048] The digital peripheral 103 has a second digital input terminal IO 23 and the second digital output terminal IO 24 , wherein the second digital output terminal IO 24 The first digital input terminal IO 21 The second analog output terminal IO 14 The first analog input terminal IO 11 The first analog output terminal IO12 The second analog input terminal IO 13 The first digital output terminal IO 22 The second digital input terminal IO 23 connected to form a second branch.
[0049] Among them, for a product or system, it can generally include the main control and chips or modules that perform special functions. These chips or modules are called peripherals. Peripherals with digital interfaces such as digital input and digital output are called digital peripherals, and peripherals with analog interfaces such as analog input and analog output are called analog peripherals.
[0050] Through the embodiments of the present disclosure, since an expansion chip having both analog-to-digital conversion function and digital-to-analog conversion function is used to perform 12S signal expansion based on the analog function of the processor, the technical problems of complex circuit design, high cost and high software configuration pressure caused by the use of two or even more chips for 2S signal expansion in the related art are at least partially overcome, thereby achieving the technical effect of simple circuit design, low cost and low software configuration pressure.
[0051] Reference below Figure 3 to Figure 7 , combined with specific embodiments Figure 2 The electronic device shown is further described.
[0052] As an optional embodiment, for the first branch and the second branch, the working mode of the electronic device can be flexibly configured, that is, the working states of the first branch and the second branch in the electronic device can be flexibly configured, for example, the electronic device can be configured so that only the first branch is in a working state; or only the second branch is in a working state; or the electronic device can be configured so that the first branch and the second branch can form a first loop and are in a working state at the same time.
[0053] Among them, in the first branch (also called the upstream branch), the data flow flows from the digital peripherals via the expansion chip to the processor, and in the second branch (also called the downstream branch), the direction of the data flow is just the opposite, that is, the data flow flows from the processor via the expansion chip to the digital peripherals.
[0054] The following uses a mobile phone as an example to explain in detail the working principles of the corresponding branches in each working mode.
[0055] Example 1, if the mobile phone is configured in digital recording mode, the first branch, ie, the uplink branch, works, while the second branch, ie, the downlink branch, does not work.
[0056] Specifically, Figure 2 and Figure 3As shown, during the recording process, the digital peripheral 103 first converts the collected analog audio signal into a digital audio signal and encodes it according to a predetermined fixed format, and then outputs the digital audio signal to the second digital output terminal IO 24 The encoded digital audio signal is output and then transmitted through the first digital input terminal IO of the expansion chip 102. 21 (i.e. the first digital input terminal IO of the digital-to-analog conversion module D / A 21 ) is input into the digital-to-analog conversion module D / A, and then the digital-to-analog conversion module D / A decodes the digital audio signal according to the predetermined fixed format, and converts the decoded digital audio signal into an analog audio signal, and outputs the digital audio signal to the second analog output terminal IO of the expansion chip 102. 14 (i.e. the second analog output terminal IO of the digital-to-analog conversion module D / A 14 ) is output, and then through the first analog input terminal IO of the processor 101 11 The input processor 101 is used to implement the recording function.
[0057] Through this example, since the expansion chip 102 has both analog output and digital input functions, the expansion chip 102 is used as a bridge between the processor 101 and the digital peripheral 103, so that the purpose of digital audio expansion based on the analog function of the processor 101 can be achieved, and compared with the use of analog peripherals, the use of digital peripherals for recording has a stronger anti-interference ability. In addition, through the embodiment of the present disclosure, not only can an I2S signal be added, but also because the codec format of the expansion chip is configurable, the flexibility of the system in connecting digital peripherals can be increased.
[0058] Example 2: If the mobile phone is configured in digital audio playback mode, the downlink branch works but the uplink branch does not work.
[0059] Specifically, Figure 2 and Figure 3 As shown, during the audio playback process, the processor 101 first converts the audio data stream into an analog audio signal and encodes it according to a predetermined fixed format, and then outputs the analog audio signal to the first analog output terminal IO of the processor 101. 12 output, and then through the second analog input terminal IO of the expansion module 102 13 (i.e. the second analog input terminal IO of the analog-to-digital conversion module A / D 13 ) is input into the analog-to-digital conversion module A / D, and then the analog-to-digital conversion module A / D decodes the decoded analog audio signal according to a predetermined fixed format and converts the decoded analog audio signal into a digital audio signal, and outputs the decoded analog audio signal to the first digital output terminal IO of the expansion chip 102. 22 (i.e. the first digital output terminal IO of the analog-to-digital conversion module A / D 22 ) is output and output through the second digital input terminal IO of the digital peripheral 103 23The digital peripheral device 103 is input to realize the music playing function.
[0060] Through this example, since the expansion chip 102 has both analog input and digital output functions, the expansion chip 102 is used as a bridge between the processor 101 and the digital peripheral 103, so that the purpose of digital audio expansion based on the analog function of the processor 101 can be achieved, and compared with the use of analog peripherals, the use of digital peripherals to play audio has a stronger anti-interference ability. In addition, through the embodiment of the present disclosure, not only can an I2S signal be added, but also because the codec format of the expansion chip is configurable, the flexibility of the system in connecting digital peripherals can be increased.
[0061] Example 3: If the mobile phone is configured in Bluetooth call mode, both the downlink branch and the uplink branch work.
[0062] Specifically, the uplink branch is used to collect, i.e., record the sound of the caller's own end and send it to the caller's other end. The process and principle of collecting, i.e., recording the sound of the caller's own end are similar to the recording process and principle in the recording mode in Example 1, and will not be repeated here.
[0063] In addition, the downlink branch is used to play the audio data stream from the other end of the call to the user through the call end, wherein the process and principle of playing the audio data stream on the call end are similar to the audio playback process and principle in the audio playback mode in Example 2, and will not be repeated here.
[0064] Through the embodiments of the present disclosure, the working mode of the electronic device can be flexibly configured according to the actual needs of the user to start working in different branches.
[0065] As an optional embodiment, Figure 3 As shown, the electronic device 100 further includes: an analog peripheral 104 .
[0066] The analog peripheral 104 has a third analog input terminal IO 15 and the third analog output IO 16 ; Processor 101 also has a third digital input terminal IO 25 And the third digital output IO 26 , where the third digital output terminal IO 26 The first digital input terminal IO 21 Connect the second analog output IO 14 The third analog input IO 15 Connect to form a third branch, the third analog output terminal IO 16 The second analog input IO 13 Connect and the first digital output IO 22 The third digital input terminal IO 25Connect to form a fourth branch.
[0067] That is, in the embodiment of the present disclosure, the expansion module 102 has both analog input and output terminals (such as the second analog input terminal IO 13 and the second analog output IO 14 ) and digital input and output terminals (such as the first digital input terminal IO 21 and the first digital output terminal IO 22 ).
[0068] Based on this, through the embodiments of the present disclosure, it is used as a bridge, and its analog input and output terminals can be connected to the analog port of the processor 101 for digital signal (I2S signal) expansion, and its digital input and output terminals can be connected to the digital port of the processor 101 for analog signal expansion, that is, the forward and reverse connection methods of the expansion chip can be fully utilized, so that two expansions can be realized through one chip, making the circuit structure simpler, the cost higher, and the software configuration pressure less.
[0069] As an optional embodiment, for the third branch and the fourth branch, the working mode of the electronic device can be flexibly configured, that is, the working states of the third branch and the fourth branch in the electronic device can be flexibly configured, for example, the electronic device is configured so that only the third branch is in a working state; or the electronic device is configured so that only the fourth branch is in a working state; or the electronic device is configured so that the third branch and the fourth branch can form a second loop and are in a working state at the same time.
[0070] Among them, in the fourth branch (also called the upstream branch), the data flow flows from the analog peripheral via the expansion chip to the processor, and in the third branch (also called the downstream branch), the direction of the data flow is just the opposite, that is, the data flow flows from the processor via the expansion chip to the analog peripheral.
[0071] The following uses a mobile phone as an example to explain in detail the working principles of the corresponding branches in each working mode.
[0072] Example 4, if the mobile phone is configured in analog recording mode, the fourth branch of the upstream branch works, but the third branch of the downstream branch does not work.
[0073] Specifically, Figure 3 As shown, during the recording process, the analog peripheral 104 outputs the collected analog audio signal through the third analog output terminal IO 16 output, and then through the second analog input terminal IO of the expansion chip 102 13 (i.e. the second analog input terminal IO of the analog-to-digital conversion module A / D 13 ) is input into the analog-to-digital conversion module A / D, and then the analog-to-digital conversion module A / D converts the analog audio signal into a digital audio signal, and transmits the analog audio signal to the first digital output terminal IO of the expansion chip 102. 22(i.e. the first digital output terminal IO of the analog-to-digital conversion module A / D 22 ) is output, and then the third digital input terminal IO of the processor 101 is used to input the 25 The input processor 101 is used to implement the recording function.
[0074] Through this example, since the expansion chip 102 has both analog input and digital output functions, the expansion chip 102 is used as a bridge between the processor 101 and the analog peripheral 104, so as to achieve the purpose of analog audio expansion based on the digital function of the processor 101. Compared with the use of digital peripherals, although the anti-interference ability of recording with analog peripherals is weakened, the number of data conversion times is significantly less.
[0075] Example 5, if the mobile phone is configured in analog audio playback mode, the third branch of the downlink works, but the fourth branch of the uplink does not work.
[0076] Specifically, Figure 3 As shown, during the audio playback process, the processor 101 transmits the audio data stream through the third digital output terminal IO of the processor 101. 26 output, and then through the first digital input terminal IO of the expansion module 102 21 (i.e. the first digital input terminal IO of the digital-to-analog conversion module D / A 21 ) is input into the digital-to-analog conversion module D / A, and then the digital-to-analog conversion module D / A converts the audio data stream, i.e., the digital audio signal, into an analog audio signal, and outputs the analog audio signal to the second analog output terminal IO of the expansion chip 102. 14 (i.e. the second analog output terminal IO of the digital-to-analog conversion module D / A 14 ) output, and through the third analog input terminal IO of the analog peripheral 104 15 The analog peripheral 104 is input to realize the music playing function.
[0077] Through this example, since the expansion chip 102 has both digital input and analog output functions, the expansion chip 102 is used as a bridge between the processor 101 and the analog peripheral 104, so as to achieve the purpose of analog audio expansion based on the digital function of the processor 101. Compared with using digital peripherals, although the anti-interference ability of using analog peripherals to play audio is weakened, the number of data conversion times is significantly less.
[0078] Example 6: If the mobile phone is configured in normal call mode, both the third downlink branch and the fourth uplink branch work.
[0079] Specifically, the uplink branch is used to collect or record the sound of the caller to send it to the other end of the call. The process and principle of collecting or recording the sound of the caller are similar to the recording process and principle in the recording mode in Example 4, and will not be repeated here.
[0080] In addition, the downlink branch is used to play the audio data stream from the other end of the call to the user through the call end, wherein the process and principle of playing the audio data stream on the call end are similar to the audio playback process and principle in the audio playback mode in Example 5, and will not be repeated here.
[0081] Through the embodiments of the present disclosure, the working mode of the electronic device can be flexibly configured according to the actual needs of the user to start working in different branches.
[0082] It should be understood that, for the first branch and the second branch, the electronic device is configured so that only the first branch is in working state, or only the second branch is in working state, or the electronic device is configured so that the first branch and the second branch can form a first loop and are in working state at the same time; or for the third branch and the fourth branch, the electronic device is configured so that only the third branch is in working state, or the electronic device is configured so that only the fourth branch is in working state, or the electronic device is configured so that the third branch and the fourth branch can form a second loop and are in working state at the same time. The working state of the first branch and the second branch is not affected by the working state of the third branch and the fourth branch, and similarly, the working state of the third branch and the fourth branch is not affected by the working state of the first branch and the second branch.
[0083] As an optional embodiment, the electronic device can be flexibly configured, that is, the working states of digital peripherals and analog peripherals in the electronic device can be flexibly configured. For example, the electronic device can be configured as follows: when the digital peripheral is in a working state, the analog peripheral is in a non-working state; or when the analog peripheral is in a working state, the digital peripheral is in a non-working state; or the digital peripheral and the analog peripheral can be in a working state at the same time.
[0084] For example, Figure 3 As shown, the electronic device 100 can be configured as follows: when the digital peripheral 103 is in working state, the analog peripheral 104 is in non-working state; or when the analog peripheral 104 is in working state, the digital peripheral 103 is in non-working state; or the digital peripheral 103 and the analog peripheral 104 can be in working state at the same time.
[0085] Through the embodiments of the present disclosure, the working states of digital peripherals and analog peripherals can be flexibly configured according to the actual needs of users.
[0086] As an optional embodiment, the analog peripherals include headphones, a microphone, and a speaker.
[0087] In the embodiment of the present disclosure, both the earphone and the speaker are connected through the analog input terminal (such as Figure 3 The third analog input terminal IO 15) and the second analog output terminal IO of the digital-to-analog conversion module D / A of the expansion chip 14 connect.
[0088] The working process and working principle of the earphone and the speaker are as in Example 5 and will not be described in detail here.
[0089] In addition, in the embodiment of the present disclosure, the microphone is output through the analog output terminal (such as Figure 3 The third analog output terminal IO 16 ) and the second analog input terminal IO of the analog-to-digital conversion module A / D of the expansion chip 13 connect.
[0090] The working process and working principle of the microphone are as in Example 4 and will not be described in detail here.
[0091] As an optional embodiment, the digital peripheral device includes Bluetooth with a digital interface (also referred to as digital Bluetooth).
[0092] Furthermore, Bluetooth with digital interface includes: Bluetooth headset, Bluetooth microphone and Bluetooth speaker.
[0093] In the embodiment of the present disclosure, both the Bluetooth headset and the Bluetooth speaker are connected via a digital input terminal (such as Figure 2 and Figure 3 The second digital input terminal IO 23 ) and the first digital output terminal IO of the analog-to-digital conversion module A / D of the expansion chip 22 connect.
[0094] Among them, the working process and working principle of the Bluetooth headset and the Bluetooth speaker are as shown in Example 2, which will not be repeated here.
[0095] In addition, in the embodiment of the present disclosure, the Bluetooth microphone is connected to the digital output terminal (such as Figure 2 and Figure 3 The second digital output terminal IO 24 ) and the first digital input terminal IO of the digital-to-analog conversion module D / A of the expansion chip 21 connect.
[0096] The working process and working principle of the Bluetooth microphone are as shown in Example 1 and will not be described in detail here.
[0097] As an optional embodiment, Figure 4 and Figure 5 As shown, the extension chip may include an audio codec chip 105 .
[0098] Since the audio codec chip 105 has both analog input and output functions and digital input and output functions, and can process audio data through a certain processing method.
[0099] Based on this, through the embodiments of the present disclosure, utilizing the characteristics of the audio codec chip 105 having both analog input and output functions and digital input and output functions, by connecting its analog input and output terminals to the analog port of the processor, and connecting its digital input and output terminals to the digital port of the digital peripheral, not only the purpose of expanding the I2S signal can be achieved, but also R&D costs can be saved and production efficiency can be improved. In addition, by connecting its digital input and output terminals to the digital port of the processor, and connecting its analog input and output terminals to the digital port of the analog peripheral, not only the purpose of expanding the I2S signal can be achieved, but also the purpose of expanding the analog audio signal can be achieved, killing two birds with one stone.
[0100] Specifically, in order to adapt to audio devices, the audio codec chip integrates analog audio input and output functions and digital audio input and output functions, and the two functional interfaces are connected internally, and data can be transmitted to each other. One end of the audio codec chip (analog input and output end) is connected to the analog audio interface of the processor, and the other end is connected to the digital audio interface of the digital peripheral. After setting, the input and output conversion of digital audio and analog audio can be realized, and the expansion function of I2S signal can be realized through the analog audio interface inside the processor. That is, the whole system is a cycle of analog audio signal and digital audio signal transmission, and the bridge is the audio codec chip in the middle. The chip itself is used for audio signal adjustment, optimization and system audio data encoding and decoding, and is compatible with analog input and output functions and digital input and output functions. The interface conversion function of the chip is cleverly used to achieve the expansion of digital audio signals.
[0101] As an optional embodiment, Figure 6 As shown, the audio codec chip 105 may include a controller 1051 for controlling the working states of the digital-to-analog conversion module D / A and the analog-to-digital conversion module A / D in the audio codec chip 105 .
[0102] Specifically, the controller 1051 can cooperate with the processor to realize the control of the working states of the digital-to-analog conversion module D / A and the analog-to-digital conversion module A / D in the audio codec chip 105 .
[0103] Through the embodiments of the present disclosure, the working state of each conversion module in the audio codec chip can be controlled flexibly through the cooperation between the controller and the processor.
[0104] As an optional embodiment, Figure 7 As shown, the processor 101 may include: an audio codec module 1011, used to: convert the audio data stream in the processor 101 into a corresponding analog signal and output it through the first analog output terminal; and / or convert the analog signal input into the processor 101 through the first analog input terminal into a corresponding audio data stream.
[0105] Through the embodiments of the present disclosure, the simulation function of the processor can be realized.
[0106] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0107] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. An electronic device, comprising: A processor having a first analog input terminal and a first analog output terminal; An expansion chip, comprising a digital-to-analog conversion module and an analog-to-digital conversion module, wherein the digital-to-analog conversion module has a second analog output terminal and a first digital input terminal, and the analog-to-digital conversion module has a second analog input terminal and a first digital output terminal; A digital peripheral device has a second digital input terminal and a second digital output terminal, wherein: The second digital output terminal is connected to the first digital input terminal and the second analog output terminal is connected to the first analog input terminal to form a first branch. The first analog output terminal is connected to the second analog input terminal and the first digital output terminal is connected to the second digital input terminal to form a second branch; The electronic device further comprises: an analog peripheral having a third analog input terminal and a third analog output terminal; The processor further has a third digital input terminal and a third digital output terminal, wherein: The third digital output terminal is connected to the first digital input terminal and the second analog output terminal is connected to the third analog input terminal to form a third branch. The third analog output terminal is connected to the second analog input terminal and the first digital output terminal is connected to the third digital input terminal to form a fourth branch.
2. The electronic device according to claim 1, wherein: Only the first branch is in working state; or Only the second branch is in working state; or The first branch and the second branch can form a first loop and are in working state at the same time.
3. The electronic device according to claim 1, wherein: Only the third branch is in working state; or Only the fourth branch is in working state; or The third branch and the fourth branch can form a second loop and are in working state at the same time.
4. The electronic device according to claim 1, wherein: When the digital peripheral is in working state, the analog peripheral is in non-working state; or When the analog peripheral is in a working state, the digital peripheral is in a non-working state; or The digital peripherals and the analog peripherals can be in working state at the same time.
5. The electronic device according to claim 1, wherein: The analog peripherals include headphones, microphones and speakers.
6. The electronic device according to claim 1, wherein: The digital peripherals include Bluetooth with a digital interface.
7. The electronic device according to any one of claims 1 to 6, wherein: The expansion chip includes an audio codec chip.
8. The electronic device according to claim 7, wherein: The audio codec chip comprises a controller for controlling the working states of a digital-to-analog conversion module and an analog-to-digital conversion module in the audio codec chip.
9. The electronic device according to claim 1, wherein: The processor includes: an audio codec module, which is used to: converting the audio data stream in the processor into a corresponding analog signal and outputting it through the first analog output terminal; and / or The analog signal input to the processor through the first analog input terminal is converted into a corresponding audio data stream.
Citation Information
Patent Citations
Method for making sound graphic display and playing on mobile phone display screen
CN1885976A
Electronic equipment
CN208444294U
Audio management in a dual processor environment
EP1775923A1