A reference current circuit has an input configured to receive an input
current, a first transistor, a second transistor, and an output
configured to provide a reference current. The input is directly
connected to a control input of the second transistor and a first
terminal of the first transistor, and is connected via a first resistor
to a control input of the first transistor. The output is connected to a
first terminal of the second transistor. A reference node is connected
via a second resistor to the control input of the first transistor,
directly to a second terminal of the first transistor and via a third
resistor to a second terminal of the second transistor.