Search

US-12620953-B2 - Gain control device, method and data amplification device using the same

US12620953B2US 12620953 B2US12620953 B2US 12620953B2US-12620953-B2

Abstract

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.

Inventors

  • FAN CHUN KUO
  • YING CHUAN PENG

Assignees

  • NUVOTON TECHNOLOGY CORPORATION

Dates

Publication Date
20260505
Application Date
20230810
Priority Date
20221024

Claims (13)

  1. 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. 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. 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. 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. 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. 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. 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. 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. 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 N th channel amplification module, wherein a number of N is a positive integer greater than or equal to 2.
  10. 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. 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. 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. 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.

Description

CROSS-REFERENCE TO RELATED APPLICATION 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 Invention The 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 Art After 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. SUMMARY In 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