Hi Srspinho, can I use this code for a revolution counter, revs per minute? I see your display is counts per second. Can I just multiply the COUNT_result with 240, that should give me pulses per min, yes?
Hi Srspinho, can I use this code for a revolution counter, revs per minute? I see your display is counts per second. Can I just multiply the COUNT_result with 240, that should give me pulses per min, yes?
I must be missing something,but what pin is input?
Regards
CharlieM
Using PBP3
MCSPX
I don't see where any tris registers are initialized.
Regards
CharlieM
Using PBP3
MCSPX
Hi,
The code is "generic", ie you need to "fit" it to the device you're using.
First time I've seen it but as far as I can see it uses TMR1 as a counter and TMR0 as the timebase. So the pulses should go to the T1CKI-pin, whichever that is on the particular PIC you're using - RB6 on the 16F628, RC0 on the 16F877 etc.
/Henrik.
Thanks Henrik.
Regards
CharlieM
Using PBP3
MCSPX
Hi c_moore,
sorry for my loooong delay![]()
Henrik is right. BTW, thank you Henrik !
bye
Bookmarks