PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Mon Nov 14, 2005 12:57 am |
|
|
What pins are you using ?
Try this simple program with a terminal program running on your PC.
This program just returns the same character that was sent to it.
Substitute your pins for B2 and B1. See if it works.
If it doesn't work, then post your version of the compiler.
Code: | #include <16F628.H>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
#use rs232(baud=9600, xmit=PIN_B2, rcv=PIN_B1, ERRORS)
//======================================
void main()
{
char c;
while(1)
{
c = getc();
putc(c);
}
} |
|
|