ariza
Joined: 16 Mar 2005 Posts: 13
|
Problem with serial communication |
Posted: Tue Mar 14, 2006 10:26 am |
|
|
Hi everybody;
I am trying to send data from pic16f877 to pc by using rs232.I use hyper terminal.I can send data but there is always a delay.After oppening any file on my desktop i see the data.Data is correct but as you can see i can only get the new data after opening a new folder/file/explorer page with my pc.
I used
[code]
#include <16F877.h>
#use delay(clock=4000000)
#fuses NOWDT,XT, NOPROTECT,NOLVP
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=9)
.
.
.
long value=0;
value++;
.
.
.
printf("%ld\n\r", value);
[/code]
[quote] baud rate is9600
data bits:8
synch none
stop bit 1
flow control none[/quote]
I set character delay to 100 ms at ASCII settings. And i tried the same things on another computer.The results were the same.
why do you think this problem occurs.Thanks for your help.
ARIZA
Last edited by ariza on Tue Mar 14, 2006 10:47 am; edited 3 times in total |
|