A circuit for tuning an impedance matching network is disclosed. The circuit includes a current sensor, a control circuit coupled to the current sensor and a reference current source and a tunable capacitor coupled to the control circuit. The control circuit is configured to generate a control signal based on an output of the current sensor, wherein the control signal is configured to vary a capacitance of the tunable capacitor.