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

Connecting multiple TX to a single RX

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



Joined: 06 Feb 2012
Posts: 6

View user's profile Send private message

Connecting multiple TX to a single RX
PostPosted: Sun May 20, 2012 11:01 am     Reply with quote

Hello everybody,

I am planning to design a system with one control unit (PIC) and 8 slave units(8 PICs) and the communication will be established in two ways.

I am sending from control TX to slave RX's by a 3-to-8 line decoder to multiplex my TX signal and choose the correct receiver.

However I am having trouble to create the opposite. I only want to receive data from the pic that the controller unit desires. I tried 74HC151 8x1 MUX but could not get any success.

Is there any way to implement this with only ccs c side.

My best regards
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Sun May 20, 2012 11:32 am     Reply with quote

I don't see a reason why 74151 shouldn't work for logic level UART interface. A pure software solution is possible as well:
- define addresses for individual slaves and make them work after a selection command only.
- disable slave UART TX pins by default, enable it only for the selected device

This way RX and TX can be connected without multiplexers
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Mon May 21, 2012 2:01 am     Reply with quote

To elaborate a bit more:
- When total wire length is less then 3 meters you could consider using I2C as it is faster and easier to implement.
- For the software UART solution there are many UARTS with an Address Detect Mode. Most PIC18 and few PIC16 processors have such an UART and can make software design a lot easier. More info on addressable UARTS in Microchip AN774: Asynchronous Communications with the PICmicro USART
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