A current to frequency converter comprising: a node configured to be coupled to a photodetector and to receive a photo-current from the photodetector; a capacitor having a first terminal and a second terminal and configured to accumulate electrical charge derived from the photo-current on the first terminal and the second terminal; a switch network configured to selectively couple one of the first terminal and the second terminal to the node; a Master-Slave Flip Flop coupled to the switch network and configured to operate the switch network to toggle which of the first terminal and the second terminal is coupled to the node based on a voltage at the node; wherein the MS FF comprises: a first latch having an enable input, a data input, and a latch output; a second latch having an inverted enable input, a data input, and a latch output, the latch output of the first latch coupled to the data input of the second latch and to the switch network; and a first inverter coupled between the latch output of the second latch and the data input of the first latch, a voltage reference configured to generate a first reference voltage; and a comparator coupled to the node, the voltage reference, the enable input of the first latch and the inverted enable input of the second latch, wherein the comparator is configured to compare the voltage at the node with the first reference voltage, provide an output signal at a first level to the enable input of the first latch and the inverted enable input of the second latch in response to a determination that the voltage at the node exceeds the first reference voltage, and provide the output signal at a second level to the enable input of the first latch and the inverted enable input of the second latch in response to a determination that the voltage at the node is less than the first reference voltage; wherein the second latch of the MS FF is configured to generate a pulse signal at its latch output based on the output signal received from the comparator, the pulse signal having a frequency corresponding to an intensity of light incident on the photodetector. a node configured to be coupled to a photodetector and to receive a photo-current from the photodetector; a capacitor having a first terminal and a second terminal and configured to accumulate electrical charge derived from the photo-current on the first terminal and the second terminal; a switch network configured to selectively couple one of the first terminal and the second terminal to the node; a Master-Slave Flip Flop coupled to the switch network and configured to operate the switch network to toggle which of the first terminal and the second terminal is coupled to the node based on a voltage at the node; wherein the MS FF comprises: a first latch having an enable input, a data input, and a latch output; a second latch having an inverted enable input, a data input, and a latch output, the latch output of the first latch coupled to the data input of the second latch and to the switch network; and a first inverter coupled between the latch output of the second latch and the data input of the first latch, a first latch having an enable input, a data input, and a latch output; a second latch having an inverted enable input, a data input, and a latch output, the latch output of the first latch coupled to the data input of the second latch and to the switch network; and a first inverter coupled between the latch output of the second latch and the data input of the first latch, a voltage reference configured to generate a first reference voltage; and a comparator coupled to the node, the voltage reference, the enable input of the first latch and the inverted enable input of the second latch, wherein the comparator is configured to compare the voltage at the node with the first reference voltage, provide an output signal at a first level to the enable input of the first latch and the inverted enable input of the second latch in response to a determination that the voltage at the node exceeds the first reference voltage, and provide the output signal at a second level to the enable input of the first latch and the inverted enable input of the second latch in response to a determination that the voltage at the node is less than the first reference voltage; wherein the second latch of the MS FF is configured to generate a pulse signal at its latch output based on the output signal received from the comparator, the pulse signal having a frequency corresponding to an intensity of light incident on the photodetector.