SK40C GD02 Sample Code v1.0 NOT WORKING

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

SK40C GD02 Sample Code v1.0 NOT WORKING

Postby whatsap45 » Wed Feb 19, 2014 3:17 pm

SK40C GD02 Sample Code v1.0 [MPLAB X]

As titled, i have tried to upload the program but it failed every time. The errors are depicted in the diagram as shown below. Oh, I'm using PIC16F877A, but i reconfigured it anyway, so I think it shouldn't be a problem.
Attachments
com.PNG
The errors
whatsap45
Novice
 
Posts: 25
Joined: Sun Feb 02, 2014 4:17 pm

Re: SK40C GD02 Sample Code v1.0 NOT WORKING

Postby yonghui » Wed Feb 19, 2014 4:51 pm

if i remember correctly, the project sample is not compiled for PIC16877A.

you will need to do modification to the source code.
from the reported error, u can see the compiler is complaining about undefined identifiers.
please modify the void UART_INIT(void) function to fit for PIC16F877A: the UART register name are different, refer to PIC16F877A datasheet for setting up UART for transmit and receive.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

Re: SK40C GD02 Sample Code v1.0 NOT WORKING

Postby whatsap45 » Wed Feb 19, 2014 5:55 pm

alrite.. let me revise it and come back to you... thanks for the immediate reply tho..
whatsap45
Novice
 
Posts: 25
Joined: Sun Feb 02, 2014 4:17 pm


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 17 guests

cron