Im a computer engineer who recently started working with PIC microchip controllers. Im currently working on a project that involves taking signals from the odometer sensor in the instrumentation panel of a car and based on those signals gives high signals on 4 different outputs of the controller. I have a complex problem involving the above. The sensor gives an output in terms of pulses...5 pulses represent a kilometer travelled. I want to measure distance travelled and based on this give output signals representing distance. For 3000km this gives 600 pulses, 5000km gives 1000 pulses, 10000km gives 2000 pulses and 15000km gives 3000 pulses. I have written code for the chip such that an input representing say 3000km(600 pulses) gives an output of a high signal on one of the output pins and so on and so forth for the rest of the distances. Now the challenge is making sure that the chip is able to distinguish between the number of pulses. How can this be achieved electronically...I have heard the term 'digital frequency divider' in some forums but have no idea what that is. please someone shed some light on this issue.