Hey all, I'm a student and a very very new in microcontroller.
But my teacher gave me a hard project: 'Control DC Motor (Servo motor) using PIC 16F877A , control and receive data from computer'.
I've written a simple program ( in Delphi) to communicate with COM1 via RS232 using Max232. But now, the big problem is, I don't know the way PIC 16F877A interact with the data it received from PC and how it transfer data to PC ( maybe via TX and RX).
Please help me a sample CCS program for this project because the deadline for my project is about 1 week. Help me please, and I promise you I'll learn hard to program PIC like all oF you but now please help me pass through this misson.
Thanks you in advanced.
My motor is 24V and has an encoder 400 pulses.
Mail: nguyenlongvp@gmail.com
But my teacher gave me a hard project: 'Control DC Motor (Servo motor) using PIC 16F877A , control and receive data from computer'.
I've written a simple program ( in Delphi) to communicate with COM1 via RS232 using Max232. But now, the big problem is, I don't know the way PIC 16F877A interact with the data it received from PC and how it transfer data to PC ( maybe via TX and RX).
Please help me a sample CCS program for this project because the deadline for my project is about 1 week. Help me please, and I promise you I'll learn hard to program PIC like all oF you but now please help me pass through this misson.
Thanks you in advanced.
My motor is 24V and has an encoder 400 pulses.
Mail: nguyenlongvp@gmail.com
Last edited: