the question is bit confusing, ill try give a very crude answer:
1. if u want to just amplify signal voltage from 5V to 12V, use comparator from 0V to 12V rail and give 2V to 4V input to inverting input as reference and signal on non inverting terminal. U will get 0V to 12V p-p square wave signal. Also, there are some buffer IC's can be used to increase voltage levels.
2. If u looking for frequency multiplier, as FvM and logicon already said, use PLL to increase frequency or 8bit MCU to measure the period using capture CCP module and then generate square wave at 50% duty cycle from another CCP by decreasing the period or in effect increasing the frequency by multiplication factor u want.
3. As logicon said, u can use 555 IC to make both voltage to frequency and frequency to voltage converter, Google it, u will get lots of circuits.
hope that helps.