Page 1 of 1
PIC16F877A

Posted:
Fri Apr 12, 2013 6:39 pm
by Xdot2
i have sure the pin assignment is according to the source code of PIC16F876A..but i can't programmed it on pic16877a..how should i do or make an adjustment to that source code to program it on my pic.
Re: PIC16F877A

Posted:
Fri Apr 12, 2013 7:01 pm
by shahrul
Print screen your MPLab.
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 7:53 am
by robosang
Yup, printscreen what you get from the programmer or MPLAB IDE.
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 9:24 am
by Xdot2
from the source code PR18
this is for SC16A coding
#define L1 0x4A //servo S10
#define L2 0x4B //servo S11
#define L3 0x4C //servo S12
#define R1 0x47 //servo S7
#define R2 0x48 //servo S8
#define R3 0x49 //servo S9
I try convert the program to SC08A
#define L1 0x44 //servo S4
#define L2 0x45 //servo S5
#define L3 0x46 //servo S6
#define R1 0x41 //servo S1
#define R2 0x42 //servo S2
#define R3 0x43 //servo S3[/code]
This is what I has been change on the program.. Isn't right??
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 9:37 am
by Xdot2
then One more thing is I have been change the mode on the program.. I try to change only one mode to play. there is no sw1 sw2 and sw3.. and only call for one program to play... this is how I call the subprogram.. so this is the code that I was made how to call it.. pls help me to check either it is true or not..
send_cmd(L1, mid_L1, 0); //set left leg to mid position
...............................
................................. //set right leg to mid position
delay(200000); //delay for certain period
}
{
while(1)
{
forward();
}
}
// functions
//=============
void forward(void)
{
//shift body weight to left leg
while(1)
{
{
//right leg moved forward..................
........
}
}
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 10:55 am
by yonghui
cant program or cant compile? if code problem then cant compile.
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 5:08 pm
by Xdot2
no problem for compile.. everything is OK when compile the program.. but the problem is I can't move the robot.
Re: PIC16F877A

Posted:
Sat Apr 13, 2013 6:41 pm
by robosang
Please, write your problem clearly, you confuse people and no one can help you.
Have you check whether the SC16 protocol same as SC08?
Re: PIC16F877A

Posted:
Fri May 24, 2013 12:58 am
by Xdot2