Hi Klaus,
Based on my PIC program, I generate counts from timer0 interrupts and RB0 interrupts for both timer counts and pulse (rising edges) counts respectively. However, I use the Signal generator to send pulses through the RB0/INT for external interrupts. Meanwhile, I am not actually using a MOTOR directly, so my RPM speed value is dependent on the frequency of signal generator. When frequency of signal generator is increased, then the RPM speed should also increase.
My final target is to obtain the RPM speed value within an "Elapsed Time". So, my RPM speed value should be a function of pulse counts, time counts and encoder marks(1024). While the frequency of the crystal oscillator is 20MHz.
I need my formular to reflect this parameters. Please help me out....