Automatic audio gain control of audio control chip PGA2311

The earliest gain control is analog circuit detection control, but the analog circuit design is relatively cumbersome and it is difficult to achieve a wide range of gain control. Therefore, with the development of digital signal processing devices (DSP), the use of DSP for gain control has become the mainstream. At first, the general method of digital device processing is that large signals reduce gain, and small signals are not processed. There are also ways to amplify small signals, but because of the concern that too much gain adjustment without signal input will increase the background noise, so the gain adjustment range is not large and the ideal control effect cannot be achieved. In addition, the input signal is basically detected, that is, feedforward control, and the output signal is not detected, so that when the gain is large when the input is lost, the output will be limited, affecting the listening effect. And the cost of DSP scheme is relatively high. This solution uses a low-cost microcontroller as the processing core, and completes automatic gain control through a simple gain control algorithm.

1 System hardware design

As shown in Figure 1, the entire system is designed with the collection and processing of audio signals at its core. The audio signal input and output terminals on both sides of the audio control chip PGA2311 are transferred to the A / D port of the MSP430F149 after being level shifted by the amplifier TL084 for sampling (the signal input / output terminals are tested to solve the situation when there is no signal at the input terminal The question of whether the gain is adjusted, and at the same time to avoid excessive gain resulting in output limiting). The sampled data is processed by a software algorithm to obtain a gain value, which is configured to PGA2311 through a level shifter 74HC245. The buttons and digital tube complete the setting and display of the output level threshold range.

1.1 Main control circuit

The main control chip MSP430F149 is a 16-bit, 48 8-bit parallel I / O port, with a reduced instruction set, ultra-low power consumption (only 0.1μA in power-saving mode), its addressing space is 64 KB RAM is 2KB, which brings great convenience to system development. It contains a 12-bit A / D converter ADC12, sample-and-hold and analog multiplexer. ADC12 has the characteristics of high speed and universality, and can perform A / D conversion on 8 external analog sources and 4 internal reference power sources (including internal temperature sensor source). ADC12 also provides a variety of sampling trigger methods, conversion clock cycle, conversion mode selection.

PGA2311 is a two-channel, programmable gain amplifier that interacts with the MSP430F149 via the SPI bus, and its gain range is + 31.5 ~ -95.5 dB.

In Figure 1, MSP430F149 is a 3.3 V power supply, and PGA231l is a CMOS device with a ± 5 V power supply. Therefore, it is necessary to pay attention to I / O logic level matching. Level shifter 74HC245 is used to achieve level matching when driving PGA2311.

Refillable E-cig

With the development of the times, the consumption level of people is gradually increasing. At the same time, people's entertainment methods are beginning to diversify, especially for modern young people. As a result, different kinds of electronic products are starting to be in people's lives, and the booming Electronic Cigarette industry reflects this.


Described including the upper shell, the upper shell at the top of the smoke outlet, as described in the bottom of the upper shell with airway, described with the smoke outlet in the airway and also to match the upper shell, the lower part of the shell described the airway in the direction of the lower shell extension, as described in the lower shell near one end of the upper shell is equipped with oil mouth, described the lower shell with batteries, described at the bottom of the bottom shell has come in The air port is provided with an oil storage bin in the lower shell, and the air passage passes through the oil storage bin and is provided with a heating atomization bin at one end away from the smoke outlet. The utility model has beneficial effects: it can meet the smoking habit of different users, avoid the premature end of the use experience caused by excessive consumption of smoke oil, and indirectly prolong the service time and life of the product.

Refillable E-Cig Oem,Refillable Vape Pod,Refillable Vape Pen Oem,Refillable Mod Oem

Shenzhen MASON VAP Technology Co., Ltd. , https://www.cbdvapefactory.com

Posted on