I've implemented tachometers with Hall effect sensors, using the PULSIN command. Works very well.
I've implemented tachometers with Hall effect sensors, using the PULSIN command. Works very well.
Dear ErnieM
Thanks alot for replying my qyestion. I am going to use ugn3113 for measuring the time of every complete wheel revolution.I use this time for controlling the other section of plant.The maximum time of interval is about 0.8 sec.Can you help me for writing basic code for this part of my program?
Hi dear J. Mark Wolf
thanks alot
thr pulsin command is very good for use but i have a question.Does this instruction work in the background of main program? This means that can PIC execue other instructions in main program when the PULSIN command is executed at the same time.
If you need something running in background, you need to use internal Timer or CCP module or something like that. Now it works in background.
With interrupts it will work great. Start a timer on rising edge of your signal and stop it on the next. OR, use a prescaller to get some sample of it, then divide it by the prescaller value. That way you may avoid some odd results.
read the following document
http://ww1.microchip.com/downloads/e...Doc/41214a.pdf
Last edited by mister_e; - 20th May 2006 at 18:26.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks