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

Soft RS232

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



Joined: 03 Dec 2005
Posts: 182
Location: Australia SA

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

Soft RS232
PostPosted: Sat Apr 01, 2006 6:42 am     Reply with quote

Hi,
Just a note on how I resolved Software RS232, Sending Garbage Characters. I could get the RS232 to work on the built in UART, however when program for software UART, I was receiving Garbage Characters. Confused
Code:
#use rs232(Stream=Wview,baud=9600,xmit=PIN_B7,rcv=PIN_B6,bits=8)

After reprogramming my code under RTOS, I found the RS232 working as expected. I the reprogram back and found that the interrupt had cause this problem. After disabling the interrupt All works Well Rolling Eyes
Code:
#use rs232(Stream=Wview,baud=9600,xmit=PIN_B7,rcv=PIN_B6,bits=8,DISABLE_INTS)


You probly need to add E: in your RS232 The PICŪ is Sending Garbage Characters. (To add DISABLE_INTS in your #use rs232 if you are using interrupts) Wink


Andrew
_________________
What has been learnt if you make the same mistake? Wink
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