PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri Jan 15, 2010 4:45 pm |
|
|
This is not a Proteus forum. It's the CCS compiler forum.
Do you have the CCS compiler ?
To find Proteus schematics for CCS projects, go to Google Images:
http://images.google.com
Search for this:
or just this:
You will see several schematics.
Here is a simple test program for the PIC's serial port.
It sends "Start:" to the serial terminal. Then it reads
characters that are typed into the terminal, and sends
them back to the terminal.
Code: |
#include <16F877.H>
#fuses XT, NOWDT, BROWNOUT, PUT, NOLVP
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
//====================================
void main()
{
char c;
printf("Start: ");
while(1)
{
c = getc();
putc(c);
}
} |
|
|