Selecting a signal among the plurality of phase-shifted signals produced by the ring oscillator