Hello everyone..
I need somebody to help me to explain about the prescale and postscale for timer2.
I am not very clear how to choose the prescale and postcale. My circuit using 20Mhz external oscillator on the pic18f252.
Please help me..
Prescaling simply reduces the frequency of the input pulses by a known factor. If 20 MHz is too much, apply the pulse train to an external counter so it does a divide by 20 operation. Then, the input pulses are at a frequency of 1 MHz.
Postscaling is translating the count into engineering units, like RPM. That just relates the value in the counter to some meaningful figure.