I think in a possible solution:
Connect my pulse wire to RB6/T1CKI, that is Timer1 input pin, PORTB. Hope I can use RB Port Change Interrupt at the same time as Timer1 is ON. If it is possible, then:
To get pulse count:
-when INTCON.0=1 (alias RBIF) interrupt onchange in PORTB, increment MyCounter variable 'manually',
To get time interval:
-use Timer1 and calculate speed on each Timer overflow interrupt PIR1.0=1 (alias TMR1IF) or whenever i want
Is it possible that solution??
PD:
[It has come to my mind another question about Interrupts Identification in a new Thread...'Interrupts Identification']
Last edited by RodSTAR; - 21st April 2008 at 09:39.
"Beethoven had his critics too, see if you can name 3 of them"
Bookmarks