SN-HC-SR04 + PIC16F887

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

SN-HC-SR04 + PIC16F887

Postby engkiang » Sun Aug 17, 2014 12:27 am

Dear Sir/Madam,
Good day, I'm using the MPLAB X + XC8 to compile the same source code that provided in the 'SN-HC-SR04 + PIC16F887' page. However the compile looks like 'BUILD SUCCESSFUL' but from the code itself the MPLAB IDE showed an error for '__delay_us();' as 'unable to resolve identifier __delay_us' error.
My question, this error detected by MPLAB X IDE will cause the code is not working?
Thanks.

Regards,
EK Tan
engkiang
Newbie
 
Posts: 15
Joined: Mon Aug 03, 2009 11:42 pm

Re: SN-HC-SR04 + PIC16F887

Postby Idris » Mon Aug 18, 2014 8:43 am

Hi engkiang,

Since the build is SUCCESSFUL (ignore the error on __delay_us), did you try to upload the code to PIC? Is it works?
Cytron Technologies invest time and resources providing tutorial, training and support for STEM education and maker movement. We need your support by purchasing products from Cytron Technologies. Thanks.
http://www.cytron.com.my
User avatar
Idris
Moderator
 
Posts: 409
Joined: Thu Mar 22, 2012 5:28 pm
Location: Pulau Pinang

Re: SN-HC-SR04 + PIC16F887

Postby engkiang » Mon Aug 18, 2014 2:52 pm

Hi Idris,
Thanks for the reply, I haven't get any hardware ready to test it out. Hence I'm new to embedded programming and PIC microcontroller but I'm in progress purchase the hardware as well.
engkiang
Newbie
 
Posts: 15
Joined: Mon Aug 03, 2009 11:42 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 9 guests