sfchew7
Junior Member level 2
I have done some research about it but it is still not functioning. I wish to send something from my circuits to the computer . For example, when the led turns on, the computer will receive a signal/message.something like that. Can someone guide me how to solve the problem ?
I have connected PIC16F877a with ,max 232 IC circuits, serial ports.
here is my coding of the PIC16F877A
#include "16f877a.h"
#fuses XT, NOPROTECT, NoWDT, put, brownout
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
void main()
{
int incode;
while(1)
{
incode = getc(); // Read character from UART
printf( " ASCII = %d \n\r " ,incode); // Display it on
}
}
I tested it with hyper terminal but nothing is appear.
help.Can someone guide me how to solve the problem?
thanks
I have connected PIC16F877a with ,max 232 IC circuits, serial ports.
here is my coding of the PIC16F877A
#include "16f877a.h"
#fuses XT, NOPROTECT, NoWDT, put, brownout
#use delay(clock=4000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
void main()
{
int incode;
while(1)
{
incode = getc(); // Read character from UART
printf( " ASCII = %d \n\r " ,incode); // Display it on
}
}
I tested it with hyper terminal but nothing is appear.
help.Can someone guide me how to solve the problem?
thanks