Society of Robots - Robot Forum

General Misc => Misc => Topic started by: srdp45 on March 29, 2011, 05:46:27 AM

Title: pic16f877a
Post by: srdp45 on March 29, 2011, 05:46:27 AM
Hi, im new to pic and learning now. i want to write pic16f877a program, which takes input from c source code. the output from c code i have saved it in a file(output.txt). that file will be having two values, r and theta values.
my issue is i want to write pic16f877a program which takes this two values(r,theta) that is, it should receive and transfer values to and from microcontroller using rs232, respectively. please help me.
Title: Re: pic16f877a
Post by: waltr on March 29, 2011, 07:42:59 AM
Start with downloading and installing MPLAB and the HiTech C compiler from Microchip (they are free). (
Also download the data sheet for the 16F877A and the Mid-Range Family Reference manual from Microchip.

Next go through this tutorial: (

And do read the Help topics in MPLAB (they are good and contain much useful info).

Then download Microchip App Notes that cover the the parts of PICs you need to use. For example: AN774 is for doing Serial communication using the UART and has example code.

Lastly, do web searches (Google) to find other example code. There is lots out there since the 16F877A is a very popular PIC with hobbist.