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 support@ccsinfo.com

PIC-16F877. Problem to receive data.

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







PIC-16F877. Problem to receive data.
PostPosted: Tue Apr 08, 2003 10:21 pm     Reply with quote

Hi

I'm working on a project with PIC-16F877 . I have made a program where I send and receive data between the PIC-16F877 and Hyperterminal on a computer. Everything works ok when I use baud-rate 9600, but when changing the baud-rate to 57600 the PIC-16F877 can only send data!!! The program in PIC-16F877 stop when it is supposed to receive data(getc).
I'm using a 11 Mhz crystall.
___________________________
This message was ported from CCS's old forum
Original Post ID: 13520
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

Re: PIC-16F877. Problem to receive data.
PostPosted: Tue Apr 08, 2003 11:58 pm     Reply with quote

:=I'm working on a project with PIC-16F877 . I have made a program where I send and receive data between the PIC-16F877 and Hyperterminal on a computer. Everything works ok when I use baud-rate 9600, but when changing the baud-rate to 57600 the PIC-16F877 can only send data!!! The program in PIC-16F877 stop when it is supposed to receive data(getc).
:=I'm using a 11 Mhz crystall.
--------------------------------------------------
<PRE>
1. Use an interrupt-driven software receive fifo, instead
of just using getc(). CCS has an example file for this,
called EX_SISR.C.
It's in this folder: c:\Program Files\Picc\Examples
<BR>
2. Use an 11.0592 MHz crystal, instead of an "11 MHz" crystal.
<BR>
3. Use the ERRORS directive in your RS-232 statement. Example:
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, ERRORS)
<BR>
4. Make sure you are using the Hardware USART. This is on
pins C6 and C7 on a 16F877.
<BR>
5. If it still doesn't work, then use a different terminal
program than HyperTerminal.

</PRE>
___________________________
This message was ported from CCS's old forum
Original Post ID: 13522
anil
Guest







Re: PIC-16F877. Problem to send data.
PostPosted: Wed Jun 18, 2003 12:14 pm     Reply with quote

:=Hi
:=
:=I'm working on a project with PIC-16F877 . I have made a program where I send and receive data between the PIC-16F877 and Hyperterminal on a computer. when I use baud-rate 19200, the PIC-16F877 can only receive data!!!,but cannot send data
through the hyperterminal i have created.please help me..it's urgent.
___________________________
This message was ported from CCS's old forum
Original Post ID: 144515364
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