TweetFollow Us on Twitter

Serial Ports as Slots
Volume Number:1
Issue Number:8
Column Tag:The Electrical Mac

"Macintosh Serial Ports"

By Jeff Mitchell, President, Digital Solutions, MacTutor Contributing Editor

The Macintosh has frequently been criticized for its lack of hardware expansion capability. Apple's response has been that the two high-speed serial ports act as 'virtual slots' which give the user practically unlimited expansion capability. Although the merits of this approach may be debatable, it is nevertheless our only point of access to the internals of the Macintosh.

In this article, I will describe both the RS-232-C and the RS-422-A standards and examine their compatibility. I will then examine in detail Apple's implementation of RS-422 in the Macintosh serial ports and describe how to interface them with standard RS-232 peripherals, along with precautions to be taken in order to maintain data integrity and protect your equipment from damage.

RS-232-C

Electronic Industries Association (EIA) Standard RS-232-C, Interface Between Data Terminal Equipment and Data Communication Equipment Employing Serial Binary Data Interchange, released in August 1969, defines how data terminal equipment (DTE) and data communication equipment (DCE) exchange information serially.

Originally, DTE was intended to be a dumb terminal, and DCE was intended to be a modem. The large number of handshake lines were included to provide control over what were entirely hardware driven devices, with no local intelligence. As microprocessors became popular and devices became capable of implementing handshaking protocols in software, many of the handshake lines became superfluous. This, combined with the popularity of using RS-232 to connect all types of different devices not even imagined at the time the standard was written, makes signal definition somewhat subjective and is what causes us so much grief when trying to make interconnecting cables.

EIA Standard RS-232-C defines electrical, mechanical, and signal characteristics. Electrically, a mark, or binary one, is defined as less than 3 volts with respect to signal ground, while a space, or binary zero, is greater than 3 volts. The region between +3 volts is defined as the transition region, where the signal state is not uniquely defined. The maximum open-circuit voltage is not to exceed +25 volts. In addition, there are some restrictions on source and load impedances, load capacitance, and slew rates.

Mechanically, the standard assigns signal definitions to 25 pins (including 3 unassigned pins), although no particular connector type is specified. However, the 25 pin subminiature-D type connector (DB-25) has emerged as a de-facto standard. Cable length is recommended to be kept to less than 50 feet, although the load capacitance of 2500 picofarads is really the limiting factor.

Signal characteristics are defined in some detail in the standard, although if not applied to a strict terminal/modem configuration, they tend to become open to interpretation. Data rates are restricted to a nominal 20,000 bits per second.

Standards notwithstanding, how is RS-232 generally implemented? Electrically, most equipment uses MC1488 (or equivalent) drivers operating from +12 volt supplies, and MC1489 (or equivalent) receivers operating from +5 volts. The drivers accept a standard TTL level in and convert it to about +10 volts out, inverting it in the process to meet the RS-232 mark/space requirements.

The receivers do not operate in strict accordance with RS-232, since their input switching threshold is around +1 volt. Therefore these receivers will correctly respond not only to RS-232 input levels, but TTL level inputs also. Like the drivers, the output is inverted from the input.

RS-422-A, RS-449

EIA Standard RS-422-A, Electrical Characteristics of Balanced Voltage Digital Interface Circuits, released in December 1978, defines the interchange of serial binary signals between DTE and DCE, or in any point-to-point interconnection of serial binary signals between digital equipment.

There are several significant differences between RS-232 and RS-422. Most importantly, RS-422 is a balanced interface. Secondly, note that this standard defines electrical characteristics only. EIA Standard RS-449 defines the mechanical and signal characteristics and will be included in this discussion. A final, more subtle point: notice that the description of the standard has been expanded to include connection of any digital equipment, not only DCE and DTE.

The RS-422 specification defines a balanced interface. This means that instead of a voltage on one signal line being referenced to a common ground, as in RS-232, the signal is carried on two lines which are always in complementary states (see Fig.1). The threshold criteria in a balanced system is the voltage difference between the two signals, not the absolute value of either with respect to ground. The open circuit voltage between the two outputs is not to exceed 6.0 volts, and cannot be less than 2.0 volts when driving a load of 100 + 1%. In addition, there are restrictions on offset voltages, short circuit output current, and receiver specifications, among others.

Mechanically, RS-449 defines a 37 pin and a 9 pin interface, where the 9 pin interface is defined as a secondary channel for the 37 pin interface. As with RS-232, signals are given pin assignments. Unlike RS-232, standard connectors are specified. In recognition of the de-facto DB-25 standard for RS-232, RS-449 defines DS-37 and DE-9 connectors (The D indicates subminiature-D type, the B, S, and E indicate shell size, and the 25, 37, and 9 are number of pins. Note that a DB-9 would be a DB-25 with 16 pins missing.). Maximum cable length using 24 AWG twisted pair cable varies according to signalling rate, from 50 feet at 10 Mbits/sec to 4000 feet at 100 Kbits/sec or less.

Signal characteristics are described in RS-449, again with the emphasis on a terminal/modem configuration. A table showing equivalent RS-232 signals is provided in the standard.

The industry standards for RS-422 drivers and receivers are the Am26LS31 (or equivalent) and the Am26LS32 (or equivalent), respectively. Both of these devices operate off a single +5 volt supply, and meet all the requirements set forth in the EIA standard.

Compatibility

As defined, how compatible is RS-422 with RS-232? During development of the RS-422 and RS-449 standards, the EIA gave close attention to an orderly transition from existing RS-232 equipment. For systems designed strictly to the letter of the standards, interoperability is assured. Realistically, most systems will be compatible electrically, but signal definitions and mechanical connections are another matter.

Remember, however, that RS-422 is differential, and the only relation it has to signal ground is that the midpoint of the output voltage swing must be within +3 volts of ground and the input to either receiver input terminal cannot exceed +10 volts with respect to ground. For systems operating off of standard supply voltages and using industry standard parts, this is not a problem. In addition, RS-422 does not meet the voltage swing requirement of RS-232, but generally suffices at the short cable lengths found in RS-232 installations. The specifics of how to interface a single-ended to a differential signal will be covered below.

Do you need to worry about damaging your Mac or peripherals while trying to connect a new piece of equipment? RS-232 specifies that drivers be able to withstand an open circuit, a short to any other signal line, or a short to ground without damage. Receivers must be able to withstand +25 volts without damage. A short between any two signal lines should not result in a current of more than 1/2 amp. RS-232, therefore, is essentially bulletproof.

RS-422 leaves fail-safe operation more to the system designer, but specifies that an output shorted to ground be limited to 150 mA and that receivers shall operate correctly over a common mode voltage of +7 volts and with a maximum differential voltage of 12 volts. These requirements result in a fail-safe system as long as it remains an RS-422 interface.

For a mixed RS-232/RS-422 system, there is a possibility of device damage since the maximum RS-232 voltage levels are +25 volts. The 26LS32 receivers have been designed to withstand this input voltage range, meaning that they can be connected to RS-232 drivers with relative impunity. RS-422 drivers can be damaged by shorting them to voltages above 5.5 volts or below ground (26LS31), or to voltages greater than +15 volts (26LS30). To summarize, RS-422 cannot damage RS-232, but RS-232 can damage RS-422 under some conditions.

Macintosh Serial Ports

In order for their concept of the 'virtual slot' to be accepted as a viable alternative to true hardware expandability, Apple had to forego the industry standard RS-232 in favor of an interface that would support a much higher data rate, thus the choice of RS-422. They also chose to compromise the standard somewhat in order to make the output voltages more compatible with RS-232.

For output drivers, the Macintosh uses 26LS30's running from +5 volt supplies, rather than the single +5 volt supply recommended by the manufacturer for RS-422 operation. The result is a symmetrical open-circuit voltage swing of about 8 volts centered around ground. This drops to about 4 volts when loaded with 100 . Centering the output signal around ground makes it RS-232 compatible, but the 8 volt open circuit voltage exceeds the RS-422 restriction of a maximum of 6 volts.

The receivers are 26LS32's and meet all RS-422 requirements. Since the Macintosh handshake line is a single-ended input, the inverting input on that receiver is tied to ground, making that input RS-232 compatible. The TXD and RXD lines are differential but are compatible with RS-232 levels when connected to the inverting (-) terminals. The 26LS32 is designed so the non-inverting (+) input floats at about +2.7 volts when open and the inverting input floats at about +1.8 volts. Therefore, when an RS-232 signal is connected to the inverting input the receiver will switch around +2.7 volts if the non-inverting input is left open, which is within the +3 volt RS-232 spec.

Between the drivers/receivers and the connectors, the signal lines go through an RC filter network. This is not part of the RS-422 specification, but is included to meet FCC EMI requirements and to provide signal deglitching.

The Macintosh serial connector pinout is as follows:

PIN # FUNCTION

1 GND

2 +5 V

3 GND

4 TXD +

5 TXD -

6 +12 V

7 HSK

8 RXD +

9 RXD -

For RS-232 compatibility, use Gnd, TXD-, and RXD- (remember, RS-232 signals are inverted). The HSK line goes to both the CTS and the TRxC inputs on the 8530 chip in the Macintosh. Depending upon how the chip is configured by the serial driver, this line may be used as a handshake line or as an external clock in order to increase data transfer speeds. The +5 volt and +12 volt outputs come directly from the power supply inside the Macintosh. Apple warns that the +5 volt line may turn into an output handshake line at some future date and that it should not be used. They also warn that the +12 volt line is for detecting power only. When connecting peripherals or making cables, exercise caution, but you'll probably not be able to damage any of the interface circuitry. Pay special attention to the power pins (2 & 6), however, since these are tied directly to the power supply and are not protected from accidental shorting.

Electrically, like most of the Macintosh hardware, the serial ports are quite simple. Some compromises to the RS-422 standard were made in Apple's implementation, but generally speaking, these are not significant. The end result has been to provide users with a much more flexible interface, able to communicate with nearly all RS-232 peripherals in addition to supporting much higher data transfer rates for applications that require it, such as external disk drives and networking.

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

TextSoap 8.4.8 - Automate tedious text d...
TextSoap can automatically remove unwanted characters, fix up messed up carriage returns, and do pretty much anything else that we can think of to text. Save time and effort. Be more productive. Stop... Read more
Air Video Server HD 2.3.0-beta1u1 - Stre...
Air Video Server HD streams videos instantly from your computer on your iPhone, iPad, iPod touch or Apple TV. No need to worry about converting or transferring files. We took everything that was... Read more
MacFamilyTree 8.4.2 - Create and explore...
MacFamilyTree gives genealogy a facelift: modern, interactive, convenient and fast. Explore your family tree and your family history in a way generations of chroniclers before you would have loved.... Read more
Chromium 70.0.3538.67 - Fast and stable...
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. Version 70.0.3538.67: This update includes 23... Read more
Opera 56.0.3051.52 - High-performance We...
Opera is a fast and secure browser trusted by millions of users. With the intuitive interface, Speed Dial and visual bookmarks for organizing favorite sites, news feature with fresh, relevant content... Read more
Things 3 3.7.2 - Elegant personal task m...
Things is a task management solution that helps to organize your tasks in an elegant and intuitive way. Things combines powerful features with simplicity through the use of tags and its intelligent... Read more
OmniFocus 3.1.1 - GTD task manager with...
OmniFocus helps you manage your tasks the way that you want, freeing you to focus your attention on the things that matter to you most. Capturing tasks and ideas is always a keyboard shortcut away in... Read more
QuarkXPress 14.1.0.0 - Desktop publishin...
QuarkXPress 2017 is the new version that raises the bar for design and productivity. With non-destructive graphics and image editing directly within your layout, you no longer have to choose between... Read more
Chromium 70.0.3538.67 - Fast and stable...
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all Internet users to experience the web. Version 70.0.3538.67: This update includes 23... Read more
Opera 56.0.3051.52 - High-performance We...
Opera is a fast and secure browser trusted by millions of users. With the intuitive interface, Speed Dial and visual bookmarks for organizing favorite sites, news feature with fresh, relevant content... Read more

It's up to you to decide the winner...
Thursday is the day when most of the new releases come out on the App Store. It's also the day when we pick what we think are the best five games that have come out over the last seven days. Then we pose you, our readers, a simple question - which... | Read more »
Grimvalor is last week's 148Apps iP...
What a week it has been here at 148Apps towers. We've been swamped, which means we're a bit late letting you know what last week's game of the week was. Don't worry though, we're here now, and we can reveal that Grimvalor takes away the prize. It... | Read more »
My scariest mobile game - Final Fantasy...
This is going to be a bit of a weird one, but bear with me. The game that has scared me the most isn't a horror experience (don't get me wrong, I won't go outside if it's foggy thanks to Silent Hill 2), it's actually Final Fantasy 7. Sounds... | Read more »
My scariest mobile game - Final Fantasy...
This is going to be a bit of a weird one, but bear with me. The game that has scared me the most isn't a horror experience (don't get me wrong, I won't go outside if it's foggy thanks to Silent Hill 2), it's actually Final Fantasy 7. Sounds... | Read more »
Dragalia Lost Daily Tasks Guide
Part of what makes gacha games compelling (and sometimes annoying) is their grind. You’re always supposed to be advancing something in these games, meaning you need to be checking in on your progress once or multiple times a day to make sure you’re... | Read more »
Why I'm looking forward to Stardew...
Last week I read the words I'd been hoping for and got so excited I almost cried: Stardew Valley is coming to mobile on October 24th. While, my colleagues know of my love for the game I think my reasons behind it have always been a bit of a... | Read more »
The best games for iPhone - The definiti...
Hi there, and welcome to our ever-increasing list of the very best games for iPhone. We're going to be updating this regularly with new content, so make sure you check back often, because you're not going to want to miss out on even one of the... | Read more »
Mad Rocket: Fog of War is the next big b...
Mad Rocket: Fog of War is the latest title from pblisher Four Thirty Three, and it’s a game that will have you rethinking your approach to strategic war games. In this new base-building card battler, you’ll be invading bases enshrouded in thick fog... | Read more »
These are the 5 best iPhone games like N...
There's a Mario game on the App Store nowadays, but if it hasn't quite sated your desires to fiddle with an Italian plumber while you're out and about, we've got some suggestions that might help. That's right, it's a list of games like Mario for... | Read more »
Everything You Need to Know About Dragal...
As of this writing, you’re no longer able to take on Phraeganoth or any of the other content in Loyalty’s Requiem. Dragalia Lost will just go back to its original state at launch… or will it? | Read more »

Price Scanner via MacPrices.net

Apple drops prices on Series 3 GPS Apple Watc...
Apple has restocked Certified Refurbished Series 3 Apple Watch GPS models starting at only $239. Apple’s standard 1-year warranty is included, and shipping is free. Numerous bands are available: –... Read more
Apple now offering Certified Refurbished 2018...
Apple is now offering Certified Refurbished 2018 13″ 2.3GHz Touch Bar MacBook Pros for $270-$300 off the cost of new models, with prices starting at $1529. Apple’s refurbished prices are the lowest... Read more
21″ and 27″ iMacs available starting at only...
Apple has a full line of Certified Refurbished iMacs available for up to $350 off original MSRP. Apple’s one-year warranty is standard, and shipping is free. The following models are available: – 27... Read more
Apple offers a wide range of refurbished iPad...
Apple has Certified Refurbished 2017 10.5″ iPad Pros available for $100-$170 off MSRP, depending on the model. An Apple one-year warranty is included with each model, and shipping is free: – 64GB 10... Read more
Get a new 2018 13″ 2.3GHz Touch Bar MacBook P...
B&H Photo has new 2018 13″ 2.3GHz/256GB Touch Bar MacBook Pros on sale for $100 off MSRP. Shipping is free at B&H, and they charge sales tax for residents of NY & NJ only: – 13″ 2.3GHz/... Read more
Order a new 2018 15″ MacBook Pro from Adorama...
Adorama is offering new 2018 15″ Touch Bar MacBook Pros for up to $300 off MSRP. Shipping is free, and they charge sales tax for residents of NY & NJ only: – 15″ 2.2GHz Touch Bar MacBook Pros (... Read more
2017 15″ 2.9GHz Touch Bar MacBook Pro availab...
Adorama has clearance 2017 high-end 15″ 2.9GHz Space Gray Touch Bar MacBook Pros available for $2099 or $700 off original MSRP. Shipping is free, and Adorama charges sales tax in NJ and NY only: – 15... Read more
Apple restocks factory refurbished 13″ MacBoo...
Apple has Certified Refurbished 2017 13″ MacBook Airs available again starting at $849. An Apple one-year warranty is included with each MacBook, and shipping is free: – 13″ 1.8GHz/8GB/128GB MacBook... Read more
Apple May Have ‘One More Thing…’ To Announce...
NEWS: 10.15.18- Steve Jobs, the late co-founder of Apple, Inc. and its former CEO, was famous for ending his keynote addresses that unveiled the tech giant’s newest products with “one more thing…”... Read more
How to use Apple’s Education discount to save...
Purchase a new Mac using Apple’s Education discount, and take up to $400 off MSRP. All teachers, students, and staff of any educational institution with a .edu email address qualify for the discount... Read more

Jobs Board

LPN/CMA - St. Paul and *Apple* Valley Urgen...
LPN/CMA - St. Paul and Apple Valley Urgent Care + Job ID: 50254 + Department: SP Urgent Care + City: St Paul, MN + Location: HP - St Paul Wabasha St Clinic + Read more
*Apple* Mobile Master - Best Buy (United Sta...
**647233BR** **Job Title:** Apple Mobile Master **Job Category:** Store Associates **Location Number:** 000532-Framingham-Store **Job Description:** **What does a Read more
Best Buy *Apple* Computing Master - Best Bu...
**651117BR** **Job Title:** Best Buy Apple Computing Master **Job Category:** Sales **Location Number:** 000504-Gwinnett-Store **Job Description:** **What does a Read more
Geek Squad *Apple* Master Consultation Agen...
**651575BR** **Job Title:** Geek Squad Apple Master Consultation Agent **Job Category:** Services/Installation/Repair **Location Number:** 001128-Vallejo-Store **Job Read more
Sephora Product Consultant - *Apple* Blosso...
Sephora Product Consultant - Apple Blossom Mall Location:Winchester, VA, United States- Apple Blossom Mall 1850 Apple Blossom Dr Job ID:1056553 Date:October Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.