GAIN CONTROL DEVICE, METHOD AND DATA AMPLIFICATION DEVICE USING THE SAME
A gain control device comprises a sign bit identification device and a gain determination device. The sign bit identification device is used to receive a data, identify a sign bit, and obtain a position of a time slot corresponding to the sign bit. Also, the data comprises a plurality of bits, wherein the most significant bit of the bits is designed to be a sign bit which is used to represent a positive or negative value of the data. The gain determination device is electrically connected to the sign bit identification device, and the gain determination device is used to determine a gain value for amplifying the data based on the position of the time slot corresponding to the sign bit identified through the sign bit identification device.
This application claims the priority from the TW Patent Application No. 111140323, filed on Oct. 24, 2022 and all contents of such TW Patent Application are comprised in the present disclosure.
BACKGROUND 1. Field of the InventionThe present disclosure relates to a gain control device, a method and a data amplification device using the same, in particular to, a gain control device, a method and a data amplification device using the same that does not use the Inter-Integrated Circuit (I2C) bus and the Serial Peripheral Interface (SPI) bus, and can determine the gain value based on a position of the corresponding time slot of the most significant bit (MSB) used to represent a positive or negative value.
2. Description of the Related ArtAfter various types of integrated circuits receive data, they may need to amplify with a gain value greater than one because the signal value of the data is weak. When the integrated circuit is provided with a communication interface, such as an Inter-Integrated Circuit bus or a Serial Peripheral Interface bus, etc., the gain control command can be transmitted to the integrated circuit via the Inter-Integrated Circuit bus or the Serial Peripheral Interface bus so that the integrated circuit adjusts the gain value.
However, under cost considerations, not all integrated circuits are provided with the communication interface, such as the Inter-Integrated Circuit bus or the Serial Peripheral Interface bus, etc. For the integrated circuits without the communication interface, such as the Inter-Integrated Circuit bus or the Serial Peripheral Interface bus, the integrated circuits are necessary to assign an additional specific pin when the integrated circuits still need to perform gain control. Moreover, a gain value of the integrated circuit is determined and controlled via the voltage applied to the specific pin. However, the manner of determining the gain value via the voltage applied to the specific pin is likely to cause the output gain unstable when the voltage of the specific pin is disturbed and unsteady.
SUMMARYIn view of the problems in the related art, purposes of the present disclosure are to provide a gain control device, a method and a data amplification device using the same. The gain control device, the method and the data amplification device using the same can effectively control the gain value of the integrated circuit without an Inter-Integrated Circuit bus, a Serial Peripheral Interface bus or a specific pin.
Based on one of the purposes of the present disclosure, the present disclosure provides a gain control device. The gain control device comprises a sign bit identification device and a gain determination device. The sign bit identification device is configured to receive a data, identify a sign bit, and obtain a position of a time slot corresponding to the sign bit. Besides, the data comprises a plurality of bits, and the most significant bit of the bits is designed to be the sign bit used to represent a positive or negative value of the data. The gain determination device is electrically connected to the sign bit identification device. The gain determination device is configured to determine a gain value for amplifying the data based on the position of the time slot corresponding to the sign bit identified by the sign bit identification device.
Based on one of the purposes of the present disclosure, the present disclosure further provides a data amplification device. The data amplification device comprises a plurality of channel amplification modules. Also, each of the channel amplification modules comprises the mentioned gain control device and an amplifier. The amplifier is electrically connected to the gain control device, and the amplifier is configured to amplify the data based on the gain value determined by the gain control device.
Based on one of the purposes of the present disclosure, the present disclosure further provides a gain control method. The gain control method comprises the following steps. A data is received. Besides, the data comprises a plurality of bits, and the most significant bit of the bits is designed to be the sign bit used to represent a positive or negative value of the data. Then, the sign bit is identified, and the position of the time slot corresponding to the sign bit is obtained. A gain value is determined for amplifying the data based on the position of the time slot corresponding to the identified sign bit.
To sum up, the gain control device, the method and the data amplification device using the same provided by embodiments of the present disclosure have following advantages. The embodiments of the present disclosure save cost and have better performance. Also, the embodiments of the present disclosure do not require complex circuits and calculations, so that the embodiments of the present disclosure have low design complexity. Therefore, it is easy to achieve mass production.
To further understand the technology, means, and effects of the present disclosure, reference may be made by the detailed description and drawing as follows. Accordingly, the purposes, features and concepts of the present disclosure can be thoroughly and concretely understood. However, the following detailed description and drawings are only used to reference and illustrate the implementation of the present disclosure, and they are not used to limit the present disclosure.
The accompanying drawings are provided to enable persons with ordinary knowledge in the technical field of the present disclosure to further understand the present disclosure, and are incorporated into and constitute a part of the specification of the present disclosure. The drawings illustrate exemplary embodiments of the present disclosure, and are used to explain the principle of the present disclosure together with the description of the present disclosure.
Now, reference will be made in detail to exemplary embodiments of the present disclosure, exemplary embodiments of which are illustrated in the accompanying drawings. In the case of possibility, the same reference numbers will be used in the drawings and the description to refer the same or similar parts. In addition, the practice of the exemplary embodiments is only one implementation of the design concept of the present disclosure, and the following exemplary embodiments are not intended to limit the present disclosure.
In order to avoid generating the technical problems mentioned in the related art, the present disclosure provides a gain control device. The gain control device does not need the Inter-Integrated Circuit bus and the Serial Peripheral Interface bus. Also, the gain control device does not need to be provided with an additional specific pin. Therefore, it avoids the situation that the gain value becomes unstable due to interference. Further, the gain control device of the present disclosure mainly detects the position of the time slot corresponding to the most significant bit used to represent a positive or negative value, that is, a sign bit in the input data, and the gain control device of the present disclosure determines a gain value based on the position of the corresponding time slot.
Since the position of the time slot corresponding to the sign bit is detected, the technical problem in the related art that the voltage of the specific pin is interfered or unsteady so that the gain value becomes unstable does not occur. Thus, the gain control device of the embodiments of the present disclosure has the advantages of better performance and no need for an additional specific pin. On the other hand, the embodiments of the present disclosure also provide a gain control method corresponding to the gain control device and a data amplification device using the mentioned gain control device. Moreover, the data amplification device is especially an audio data amplification device.
Furthermore, the gain control device can determine the position of which rising edge or falling edge of a clock signal corresponding to the sign bit of the data from the host when the most significant bit of the adopted data is designed as the sign bit. As well, the gain control device determines a gain value for amplifying the data based on the determined position. That is, the gain value is changed by changing the position of the sign bit in the time slot. In this way, the data amplification device using the gain control device does not need the Inter-Integrated Circuit bus and the Serial Peripheral Interface bus. Also, the data amplification device does not need the additional specific pin.
In addition, the width of the time slot can be determined via the Inter-Integrated Circuit bus and the Serial Peripheral Interface bus when the input data is an Integrated Interchip Sound (I2S) data or a Pulse Coding Modulation Time Division Multiplexing (PCM TDM) audio data. However, since the data amplification device does not be provided with the Inter-Integrated Circuit bus and the Serial Peripheral Interface bus, the width of each time slot is constant for the data amplification device and the gain control device. In this way, the gain control device can detect the position of the sign bit in the time slot, that is, which time slots, or which rising edge or which falling edge of the clock signal so that the gain control device determines the gain value based on the position of the sign bit in the time slot.
Firstly, please refer to
The sign bit identification devices 102 and 122 are configured to receive the data of the left channel and the right channel of the input data. It is noted that the input data may comprise the data of the left channel and the right channel. Also, the sign bit identification devices 102 and 122 are configured to identify the sign bits the data of the left channel and the right channel of the input data. The data of the left channel and the right channel respectively comprise a plurality of bits, and the most significant bit of the bits of the data of the left channel and the right channel is designed to be the sign bit for representing the positive or negative value of the data. The gain determination device 104 is configured to determine the gain value for amplifying the data based on the position of the time slot corresponding to the sign bit of the data of the left channel identified by the sign bit identification device 102. As well, the gain determination device 124 is used to determine the gain value for amplifying the data based on the position of the time slot corresponding to the sign bit of the data of the right channel identified by the sign bit identification device 122. Then, the amplifiers 106 and 126 are used to amplify the data of the left channel and the right channel based on the gain values determined by the gain determination devices 104 and 124 respectively.
Please refer to
In
In
Please also refer to
Please refer to
In
Finally, please refer to
As stated as above, the gain control device, the method and the data amplification device using the same provided by the embodiments of the present disclosure have the following advantages. Firstly, the gain value can be controlled without the Inter-Integrated Circuit bus, the Serial Peripheral Interface bus or an additional specific pin. Secondly, the position of the time slot of the sign bit, that is, the rising edge or the falling edge of the clock signal where the sign bit appears is used to determine the gain value for amplifying when the time slot at the receiving end, that is, the gain control device or the data amplification device is constant. Thirdly, the present disclosure can solve the technical problem in the related art that the amplified gain value changes instantaneously due to unstable voltage when the gain value is determined via the voltage of the specific pin. Fourthly, the cost required for configuring the additional specific pin is saved.
It should be understood that the examples and embodiments described herein are for illustrative purpose only, and various modifications or changes in view thereof will be suggested to those skilled in the art, and will be comprised in the spirit and scope of the application and the appended within the scope of the claims.
Claims
1. A gain control device, comprising:
- a sign bit identification device, configured to receive a data, identify a sign bit, and obtain a position of a time slot corresponding to the sign bit, wherein the data comprises a plurality of bits, and wherein a most significant bit of the plurality of bits is designed to be the sign bit used to represent a positive or negative value of the data; and
- a gain determination device, electrically connected to the sign bit identification device, and configured to determine a gain value for amplifying the data based on the position of the time slot corresponding to the sign bit identified by the sign bit identification device.
2. The gain control device according to claim 1, wherein the gain control device does not comprise an Inter-Integrated Circuit bus or a Serial Peripheral Interface bus.
3. The gain control device according to claim 1, wherein the sign bit identification device is configured to count a rising edge or a falling edge of a clock signal corresponding to the data to generate a count value, and
- the sign bit identification device obtains the position of the time slot corresponding to the sign bit based on the count value when the sign bit identification device identifies the sign bit.
4. The gain control device according to claim 1, wherein the data is an Integrated Interchip Sound data or a Pulse Coding Modulation Time Division Multiplexing audio data.
5. A data amplification device, comprising:
- a plurality of channel amplification modules, wherein each of the plurality of channel amplification modules comprises: a gain control device, comprising: a sign bit identification device, configured to receive a data, identify a sign bit, and obtain a position of a time slot corresponding to the sign bit, wherein the data comprises a plurality of bits, and wherein a most significant bit of the plurality of bits is designed to be the sign bit used to represent a positive or negative value of the data; and a gain determination device, electrically connected to the sign bit identification device, and configured to determine a gain value for amplifying the data based on the position of the time slot corresponding to the sign bit identified by the sign bit identification device, and an amplifier, electrically connected to the gain control device, and configured to amplify the data based on the gain value determined by the gain control device.
6. The data amplification device according to claim 5, wherein the gain control device does not comprise an Inter-Integrated Circuit bus and a Serial Peripheral Interface bus.
7. The data amplification device according to claim 5, wherein the sign bit identification device is configured to count a rising edge or a falling edge of a clock signal corresponding to the data to generate a count value, and
- the sign bit identification device obtains the position of the time slot corresponding to the sign bit based on the count value when the sign bit identification device identifies the sign bit.
8. The data amplification device according to claim 5, wherein the data is an Integrated Interchip Sound data or a Pulse Coding Modulation Time Division Multiplexing audio data.
9. The data amplification device according to claim 5, wherein the plurality of the channel amplification modules comprise a left channel amplification module and a right channel amplification module, or
- the plurality of the channel amplification modules comprise a first audio channel amplification module to an Nth channel amplification module, wherein a number of N is a positive integer greater than or equal to 2.
10. A gain control method, comprising:
- receiving a data, wherein the data comprises a plurality of bits, and a most significant bit of the plurality of bits is designed to be a sign bit used to represent a positive or negative value of the data;
- identifying the sign bit, and obtaining a position of a time slot corresponding to the sign bit; and
- determining a gain value for amplifying the data based on the position of the time slot corresponding to the identified sign bit.
11. The gain control method according to claim 10, wherein the gain control method is implemented on a gain control device does not comprise an Inter-Integrated Circuit bus and a Serial Peripheral Interface bus.
12. The gain control method according to claim 10, wherein a count value is generated by counting a rising edge or a falling edge of a clock signal corresponding to the data,
- wherein the position of the time slot corresponding to the sign bit is obtained based on the count value when identifying the sign bit.
13. The gain control method according to claim 10, wherein the data is an Integrated Interchip Sound data or a Pulse Coding Modulation Time Division Multiplexing audio data.
Type: Application
Filed: Aug 9, 2023
Publication Date: Apr 25, 2024
Inventors: FAN CHUN KUO (HSINCHU CITY), YING CHUAN PENG (HSINCHU CITY)
Application Number: 18/447,798