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

How to communicate two devices with hardware USRT?

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



Joined: 17 Jul 2009
Posts: 22
Location: Kolkata, India

View user's profile Send private message

How to communicate two devices with hardware USRT?
PostPosted: Fri Oct 16, 2009 3:53 am     Reply with quote

Hi all

I am trying to develop a device (B) which will get some data by communicating with another device (A) with RS232 port. Now device B will process the data and then send it to PC in its COM port.

A<---------------->B<----------------->PC

My problem is I am using PIC18F452 and it has a single hardware USART (C6->Tx, C7->Rx). Using a MAX232 chip I can communicate it with PC. But now I need to communicate with device A also. How can It be possible to communicate with both the devices, because pin C6 and C7 is engaged now.

Thanks in Advance
Amit
andyfraser



Joined: 04 May 2004
Posts: 47
Location: UK

View user's profile Send private message

How to communicate two devices with hardware USRT?
PostPosted: Fri Oct 16, 2009 6:46 am     Reply with quote

Hi,

Have a look at the MAX3100 SPI UART. It is very straightforward to interface to and will give you a second 'real' serial port.

Failing that you can look at the 'soft' UART provided by the compiler. You should search this forum for the limitations on using a software UART.

Andy
www.sharpcontrols.net :: Free custom controls for .NET
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