need help about distance measurement using ping ultrasonic sensor and PIC16f84a

Status
Not open for further replies.

rhee2

Newbie level 2
Joined
Jul 18, 2010
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
hello everybody,,
I've a problems in my project,,
I want to measure distance using ping ultrasonic sensor and PIC16f84a with 4Mhz xtall and display it in 8 bit data,, when the distance is 300cm led in PORTB show ffh
I've already made the program,, but this program doesn't run well,,
the counter is reset when the distance 125cm,,
the program list is below :
can you help me to fix this program,,,
thanks for your attention,,
big respect,,
 

I use MPLAB IDE v7.60 with compilers Hitech ANSI C compiler,,
can you help me to fix this program Mr. jerin,,
thanks before,,
big respect,,
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…