Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 27th August 2008, 09:44 PM   (permalink)
Default 2 wire to 1 wire RS232 and vice versa

Hi,

I have a MCU with hardware RX+TX lines, I want to make these into a single RX/TX line with open collector outputs so I can connect to a multidrop bus.

I do have a circuit using NPN+PNP transistorsa that works but it echos everything I send back to MCU and its not a single chip soltuion as I'd really like, anyone point me at a nice small IC they know that fit's the job? or tell me what sort of IC I should be looking for?


P.S. TTL Levels

Thanks

Steve

Last edited by Scarr; 27th August 2008 at 11:40 PM.
Scarr is offline  
Old 28th August 2008, 12:24 AM   (permalink)
Default

Hi Steve,

Just throw away the echo Rx character each time you transmit a byte. I've done this on both the PC side and on the MCU side without problem and with very little overhead. As you've noted, the echo character is only a concern when you're transmitting characters.

Mike
Mike, K8LH is online now  
Old 28th August 2008, 12:35 AM   (permalink)
Default Mike

Mike,

I am throwing chars away currently but as there are lots of places where I send characters it's a lot of code overhead, I thought there would be a way of sorting (blocking) the RX when TX'ing using a line driver / buffer or something



Thanks

Last edited by Scarr; 28th August 2008 at 12:36 AM.
Scarr is offline  
Old 28th August 2008, 12:38 AM   (permalink)
Default

I throw away the echo Rx character in my low level driver. It takes something like three instructions (assembly). How are you doing it?

Mike
Mike, K8LH is online now  
Old 28th August 2008, 04:56 AM   (permalink)
Default

How about this device?

http://datasheets.maxim-ic.com/en/ds/DS2480B.pdf
__________________
"Remember, you're special.....just like everyone else."
rezer is offline  
Old 28th August 2008, 08:45 PM   (permalink)
Default Rezer your the man :)

Absolutly fantastic this is exactly what I was looking for, single IC, small footprint and all my hassle gone, thanks again.

P.S. Mike I'm using BASCOM AVR with thier built in routines so it's not as easy for me to dump echo, but thanks for help anyway.
Scarr is offline  
Reply

Bookmarks

« Irc | Robot Lesson »
Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
RS232 TX, RX & GND wire colors? William At MyBlueRoom Electronic Projects Design/Ideas/Reviews 2 24th August 2008 04:10 PM
Making inputs to outputs & vice versa Suraj143 Micro Controllers 2 8th January 2008 11:10 AM
RJ11 to USB convertor vice versa Jan Bos Electronic Projects Design/Ideas/Reviews 2 13th September 2007 01:34 AM
current-voltage converters and vice-versa Tori Electronic Projects Design/Ideas/Reviews 2 4th October 2004 04:10 PM
3.3v convert 5v and vice versa mikemikemike Electronic Projects Design/Ideas/Reviews 4 7th November 2003 03:19 PM



All times are GMT. The time now is 05:42 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker