Hi all,
About to start a new project,... fairly new to PIC and the MICRO scene - but it seems as the way to go to implement what I need. I'm just needing some feedback as to whether I'm approaching this the right way, or anything that may help me.
What I have is an input pulse train, that changes according to the speeed of a vehicle. Range is 0-400Hz.
What I need is to modify the frequency of the pulses, by way of some PIC code, to provide a different rate proportional to the input.
What I was thinking of was a 16F876, using capture to determine the input frequency, do some 'maths' against the value captured and then using PWM to establish an output frequency.
Does this sound the right way to approach the problem?
I think my problem might be the 'maths' bit, as I need to somehow scale it down by values like 3.08/3.45 or 3.08/3.7 or 3.08/3.9 or 3.08/4.11 - depending upon reading the mode set by a couple of dip switches.
Any help, advice, pointers, etc,.. would be much appreciated.
Thanks,
Jim.....
About to start a new project,... fairly new to PIC and the MICRO scene - but it seems as the way to go to implement what I need. I'm just needing some feedback as to whether I'm approaching this the right way, or anything that may help me.
What I have is an input pulse train, that changes according to the speeed of a vehicle. Range is 0-400Hz.
What I need is to modify the frequency of the pulses, by way of some PIC code, to provide a different rate proportional to the input.
What I was thinking of was a 16F876, using capture to determine the input frequency, do some 'maths' against the value captured and then using PWM to establish an output frequency.
Does this sound the right way to approach the problem?
I think my problem might be the 'maths' bit, as I need to somehow scale it down by values like 3.08/3.45 or 3.08/3.7 or 3.08/3.9 or 3.08/4.11 - depending upon reading the mode set by a couple of dip switches.
Any help, advice, pointers, etc,.. would be much appreciated.
Thanks,
Jim.....