During the first stage, uknown voltage (highlighted source on the left side) is being integrated for a preset amount of time. After that, the second, known voltage of oposite polarity is integrated. Duration of the second stage signal is proportional to the unknown voltage. Ux=-N/2 where N is number displayed on the 7seg.