From the servo controller, I have connected a USB to UART to my laptop. My aim is to construct a C program to send the data from my laptop to the controller to turn the motor. The motor I'm using is servo motor. However, the sample code 'SK40C_16F877A_SC08A.c' provided, the servo controller is connecting to another microcontroller, but in my case, I connect it directly to my laptop.
As I know, SC08A send a command with 4 bytes of data. (1st byte=mode and servo motor channel, 2nd and 3rd byte=servo position, 4th byte=speed of motor). How am I going to send the 4 bytes of data? In other words, how am I activate the USB to UART to pass the data to the controller?
Appreciate much for the help.
Thank you.