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

RS232 Problem with ICD

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







RS232 Problem with ICD
PostPosted: Fri Mar 25, 2005 4:19 pm     Reply with quote

I guys,

I have a lot of problem using software RS232.
In my application a PC sends a command and receives an answer from a 18F2320@ 40Mhz Board.

Hardware is ok because I'm porting a program written in Basic Pro that works perfectly.

I'm using lastest PCH 2.222
here the RS232 declaration :

#use rs232 ( STREAM = PC_SW_UART, BAUD=38400, XMIT=PC_SERTX, RCV=PC_SERRX, BRGH1OK ,FORCE_SW, ERRORS, DISABLE_INTS )

where PC_SERTX and PC_SERRX are PORTA.2 and PORTA.3.

I have two kind of problems :

1) When Precompiler directive ICD=TRUE is set PIC is not able to receive anything from PC link and so I'm not able to debug Confused

2) With ICD=FALSE Software RS232 works quite fine but depending on the routine called, a back message is generated and after that the RS232 stops to work for a while (let say about 5 secs).

I dind't add on the code any further initialization for PORTA except the setup_port_a( NO_ANALOGS );

I'm using fget and fput with stream ID = PC_SW_UART

have you any idea of what is wrong ?

Thank you so much

Paolo
scanpa
Guest







PostPosted: Fri Mar 25, 2005 4:32 pm     Reply with quote

ops:

PCH version is 3.222
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