The doubts about using pic16f887 to capture speed

General MicroView Support area - You have questions, find your answers here.

Moderators: phalanx, Help@GeekAmmo, marcus@geekammo

The doubts about using pic16f887 to capture speed

Postby ling1995 » Wed Apr 05, 2017 12:16 am

Good afternoon~all,thanks for reading my post.

I am a student majoring in electronics. Recently I am involved in a project of using PIC16F887.(this is its datasheet:
http://www.kynix.com/uploadfiles/pdf65976/PIC16F887-E2fPT_977607.pdf )to capture the speed of machine. Unfortunately,The value is so unclear when there it’s lower that 31Hz. On the contrary,it’s normal if it’s higher that 31Hz. After that,I use lcd and pwm to try to solve this problems,it still doesn’t give the right value. Any body here can help me to analyze the troubles?
This is my main program:
Image
The capture value:
Image

Thank you in advance!
ling1995
 
Posts: 2
Joined: Wed Apr 05, 2017 12:05 am

Re: The doubts about using pic16f887 to capture speed

Postby Valen » Wed Apr 05, 2017 10:37 am

Screenshots of code are hard to copy-paste into an IDE program to make a test program. Or are you suggesting we could hand-transcribe it?

Please post ALL the code in text form. In between [code ] [/ code] tags to reduce the length of your post and make it better readable.

That aside, I don't understand what kind of speed you are measuring.
Valen
Support Volunteer
 
Posts: 1544
Joined: Wed Dec 22, 2010 2:05 am

Re: The doubts about using pic16f887 to capture speed

Postby scotta » Thu Apr 06, 2017 9:09 am

How is this related to the Sparkfun MicroView, which is what this forum category is meant to provide support for?
scotta
 
Posts: 42
Joined: Thu Jul 24, 2014 1:31 pm
Location: Toronto, Canada


Return to Microview Support

Who is online

Users browsing this forum: No registered users and 1 guest