Patent attributes
Examples described herein relate to a method and a system for removing the common-mode current. The receiver includes a photodetector, a common-mode adjustment circuit, an analog front-end, an eye scan circuit, and a control unit. The photodetector generates an input photocurrent responsive to a received optical signal. The common-mode adjustment circuit generates an adjusted input current based on the input photocurrent. The analog front-end generates a differential voltage based on the adjusted input current. Based on the differential voltage, the eye scan circuit generates an eye scan information defining a first outer eye and a second outer eye in an eye diagram. The control unit tunes the common-mode adjustment circuit based on a relative height metric of a first height of the first outer eye and a second height of the second outer eye to remove a portion of the common-mode current from the input photocurrent.