Serial Servo Controller Control Using PIC16F84 w/ Hitech C Compiler
Hi there,
currently, I'm using PIC16F84 and serial servo controller to control two servo motors.
According to the manual, the number of lines between the servo controller and PIC are three for a serial connection.
Probably I will use three B ports (0~2) to make a connection. Then, what am I going to do?
I do read the manual but I don't clearly understand how I use "SC" and "!" commands through three lines.
Can anyone provide simple C codes to speed and position control?
I appreciate your help. Thanks. Jun
currently, I'm using PIC16F84 and serial servo controller to control two servo motors.
According to the manual, the number of lines between the servo controller and PIC are three for a serial connection.
Probably I will use three B ports (0~2) to make a connection. Then, what am I going to do?
I do read the manual but I don't clearly understand how I use "SC" and "!" commands through three lines.
Can anyone provide simple C codes to speed and position control?
I appreciate your help. Thanks. Jun
Comments
We cannot provide you with PIC or C code. These forums are for support of Parallax products including their microcontrollers. The documentation for the serial servo controller goes into detail on the format of the servo commands and includes sample code in Parallax Stamp Basic. Microchip has support forums for PIC users and I believe Hitech has similar forums for their C compiler. You should ask there about transmitting data in serial format at 2400 Baud, 8 bits, 1 stop bit, normal (true) +5V logic levels. The Baud is jumper selectable between 2400 Baud and 38.4KBaud with the default at 2400 Baud.
Post Edited (Mike Green) : 10/15/2008 5:03:10 AM GMT