The invention relates to RF receiver and, in particular, but not exclusively, to an automatic gain control circuit for controlling an amplifier for inputting signals carrying packets.
In wireless transmissions, when transmitting a packet, a preamble will be transmitted first for synchronization, and after the preamble is transmitted, row data of the packet will be transmitted. The preamble of the packet will be transmitted within a preamble time region. The purpose of the preamble is to establish bit synchronization and clock recovery first and then determine where the byte boundaries are located for decoding the row data of the packet.
An automatic gain control circuit is very important for controlling an input amplifier, such as an LNA, for inputting RF signals carry packets. The automatic gain control circuit can adjust the gain of the LNA in the preamble time region of the packet so that the voltage levels outputted from the LNA can be adjusted to be within a pre-determined range suitable for digitization. However, the RF signals inputted to the LNA may contain some unwanted signals having a large peak voltage level from time to time, and it takes time to allow the automatic gain control circuit to respond to such unwanted signals and adjust the gain of the LNA accordingly. Conventionally, the automatic gain control circuit adjusts the gain of the LNA by detecting the power level of the RF signals in the preamble time region of the packet, as a result, the automatic gain control circuit does not have sufficient time to respond to such unwanted signals that occur during the non-preamble time region of the packet.
Therefore, what is needed is a new way to design an automatic gain control circuit to overcome the above-mentioned issues.
One objective of present invention is to provide an automatic gain control for controlling an LNA for inputting signals carrying packets, wherein the automatic gain control circuit can perform a background calibration in the non-preamble time region of a first packet for pre-determining a gain adjustment to the LNA before the next preamble of a second packet arrives, so that the gain of the LNA can be adjusted immediately according to the pre-determined gain adjustment when the next preamble of the second packet arrives.
The present invention discloses an automatic gain control circuit, for controlling a first amplifier for inputting signals carrying packets, each packet comprising a preamble field within a preamble time region and a non-preamble field within a non-preamble time region, wherein said automatic gain control circuit comprises: a power detector coupled to the first amplifier to receive a first signal outputted from the first amplifier and to output a voltage level representing a power level of the first signal; and a second amplifier coupled to the power detector to adjust said voltage level outputted from the power detector, wherein a gain of the second amplifier is adjusted while in the current non-preamble time region such that the adjusted voltage level falls in a pre-determined range, so that a gain of the first amplifier is capable of being adjusted while in the next preamble time region immediately following the current non-preamble time region, according to the adjusted gain of the second amplifier.
In one embodiment, the first amplifier is an LNA (low-noise amplifier).
In one embodiment, the signals are RF signals.
In one embodiment, the power detector comprises an RMS voltage detector.
In one embodiment, the power detector comprises a peak voltage detector.
In one embodiment, the gain of the second amplifier is set to a fixed value without changing in the current preamble time region.
In one embodiment, the automatic gain control circuit further comprises a first comparator to compare the adjusted output level with a first reference voltage level and a second comparator to compare the adjusted output level with a second reference voltage level, for detecting whether the adjusted output level falls in the pre-determined range.
In one embodiment, the automatic gain control circuit further comprises a controller to control the gain of the first amplifier and the gain of the second amplifier according to the outputs of said comparators.
In one embodiment, the automatic gain control circuit further comprises an analog-to-digital converter coupled to the second amplifier to convert the adjusted output level into a digital value, for detecting whether the adjusted output level falls in the pre-determined range.
In one embodiment, the automatic gain control circuit further comprises a controller to control the gain of the first amplifier and the gain of the second amplifier according to the output of the analog-to-digital converter.
The present invention discloses a receiver with an automatic gain control, said receiver comprising: a first amplifier, for inputting signals carrying packets, each packet comprising a preamble field within a preamble time region and a non-preamble field within a non-preamble time region; a power detector, coupled to the first amplifier to receive a first signal outputted from the first amplifier and to output a voltage level representing a power level of the first signal; and a second amplifier, coupled to the power detector to adjust said voltage level outputted from the power detector, wherein a gain of the second amplifier is adjusted while in the current non-preamble time region such that the adjusted voltage level falls in a pre-determined range, so that a gain of the first amplifier is capable of being adjusted while in the next preamble time region immediately following the current non-preamble time region, according to the adjusted gain of the second amplifier.
The detailed technology and above preferred embodiments implemented for the present invention are described in the following paragraphs accompanying the appended drawings for people skilled in this field to well appreciate the features of the claimed invention.
The foregoing aspects and many of the accompanying advantages of this invention will become more readily appreciated as the same becomes better understood by reference to the following detailed description when taken in conjunction with the accompanying drawings, wherein:
The detailed explanation of the present invention is described as following. The described preferred embodiments are presented for purposes of illustrations and description, and they are not intended to limit the scope of the present invention.
For receiving a packet, there are two time regions that can be defined, that is, a preamble time region in which a preamble is carried and a non-preamble time region in which data is carried. In some applications, such as IOT (Internet of Things) applications, the gain of the LNA can only be adjusted in the preamble time region, and then after the preamble time region, the remaining time region of the packet, the gain of the LNA gain needs to be fixed for extracting the data of the packet. While the gain of the LNA is adjusted in the preamble time region, the automatic gain control circuit of the present invention can perform a background calibration in the non-preamble time region for pre-determining a gain adjustment to the LNA before the next preamble arrives, so that the gain of the LNA can be adjusted immediately according to the pre-determined gain adjustment when the next preamble arrives. By doing so, the background calibration can continuously detect environment condition and adjusting the gain of an amplifier associated with the power detector for pre-determining a gain adjustment to the LNA before the next preamble arrives.
Please refer to
In one embodiment, the automatic gain control circuit 150 further comprises an analog-to-digital converter 105 coupled to the second amplifier 104 to convert the adjusted output level into a digital value, for detecting whether the adjusted output level falls in the pre-determined range.
In one embodiment, the automatic gain control circuit 150 further comprises a controller 106 to control the gain of the LNA 102 and the gain of the second amplifier 104 according to the output of the analog-to-digital converter 105.
In one embodiment, the gain of the second amplifier 104 is set to a fixed value in current preamble time region 203 (see
In one embodiment, the power detector comprises a peak voltage detector.
In one embodiment, the power detector comprises an RMS voltage detector.
As shown in
In one embodiment, the automatic gain control circuit 150 comprises voltage comparators (not shown) for detecting whether the adjusted output level falls in the pre-determined range, and the analog-to-digital converter 105 (in
Please refer to
The foregoing descriptions of specific embodiments of the present invention have been presented for purposes of illustrations and description. They are not intended to be exclusive or to limit the invention to the precise forms disclosed, and obviously many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and its practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to particular use contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
6498927 | Kang | Dec 2002 | B2 |
10200002 | Youssef | Feb 2019 | B1 |
Number | Date | Country | |
---|---|---|---|
20200014353 A1 | Jan 2020 | US |