6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Tue May 07, 2024 10:31 am

All times are UTC




Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: My RS-232 / 6551 Design
PostPosted: Thu Feb 18, 2021 7:36 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
I *THINK* I've finished my design in regards to my serial port. I plan on using a 65C51 (and work around the bug) or use an old-school Rockwell version (which I have found works in my other design).

I also want a real serial port that could communicate with my other legacy computers like my Apple II or C64. So I'm hoping I have implemented all of this correctly. Especially the hardware handshaking/etc.

I'm certainly interested in the opinions and advice of you guys.

Thanks!


Attachments:
RS232.PNG
RS232.PNG [ 81.72 KiB | Viewed 963 times ]

_________________
Cat; the other white meat.
Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 8:02 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
Why are TX and RX going through the line driver and receiver but the control lines going to the same connector are not?

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 8:45 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
Hmm. Good question.

I thought the control lines went directly to the 6551.
So the DTR/DSR and RTS/CTS also get translated?

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 9:26 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
cbmeeks wrote:
Hmm. Good question.

I thought the control lines went directly to the 6551.
So the DTR/DSR and RTS/CTS also get translated?

Yes, everything. It might be good to go through my RS-232 primer.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 9:32 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
Ah, obvious fubar on my part. For some reason, I was thinking those are just plain TTL levels. I'll rework that and try again. :-)

Thanks!

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 9:40 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
The popular MAX232 has two line drivers and two line receivers, commonly used for TX, RX, RTS, and CTS. If you also want DSR and DTR, you'll need an extra line driver and receiver pair. If you already have ±12V (or even ±9V—it's not critical) on the board for other things anyway, you can save board space by using something like the 16-pin MC145406 triple line driver and receiver which does not need any charge-pump capacitors.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 9:55 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
Ah! OK. That makes more sense. Most examples I have seen really don't utilize DSR/DTR and sometimes not even RTS/CTS.
I couldn't figure out how to get all of those pins into the MAX232 which is one reason why I thought those were TTL.
I've learned more about RS-232 today than I have in the last 10 years. LOL

To be honest, I only went with the MAX232 because I have some. I will investigate the MC145406 chip as a replacement.

Thanks again.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:02 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
cbmeeks wrote:
Hmm. Good question.

I thought the control lines went directly to the 6551.
So the DTR/DSR and RTS/CTS also get translated?

Yes. If you use a MAX238 you will be able to accommodate the control lines in a single device. If you refer to my white paper on interfacing the 28L91 I show a suitable DTE-to-DCE hookup on page 17.

Attachment:
File comment: Interfacing the 28L91
28l91_interfacing.pdf [374.21 KiB]
Downloaded 68 times

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:03 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
GARTHWILSON wrote:
If you also want DSR and DTR, you'll need an extra line driver and receiver pair.

That requirement may be implemented with a MAX238.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:08 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
It looks like the MC145406 is obsolete on Mouser.

What about this one?

https://www.mouser.com/ProductDetail/595-SN75C1406N/

Pretty cheap and has 3 drivers/receivers.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:10 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
cbmeeks wrote:
Ah! OK. That makes more sense. Most examples I have seen really don't utilize DSR/DTR and sometimes not even RTS/CTS.

Use of CTS/RTS handshaking is de rigueur above 9600bps in most cases in which handshaking is required. XON/XOFF handshaking becomes unreliable above that speed.

Quote:
To be honest, I only went with the MAX232 because I have some. I will investigate the MC145406 chip as a replacement.

I recommend the MAX238. The MAX238 uses the same charge pump caps as the MAX232. My POC V1.2 unit has two MAX238s to handle the four serial channels.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:11 pm 
Offline
User avatar

Joined: Wed Aug 17, 2005 12:07 am
Posts: 1207
Location: Soddy-Daisy, TN USA
Thanks BDD.

I will look into the MAX238 and your document above.

EDIT
Forgot to mention that it would be great to only have a 5V supply but I could possibly put in a 9/12V and step down to 5V. But it seems the MAX238 doesn't need 9/12V!

So that seems to be a perfect match. I'm a little puzzled on why there are more drivers than receivers on the chip.

_________________
Cat; the other white meat.


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 10:22 pm 
Offline
User avatar

Joined: Thu May 28, 2009 9:46 pm
Posts: 8176
Location: Midwestern USA
cbmeeks wrote:
Forgot to mention that it would be great to only have a 5V supply but I could possibly put in a 9/12V and step down to 5V. But it seems the MAX238 doesn't need 9/12V!

When the MAX232 was originally released in the mid-1980s it was considered revolutionary in the TIA-232 world because it didn't require multiple voltage sources like the then-ubiquitous 1488 and 1489 devices.

Quote:
So that seems to be a perfect match. I'm a little puzzled on why there are more drivers than receivers on the chip.

Huh? The MAX238 has four TIA-232 outputs and four TIA-232 inputs.

_________________
x86?  We ain't got no x86.  We don't NEED no stinking x86!


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 11:00 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
I just went through and verified or fixed all the links in my RS-232 primer. (I can't believe Maxim changed their whole domain name, making millions of links across the internet, including many in my own pages, dead. I'm sure they have since figured out that was a dumb idea.) And darn! I see the MC145406 is out of production. Jameco still has them, but their being out of production would explain why Jameco's price is so high ($4.95US). I might get a bunch to for my own inventory anyway.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
PostPosted: Thu Feb 18, 2021 11:09 pm 
Offline
User avatar

Joined: Fri Aug 30, 2002 1:09 am
Posts: 8432
Location: Southern California
I like to have the higher ± voltages on the board anyway for things like:

  • the negative voltage required for the backplane of many high-contrast supertwist LCDs
  • my D/A converter
  • the op amp for the A/D and D/A converters
  • my analog signal-conditioning plug-in modules
  • the speaker amplifier
  • and in this case, having the triple line drivers and receivers that take less board space because they have fewer pins and don't require the charge-pump capacitors that the MAX23_ use

Also, it is often better to have local voltage regulation on the board. If you have a 5V regulator off-board and bring the 5V in through a cord, the resistance of the cord and connectors may result in having significantly less than 5V on your 5V parts, depending on your current draw. This is especially true of tiny USB connectors and thin, cheap USB cables, as I found out on a work project in 2018. If you have a higher voltage coming into the board, then regulate down to 5V, you'll have a better setup.

_________________
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 42 posts ]  Go to page 1, 2, 3  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 8 guests


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 post attachments in this forum

Search for:
Jump to: