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

Some doubts regarding PCM 3.169 USART Bug ??

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



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

Some doubts regarding PCM 3.169 USART Bug ??
PostPosted: Wed Jul 04, 2007 11:12 pm     Reply with quote

Hi,

MCU: 16F648A
PCM ver.: 3.169

I am aware that the PCM 3.169 compiler has a bug, when used with 16F648A, the USART functions like getc, putc etc. do not work, I have implemented the workaround for this (posted by PCM Programmer ina earlier post).

Now I am using RS 485 instead of RS 232, does the workaround need any changes (in RS 485 an enable pin is used, in my case it is pin_b5).

Kindly advise..

thanks
arunb
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 04, 2007 11:50 pm     Reply with quote

When you refer to some posted code, you should provide a link to it:
http://www.ccsinfo.com/forum/viewtopic.php?t=26631&start=8
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Thu Jul 05, 2007 12:23 am     Reply with quote

Thanks for the tip...

Will the code work for RS 485 as well...

arunb
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jul 05, 2007 12:43 am     Reply with quote

No it won't. RS-485 uses an enable pin for the transmit driver.

You need to create a routine similar to the one shown in this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=14445&highlight=trmt
arunb



Joined: 08 Sep 2003
Posts: 492
Location: India

View user's profile Send private message Send e-mail

RE:
PostPosted: Thu Jul 05, 2007 1:55 am     Reply with quote

Hi,

I just noticed a problem in the receive routine using interrupt (INT_RDA).

While sending a stream of characters from the PC the PIC does not receive them correctly... but if the stream is slowed down , then the PIC receives the data correctly, is there any way to speed up the receive process. In the built-in getc function I didi not have this problem....

thanks
arunb
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