Serial port output to PIC16F628 to motor

Thread Starter

bathini

Joined Jan 25, 2009
8
Friends

I want to control a DC Motor from using packets. I am thinking I will generate packets using PC. My thinking was send 46bits from the computer to a serial port and then the packet gets shifted to serial to parallel shift registers( The 74HCT164 registers will be cascaded to meet the 46 bit requirement). Once the all data is on the registers I output data to the PIC16F628 to control the motor (Speed, Stop, directional).

You may ask why need all 46bits? Good question, well 14 bits is going to be for preamble, 8 bits is going to be for address, 8 bits for Direction and speed(5 bits for speed) , 8 bits for error detection and lastly a bit for start transmitt and a bit for terminating.

Any ideas? I just got myself a USB to serial cable for sending data. Thanks

Bathini
 
Top