a radio - frequency ( rf ) front - end circuit with enhanced tuning method is proposed . fig2 illustrates a functional block diagram of a rf front - end circuit 100 . the rf front - end circuit 100 contains a tunable filter 102 that is controlled by a tuning control signal 124 output by a control circuit 112 . a negative transconductance circuit 104 is connected to the tunable filter 102 . at resonance the negative transconductance of the negative transconductance circuit 104 cancels the tank loss of the other elements in the rf front - end circuit 100 in order to sustain oscillation and produce a tuning oscillation signal 122 . a counter 110 measures the oscillation frequency of the tuning oscillation signal 122 to calculate a counting value . during the tuning process , the counter 110 counts the received number of pulses of the tuning oscillation signal 122 during a counting period to calculate the counting value . meanwhile , with the aid of an on - chip precision clock , the control circuit 112 calculates an expected number of pulses of the tuning oscillation signal 122 that should be received during the counting period if the rf front - end circuit 100 is properly tuned to the correct frequency , which is a desired channel frequency band . the counter 110 then outputs the counting value to the control circuit 112 in order for the control circuit 112 to compare the counting value with the expected number of pulses . if the counting value is not within the predetermined range of the expected value , the control circuit 112 changes the value of the tuning control signal 124 to adjust the tunable filter 102 , thereby adjusting the oscillation frequency of the tuning oscillation signal 122 . once the tuning oscillation signal 122 is within an acceptable range of the desired channel frequency band , the control circuit 112 latches the desired value of the tuning control signal 124 and then the negative transconductance circuit 104 is disabled for normal mode operation . using a feedback loop created by the tunable filter 102 , the negative transconductance circuit 104 , the counter 110 , and the control circuit 112 , the frequency of the rf front - end circuit 100 can be tuned quickly , accurately , and automatically . fig3 is a flowchart summarizing the frequency tuning method performed by the rf front - end circuit 100 illustrated in fig2 . in step 150 , a desired tuning frequency is selected for the rf front - end circuit 100 . in step 152 , the tuning oscillation signal 122 is produced with the combination of the negative transconductance circuit 104 and the tunable filter 102 . next , the frequency of the tuning oscillation signal 122 is counted by the counter 110 in step 154 . the control circuit 112 then determines in step 156 if the frequency of the tuning oscillation signal 122 is within an acceptable frequency range for the desired tuning frequency . if so , the step 160 is executed . otherwise , step 158 is executed . in step 158 , the control circuit 112 adjusts the tunable filter 102 with the tuning control signal 124 in order to shift the frequency of the tuning oscillation signal 122 . the tuning method ends in step 160 . fig4 illustrates a detailed block diagram of an rf transceiver front - end circuit 300 according to one embodiment of the present invention . fig5 is an equivalent circuit diagram modeling parts of the rf transceiver front - end circuit 300 and their effect on an oscillation frequency of the resulting resonance tank . a shunt inductor 306 resonates with the sum of all capacitance connected to the rf port and the resulting resonance frequency equals the desired channel frequency band . the tunable capacitance circuit 308 is controlled to tune ( shift ) this resonance frequency for different desired rf channels . in the embodiment illustrated by fig4 , a negative transconductance circuit 304 of fig4 corresponds to the negative transconductance circuit 104 of fig2 , the shunt inductor 306 and the tunable capacitance circuit 308 of fig4 correspond to the tunable filter 102 of fig2 , a digital counter 310 of fig4 corresponds to the counter 110 of fig2 , and a digital signal processor ( dsp ) 312 of fig4 corresponds to the control circuit 112 of fig2 . an embedded antenna 302 is used to transmit or receive rf signals , and the embedded antenna 302 can be modeled as an equivalent capacitance c ant in series with an equivalent resistance r ant . one application of the rf transceiver front - end circuit 300 is supporting reception and transmission of rf signals within the frequency modulation ( fm ) broadcast frequency band of 76 mhz to 108 mhz . it will be appreciated that the rf transceiver front - end circuit 300 satisfies the objective of automatically tuning the embedded antenna 302 for a desired fm channel within the fm frequency band of 76 mhz to 108 mhz . the tuning flexibility offered by the rf transceiver front - end circuit 300 also allows for a wide range of embedded antenna configurations to be used , allowing the circuit to be used in a variety of different products . in an embodiment , an integrated circuit 325 is used for integrating several elements of the rf transceiver front - end circuit 300 . in the description below , elements referred to as being “ on - chip ” are located on the integrated circuit 325 , whereas those elements referred to being “ off - chip ” are not located on the integrated circuit 325 . in an embodiment , all off - chip elements , along with the integrated circuit 325 , are disposed on a pcb 305 for an example , and the pcb has its own equivalent capacitance c pcb . in an embodiment , the shunt inductor 306 is located off - chip , and is used to resonate with the capacitance c ant of the embedded antenna 302 . the shunt inductor 306 is realized as an equivalent inductance l sh . the tunable capacitance circuit 308 is a variable on - chip capacitance circuit that can be discrete or continuous depending on the application and is controlled by a tuning control signal 324 output by the dsp 312 located on - chip . the tunable capacitance circuit 308 is realized as a variable capacitor c var . the on - chip negative transconductance circuit 304 is used to provide a negative transconductance and oscillating with the resonance tank . the negative transconductance circuit 304 is modeled as an equivalent capacitance c − gm in parallel with an equivalent resistance r − gm . at resonance the negative transconductance of the negative transconductance circuit 304 cancels the tank loss of the other elements in the rf transceiver front - end circuit 300 in order to sustain oscillation and produce a tuning oscillation signal 322 . in an embodiment , the tunable capacitance circuit 308 comprises a capacitor array , and can be located either on - chip or off - chip . the capacitance values of the tunable capacitance circuit 308 can be either discrete or continuous , and the tunable capacitance circuit 308 is digitally or analog or mixed analog and digitally controlled with the tuning control signal 324 . in an embodiment , the tunable capacitance circuit 308 is a tunable capacitance array , and both the tunable capacitance circuit 308 and the shunt inductor 306 are connected to the signal path using a shunt configuration . in yet another embodiment , as shown in fig5 , the embedded antenna 302 and the shunt inductor 306 are located off - chip , whereas the negative transconductance circuit and the tunable capacitance circuit 308 are located on - chip . during calibration mode , the negative transconductance circuit 304 is enabled , and the digital counter 310 measures the oscillation frequency of the tuning oscillation signal 322 with respect to a reference clock clkref . the reference clock clkref is a substantially constant clock frequency that can be used as a reference for counting other signals . for instance the reference clock clkref can be a 26 mhz clock produced by a crystal . the digital counter 310 and the reference clock clkref can both be integrated on - chip . the digital counter 310 aids in the tuning process by counting pulses of the tuning oscillation signal 322 during a counting period indicated by the reference clock clkref in order to calculate a counting value . during the tuning process , the digital counter 310 counts the received number of pulses of the tuning oscillation signal 322 during the counting period to calculate the counting value . meanwhile , the dsp 312 calculates an expected number of pulses of the tuning oscillation signal 322 that should be received during the counting period if the rf transceiver front - end circuit 300 is properly tuned to the correct frequency . the digital counter 310 then outputs the counting value to the dsp 312 in order for the dsp 312 to compare the counting value with the expected number of pulses . if the counting value received from the digital counter 310 is close enough , or within a predetermined range , of the expected value calculated by the dsp 312 , then the rf transceiver front - end circuit 300 is considered to be properly tuned . if the counting value is not within the predetermined range of the expected value , the dsp 312 changes the value of the tuning control signal 324 to adjust the variable capacitance c var of the tunable capacitance circuit 308 , thereby adjusting the oscillation frequency of the tuning oscillation signal 322 . once the tuning oscillation signal 322 is within an acceptable range , the dsp 312 latches the desired value of the tuning control signal 324 and then the negative transconductance circuit 304 is disabled for normal mode operation . thus , using the above tuning method , the negative transconductance circuit 304 produces the tuning oscillation signal 322 that is used to adjust or tune the frequency of the rf transceiver front - end circuit 300 . the digital counter 310 counts the oscillation frequency of the tuning oscillation signal 322 and provides this counting value to the dsp 312 as feedback . using the feedback loop , the frequency of the rf transceiver front - end circuit 300 can be tuned quickly and automatically . please continue to refer to fig4 . the rf transceiver front - end circuit 300 has the functions of both transmitting rf signals and receiving rf signals . for receiving rf signals , a low noise amplifier ( lna ) 314 located on - chip is used for amplifying received rf signals that are received through the embedded antenna 302 to produce amplified received rf signals . a receiving mixer 316 located on - chip is used for frequency down converting the amplified received rf signals for further processing . the input impedance of the lna 314 can be modeled as an equivalent capacitance c lna joined in parallel with an equivalent resistance r lna . for transmitting rf signals , a power amplifier 318 located on - chip is used for amplifying rf signals to be transmitted to produce amplified output transmission rf signals for transmission through the embedded antenna 302 . the power amplifier 318 can be realized as an equivalent current source i pa joined in parallel with both an equivalent capacitance c pa and an equivalent resistance r pa . fig6 illustrates a block diagram of an rf receiver front - end circuit 400 . differing from the rf transceiver front - end circuit 300 shown in fig4 , the rf receiver front - end circuit 400 only receives rf signals and does not contain a transmitter function . therefore , the power amplifier 318 used for transmitting rf signals are not included in the rf receiver front - end circuit 400 . for all other elements in the rf receiver front - end circuit 400 , their functions are the same as described above with respect to the rf transceiver front - end circuit 300 . fig7 illustrates a block diagram of an rf transmitter front - end circuit 500 . differing from the rf transceiver front - end circuit 300 shown in fig4 , the rf transmitter front - end circuit 500 only transmits rf signals and does not contain a receiver function . therefore , the lna 314 and the receiving mixer 316 used for receiving rf signals are not included in the rf transmitter front - end circuit 500 . for all other elements in the rf transmitter front - end circuit 500 , their functions are the same as described above with respect to the rf transceiver front - end circuit 300 . the rf transceiver front - end circuit 300 , the rf receiver front - end circuit 400 , and the rf transmitter front - end circuit 500 are well suited for receiving or transmitting fm radio signals . the embedded antenna 302 can have a length of less than λ / 4 , and even much less than λ / 10 , where the wave length λ is related to the desired tuning frequency of the rf front - end circuit used to transmit or receive signals . in addition to the simplicity of the proposed tuning method , another main advantage of using the proposed solution is that the tuning algorithm is very similar to that used for the tuning of an on - chip voltage controlled oscillator ( vco ) used in a synthesizer of local oscillator ( lo ) generation used for a receiver or a transmitter . therefore , the same digital hardware can be re - used for both the vco and embedded antenna tuning . as a result , no extra digital hardware is needed . those skilled in the art will readily observe that numerous modifications and alterations of the device and method may be made while retaining the teachings of the invention . accordingly , the above disclosure should be construed as limited only by the metes and bounds of the appended claims .