convert the frequency to 0 - 5 volt
Frequency of what? How will you convert that frequency to a voltage?