Summary of the invention
The technical problem to be solved by the application is to provide a kind of bluetooth basebands to receive system, is realized using Digital Logic blue
The rf gain of tooth signal controls.For this purpose, the application also provides a kind of implementation method of bluetooth baseband reception system.
In order to solve the above technical problems, this application provides a kind of bluetooth basebands to receive system, including antenna, Bluetooth RF
Receiving module, digital front-end and modem.In Bluetooth RF receiving module, antenna received signal is first put by low noise
Big device carries out analog gain amplification, then carries out variable gain amplification by variable gain unit, then carry out mould by AD conversion unit
Number conversion;Control logic coordinated control the yield value of low-noise amplifier and variable gain unit.In digital front-end, modulus
Gain amplification is fixed by fixed gain adjustment unit in signal after conversion, is then fed into modem.The control is patrolled
Collect includes sequentially connected start unit, first processing units and the second processing unit.The start unit is used to open every time
Beginning receives Bluetooth signal to stopping receiving as a control period, in the starting point for starting reception Bluetooth signal every time, resetting
The yield value of low-noise amplifier and variable gain unit.After the first processing units are used to wait first time length, inspection
It looks into after low-noise amplifier and whether the A point signal before variable gain unit is saturated and refers to the presence or absence of outside locking
Show;If A point signal saturation and no external locking instruction, the analog gain yield value of low-noise amplifier is reduced;It adjusts
If the yield value of low-noise amplifier has been minimum value after whole, it is sent into the second processing unit;Otherwise it repeats to be sent into first
Processing unit;If A point signal is unsaturated and indicates without external locking, it is sent into the second processing unit;If there is outside
Locking instruction then enters gain locking state, subsequent without gain adjustment.When described the second processing unit is used to wait second
Between after length, check whether there is external locking instruction;If there is outside locking instruction, then enter gain locking state, it is subsequent
Without gain adjustment;If without outside locking instruction, according to after variable gain unit and D/A conversion unit it
The current RSSI of preceding B point signal and the current gain value of low-noise amplifier calculate the corresponding low noise of signal of currently eating dishes without rice or wine
The optimum gain value of acoustic amplifier and the optimum gain value of variable gain unit;If low-noise amplifier and gain single
The current gain value of member is consistent with calculated result, then returns to first processing units;If low-noise amplifier and variable gain
Any one of current gain value of unit or two it is inconsistent with calculated result, then by low-noise amplifier and/or variable
After the yield value of gain unit is adjusted to calculated result, first processing units are returned to.
Above-mentioned bluetooth baseband receives system and carries out adjustable gain control to Bluetooth RF signal, to bluetooth baseband signal
Gain amplification is only fixed, therefore the focus of gain control has just fallen in Bluetooth RF signal section.It is received in Bluetooth RF
In mould group, matched by the two of low-noise amplifier and variable gain unit, it is common to realize gain control, and by control logic
It is uniformly coordinated control, has the characteristics that structure is simple, it is convenient to realize.
Further, the control logic uses cured RTL circuit, and cured RTL circuit is posted using two-part configuration
Storage table carries out gain adjustment;The two-part configuration register table includes that a gain table is used to define multiple gains
Value further includes that a gain index table is used to define multiple gain index, and each gain index is directed toward a yield value.Using
RTL circuit realizes that control logic can reduce hardware implementation cost, avoids also can be reduced and being accounted for using microcontroller costly
Use chip area.Two-part configuration register table is used then to provide a kind of gain adjustable step-length for cured RTL circuit
Value and gain are quickly adjusted to adjustable, the controllable control mode of the convergence step of target value.
Further, the configurable adjustment of the quantity for the gain index that the gain index table defines, and each gain
The configurable adjustment of points relationship between index and some yield value.This provides the preferred embodiment of subsequent adjustment, Ke Yishi
It is locked to target gain value with answering different application environment fast accurate, can achieve the target gain value convergence effect of friction speed
With gain locking performance, and between the matching precision of gain adjustment convergence rate and gain locking to optimal objective value provide can
The balance policy of adjustment.
Further, the control logic uses one group of two-part configuration register to the gain control of low-noise amplifier
Table, the control logic also use one group of two-part configuration register table to the gain control of variable gain unit.It is each
Group two-part configuration register table corresponds respectively to the gain control an of device, this is a kind of preferred implementation of control logic
Mode.
Further, the yield value of the variable gain unit makes the input signal of AD conversion unit be matched to sampling
Best effort section.The performance that AD conversion unit can thus be given full play to is conducive to export high-precision analog-to-digital conversion
Digital signal afterwards.
Present invention also provides the implementation methods that a kind of bluetooth baseband receives system, include the following steps.Step S22: day
Line receives Bluetooth RF signal, and received signal is sent into Bluetooth RF receiving module.Step S24: in Bluetooth RF receiving module
In, Bluetooth RF signal first carries out analog gain amplification by low-noise amplifier, then carries out variable gain by variable gain unit
Amplification, then analog signal is carried out to the conversion of digital signal by AD conversion unit, it is then fed into digital front-end;Control logic association
The gain of low-noise amplifier and variable gain unit is made in regulation.Step S26: in digital front-end, signal is by fixed gain
Gain amplification is fixed in adjustment unit, is then fed into modem.In the step S24, control logic coordinated control
The gain of low-noise amplifier and variable gain unit includes the following steps: step S42: every time from start receive Bluetooth signal to
Stopping is received as a control period, in the starting point for starting reception Bluetooth signal every time, resets low-noise amplifier and can be changed
The yield value of gain unit.Step S44: after waiting first time length, check low-noise amplifier later and in variable gain
Whether the A point signal before unit is saturated and with the presence or absence of external locking instruction.If A point signal is saturated and does not have outer lock
Fixed instruction, then reduce the analog gain yield value of low-noise amplifier;After adjustment if the yield value of low-noise amplifier
It is minimum value, then enters step S46;Otherwise step S44 is repeated.If A point signal is unsaturated and indicates without external locking,
Then enter step S46.If there is outside locking instruction, then enter gain locking state, it is subsequent without gain adjustment.Step
S46: after waiting the second time span, external locking instruction is checked whether there is.If there is outside locking instruction, then enter gain
Lock state, it is subsequent without gain adjustment.If without outside locking instruction, according to after variable gain unit and in number
The current RSSI of B point signal before mould converting unit and the current gain value of low-noise amplifier calculate letter of currently eating dishes without rice or wine
Number the optimum gain value of corresponding low-noise amplifier and the optimum gain value of variable gain unit.If low-noise amplifier
It is consistent with calculated result with the current gain value of variable gain unit, then return to step S44.If low-noise amplifier and can
Any one of the current gain value of variable-gain unit is inconsistent or two inconsistent with calculated result, then by low noise amplification
After the yield value of device and/or variable gain unit is adjusted to calculated result, step S44 is returned to.
The implementation method that above-mentioned bluetooth baseband receives system carries out adjustable gain control to Bluetooth RF signal, to indigo plant
Gain amplification is only fixed in tooth baseband signal.In the gain control of Bluetooth RF signal, by low-noise amplifier and it can be changed
The two of gain unit matches, and carries out gain control by control logic is uniformly coordinated, and, realization simple with structure is easily
Feature.
Further, in the step S24, the control logic is used using two-part configuration register table to low noise
Acoustic amplifier and variable gain unit carry out gain adjustment;The two-part configuration register table includes that a gain table is used to
Multiple yield values are defined, further include that a gain index table is used to define multiple gain index, each gain index is directed toward one
Yield value.This provides a kind of gain adjustable step value for control logic and gain is quickly adjusted to the convergence step of target value
Adjustable, controllable control mode.
Further, in the step S24, the yield value of the variable gain unit makes the input of AD conversion unit
Signal Matching to sampling best effort section.It is high to be conducive to output for the performance that AD conversion unit can thus be given full play to
Digital signal after the analog-to-digital conversion of precision.
Further, in the step S44, first time length is configurable.Bluetooth baseband can be improved in this way to connect
The scope of application of receipts system enables circuit to be suitable for the signal of eating dishes without rice or wine of different sensitivity.
Further, in the step S46, the second time span is configurable.Bluetooth baseband can be improved in this way to connect
The scope of application of receipts system enables circuit to be suitable for the signal of eating dishes without rice or wine of different sensitivity.
That there is provided logics is simple for the technical effect that the application obtains, be easily achieved at the same can quick lock in bluetooth penetrate
The Digital Logic implementation of the gain of frequency signal.In addition, the microcontroller controlled the gain in digital front-end is omitted
Device reduces hardware cost, has saved the area of entire SOC.In addition, reduce locking Bluetooth RF signal gain when
Between, the output signal after high-precision analog-to-digital conversion can be obtained, the final performance for improving bluetooth baseband demodulation.
Specific embodiment
Referring to Fig. 2, this be the application bluetooth baseband receive system, along receiving side signal to successively include antenna,
Bluetooth RF receiving module 10, digital front-end 20 and modem 40.Antenna receives on current Bluetooth communication channel frequency point
Signal, the first progress analog gain amplification of low-noise amplifier 12 by Bluetooth RF receiving module 10 of received signal, then by
Variable gain unit 110 carries out variable gain amplification, then carries out analog signal by AD conversion unit 16 and turn to digital signal
It changes.Also there is control logic 18 in Bluetooth RF receiving module 10, both controlled the analog gain in low-noise amplifier 12
Size, and the variable gain size in variable gain unit 110 is controlled, it is represented by dotted lines.Bluetooth RF receiving module 10
Signal after analog-to-digital conversion is sent into the digital front-end 20 of base band, is handled by direct current elimination, signal frequency shift etc., then is increased by fixed
Gain amplification is fixed to the amplitude of signal to obtain the demodulation of more preferable performance in beneficial adjustment unit 24, is then fed into modulatedemodulate
It adjusts device 40 to carry out subsequent processing for example to demodulate.
In bluetooth baseband reception system shown in Fig. 2, the control needs of entire gain are put by control logic 18 in low noise
Coordination Treatment between big device 12 and variable gain unit 110.One embodiment of the control logic 18 is as shown in figure 3, include
Sequentially connected start unit 182, first processing units 184 and the second processing unit 186.
The start unit 182 is used to will be every time from starting to receive Bluetooth signal to stopping reception as a control week
Phase resets the yield value of low-noise amplifier and variable gain unit in the starting point for starting reception Bluetooth signal every time.
The first processing units 184 be used to wait first time length timer1 after, check A point signal whether be saturated with
And with the presence or absence of external locking instruction.Wherein A point is as shown in Fig. 2, be located at after low-noise amplifier 12 and in gain single
Before member 110.If A point signal saturation and no external locking instruction, by the analog gain gain of low-noise amplifier 12
Value reduces.If the yield value of low-noise amplifier 12 has been minimum value after adjustment, it is sent into the second processing unit 186;It is no
It then repeats to be sent into first processing units 184.If A point signal is unsaturated and indicates without external locking, it is sent into second processing
Unit 186.If there is outside locking instruction, then enter gain locking state, it is subsequent without gain adjustment.
After described the second processing unit 186 is used to wait the second time span timer2, checks whether there is external locking and refer to
Show.If there is outside locking instruction, then enter gain locking state, it is subsequent without gain adjustment.If without outer lock
Fixed instruction, then according to the RSSI(received signal strength indicator of current B point signal) and low-noise amplifier 12 current gain
Value, calculate currently eat dishes without rice or wine the corresponding low-noise amplifier 12 of (air interface, Air Interface) signal optimum gain value with
And the optimum gain value of variable gain unit 110.Wherein B point is as shown in Fig. 2, be located at after variable gain unit 110 and in number
Before mould converting unit 16.If the current gain value of low-noise amplifier 12 and variable gain unit 110 is and calculated result
Unanimously, then first processing units 184 are returned to.If in the current gain value of low-noise amplifier 12 and variable gain unit 110
Any one or two and calculated result it is inconsistent, then by the gain of low-noise amplifier 12 and/or variable gain unit 110
After value is adjusted to calculated result, first processing units 184 are returned to.
The software section of control logic 18 is solidified into RTL circuit by the application, to simplify following digital front end 20 and adjust
The processing complexity of modulator-demodulator 40, can allow subsequent process resource lightweight.And cured RTL circuit is flexible in order to cope with
Changeable automatic growth control logic is carried out by the way of two-part configuration register table.Specifically, control logic 18
One group of two-part register table is needed to the gain control of low-noise amplifier 12, control logic 18 is to variable gain unit 110
Gain control be also required to one group of two-part register table.Before the publication of same batch chip final products, it is only necessary to will increase
The length (quantity of gain index) of beneficial concordance list and its mapping relations between gain table are decided.
Referring to Fig. 4, this is the schematic diagram of one group of two-part configuration register table.Side is gain table, defines N+1
A yield value;The other side is gain index table, defines M+1 gain index;Usual M≤N.The wherein quantity of gain index table
M+1 can carry out configuration adjustment.Each gain index is directed toward a yield value, and this points relationship can carry out configuration tune
It is whole, so that the mapping relations between gain index table and gain table be allowed to change, reaches and change automatic growth control logic
Purpose.For example, if it is desired to gain adjustment is more fine, each gain index can be allowed along the direction that gain index increases
The yield value of direction adds one, i.e. 0 directive gain 0 of gain index, 1 directive gain 1 ... ... of gain index one by one.For another example, if it is uncommon
Hope gain adjustment it is more extensive, along gain index increase direction can allow each gain index be directed toward yield value one by one
Add five, i.e. 0 directive gain 0 of gain index, 1 directive gain 5 ... ... of gain index.And so on, it can be controlled according to gain
Mapping relations between the purpose quantity that neatly adjust gain indexes and two tables.Using two-part configuration register table
Strategy so that automatic growth control all solidstate at RTL circuit become feasible scheme.
Compared with existing bluetooth baseband shown in FIG. 1 receives system, the bluetooth baseband of the application, which receives system, to be had such as
Lower change.First, the fixed gain unit 14 in Bluetooth RF receiving module 10 has been changed to variable gain unit 110.Second, number
Digital gain adjustment unit 22 in word front end 20 has been changed to fixed gain adjustment unit 24.The above two o'clock combines, and shows this
Application has rested entirely on adjustable gain control in Bluetooth RF receiving module 10, simplifies the processing money in digital front-end 20
Source.Third, the control logic 18 in Bluetooth RF receiving module 10 are only used to control the simulation in low-noise amplifier 12 originally
Gain, is used to control the gain of variable gain unit 110 simultaneously now, and control circuit can be fully cured as RTL circuit,
And come adjust gain control logic by the way of two-part configuration register table.4th, be omitted microcontroller 30 and its
Firmware 32 simplifies the gain control logic in digital front-end 20.
The sampled signal that the bluetooth baseband of the application receives the AD conversion unit 16 that system can obtain higher precision is defeated
Out, wherein principle is described as follows.The gear of the analog gain of low-noise amplifier 12 is with cost correlation, the case where controlling cost
Under, the step-length of the gain shift of low-noise amplifier 12 is longer, one step-length of every jump, and corresponding signal amplitude changes meeting very greatly,
Usually 1~2 times of relationship.It is corresponding in order to allow signal amplitude to be adjusted to the best effort section of the sampling of AD conversion unit 16
The signal of different capacity inputs, and finer gain adjustment is needed to correspond to.The application uses instead before AD conversion unit 16
Variable gain unit 110, the best effort section that can accurately allow Signal Matching to sample to AD conversion unit 16 just, therefore
AD conversion unit 16 can export the sampled signal of higher precision, this bring is that the demodulation performance of modem 40 mentions
It rises.
Referring to Fig. 5, the implementation method that the bluetooth baseband of the application receives system includes the following steps.
Step S22: antenna receives Bluetooth RF signal, and received signal is sent into Bluetooth RF receiving module 10.
Step S24: in Bluetooth RF receiving module 10, Bluetooth RF signal is first simulated by low-noise amplifier 12
Gain amplification, then by variable gain unit 110 carry out variable gain amplification, then by AD conversion unit 16 carry out analog signal to
The conversion of digital signal.Also there is control logic 18 in Bluetooth RF receiving module 10, both controlled low-noise amplifier 12
In analog gain size, and control the variable gain size in variable gain unit 110.Bluetooth RF receiving module 10 will
Signal after analog-to-digital conversion is sent into the digital front-end 20 of base band.
Step S26: in digital front-end 20, signal is handled by direct current elimination, signal frequency shift etc., then by fixed gain tune
Gain amplification is fixed to the amplitude of signal to obtain the demodulation of more preferable performance in whole unit 24, is then fed into modem
40。
In the step S24, the needs of control logic 18 are coordinated between low-noise amplifier 12 and variable gain unit 110
Control entire gain.Specific Coordination Treatment mode is as shown in fig. 6, include the following steps.
Step S42: every time from start receive Bluetooth signal to stop be received as a control period, start to receive every time
The starting point of Bluetooth signal resets the yield value of low-noise amplifier 12 and variable gain unit 110.
Step S44: after waiting first time length timer1, check whether A point signal is saturated and with the presence or absence of outside
Locking instruction.The first time length timer1 can be configured.Wherein A point as shown in Fig. 2, be located at low-noise amplifier 12 it
Afterwards and before variable gain unit 110.
If A point signal saturation and no external locking instruction, by the analog gain yield value of low-noise amplifier 12
It reduces.If the yield value of low-noise amplifier 12 has been minimum value after adjustment, S46 is entered step;Otherwise step is repeated
S44。
If A point signal is unsaturated and indicates without external locking, S46 is entered step.
If there is outside locking instruction, then enter gain locking state, it is subsequent without gain adjustment.
Step S46: after waiting the second time span timer2, external locking instruction is checked whether there is.Second time
Length timer2 can be configured.
If there is outside locking instruction, then enter gain locking state, it is subsequent without gain adjustment.
If without outside locking instruction, according to the current of the RSSI of current B point signal and low-noise amplifier 12
Yield value calculates the optimum gain value and variable gain unit 110 of the signal corresponding low-noise amplifier 12 of currently eating dishes without rice or wine
Optimum gain value.Wherein B point is as shown in Fig. 2, be located at after variable gain unit 110 and before D/A conversion unit 16.
If calculated result is consistent with low-noise amplifier 12 and the yield value being currently configured of variable gain unit 110,
Then without adjustment, step S44 is returned to.
If any in the yield value that calculated result is currently configured with low-noise amplifier 12 and variable gain unit 110
One inconsistent or two inconsistent, then is adjusted to the yield value of low-noise amplifier 12 and/or variable gain unit 110
After calculated result, step S44 is returned to.
Preferably, in the step S24, the control logic uses cured RTL circuit, and is posted using two-part configuration
Storage table carries out gain adjustment.The control logic posts the gain control of low-noise amplifier using one group of two-part configuration
Storage table, the control logic also use one group of two-part configuration register table to the gain control of variable gain unit.
The two-part configuration register table includes that a gain table is used to define multiple yield values, further includes a gain index table
For defining multiple gain index, each gain index is directed toward a yield value.The gain index that the gain index table defines
The configurable adjustment of quantity, and the configurable adjustment of points relationship between each gain index and some yield value.
Preferably, in the step S24, the yield value of the variable gain unit believes the input of AD conversion unit
Number it is matched to the best effort section of sampling.
Fig. 5, bluetooth baseband shown in fig. 6 receive in the implementation method of system, if signal of eating dishes without rice or wine is mutated, need
The yield value of low-noise amplifier 12 and/or variable gain unit 110 is adjusted.If signal of eating dishes without rice or wine is more stable,
Then without being adjusted to the yield value of low-noise amplifier 12 and variable gain unit 110.
Compared with prior art, the bluetooth baseband of the application, which receives system and its implementation, has following beneficial technology
Effect.
First, the Digital Logic in digital front-end 20 for gain amplification is simplified, microcontroller is omitted.Originally in number
Variable gain in word front end changes to be realized by the variable gain unit 110 in Bluetooth RF receiving module 10, therefore again completely not
Lose performance.
Second, the control process of entire gain amplification is all real by the control logic 18 in Bluetooth RF receiving module 10
Existing, baseband portion does not intervene gain control process completely, therefore can obtain most stable of baseband signal input.
Third copes with the signal interference and mutation environment of various complexity, can obtain the base band letter of optimal signal-to-noise ratio
Number.This is because for the specific work environments of certain type products can be selected in advance matching for optimal two-part register table
It sets, the signal-to-noise ratio to work to front-end gain operating point and baseband modem can obtain best section.
4th, the time of locking Bluetooth RF signal gain can be reduced.This is because two-part configuration register table
Use and can configure, thus adjustable invalidating signal section gain adjustment step-length, and keep the adjustment of signal valid interval
Precision accelerates the adjustment time for converging to target gain while not losing gain performance.
5th, the variable gain unit 110 in Bluetooth RF receiving module 10 can be to the input of AD conversion unit 16
Signal carries out the optimization in terms of gain, improves the precision of the output signal of AD conversion unit 16, final to improve bluetooth baseband letter
Number demodulation performance.Thus under the premise of not increasing cost as far as possible, the performance of AD conversion unit 16 is given full play of, is obtained
Obtain the optimal performance output of current AD conversion unit 16.
The above is only preferred embodiment of the present application, it is not used to limit the application.Come for those skilled in the art
It says, various changes and changes are possible in this application.Within the spirit and principles of this application, made any modification, equivalent
Replacement, improvement etc., should be included within the scope of protection of this application.