CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Problem with serial communication

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ariza



Joined: 16 Mar 2005
Posts: 13

View user's profile Send private message

Problem with serial communication
PostPosted: Tue Mar 14, 2006 10:26 am     Reply with quote

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
Eakle(not login)
Guest







PostPosted: Tue Mar 14, 2006 10:33 am     Reply with quote

Pls. follow this link.

http://www.ccsinfo.com/forum/viewtopic.php?t=26323&sid=bc49bd843f3d6b802dee35ee4fcaca52


Thanks.
ariza



Joined: 16 Mar 2005
Posts: 13

View user's profile Send private message

PostPosted: Tue Mar 14, 2006 10:48 am     Reply with quote

I solved my problem with serial communications.The answer was the bit numbers.
THANX A LOT
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group