Patent attributes
A circuit includes a logic circuit, first and second storage circuits, a timing detection circuit, and a compensation circuit. The logic circuit generates a digital value in response to a first periodic signal. The first storage circuit stores time information in response to a second periodic signal. The second storage circuit stores the digital value in response to the second periodic signal. The timing detection circuit generates a detection signal indicating a timing difference between the first periodic signal and the second periodic signal based on the digital value. The compensation circuit generates adjusted time information based on the time information stored in the first storage circuit and the detection signal.