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

Can it work ?

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



Joined: 20 Oct 2006
Posts: 23

View user's profile Send private message

Can it work ?
PostPosted: Thu Mar 22, 2007 9:01 am     Reply with quote

I need to use 2 Rx and 1 Tx then i use 74HCT157 for select data source

Please tell me.Can it work?

I 'm using PIC18F452
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Mar 22, 2007 10:32 am     Reply with quote

Sure, put the multiplexer chip between the PIC and the RS232 level shifter.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Humberto



Joined: 08 Sep 2003
Posts: 1215
Location: Buenos Aires, La Reina del Plata

View user's profile Send private message

PostPosted: Thu Mar 22, 2007 11:53 am     Reply with quote

Also you can add "extra Rx hardware" functionalities using the INT0..INT2 (pins RB0...RB2)
with the advantage that it will get an interrupt (EXT_INT) in the Start bit of the first
arrived character and do not need any polling nor multiplexing overhead
generated by handling the 74HCT157.


Humberto
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Re: Can it work ?
PostPosted: Thu Mar 22, 2007 3:31 pm     Reply with quote

soulweed wrote:
I need to use 2 Rx and 1 Tx then i use 74HCT157 for select data source

Please tell me.Can it work?

I 'm using PIC18F452

Yes, it can. But keep in mind that you will get the RX interrupt only from the RX line that's commutated to the PIC.
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