TweetFollow Us on Twitter

ATalk Connections
Volume Number:2
Issue Number:4
Column Tag:The Electrical Mac

AppleTalk Connections

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

The Appletalk Physical Layer

This month I'm going to describe the physical (hardware) layer of the AppleTalk network protocol. I'll also respond to some mail and announce a new direction for this column, which I think everyone, including myself, will enjoy.

Appletalk Protocol Architecture

The AppleTalk protocol is based on a set of functional layers corresponding to the ISO (International Standards Organization) OSI (Open Systems Interconnection) reference model. Apple has provided a specific set of protocols for layers 1 through 5 (Physical, Data Link, Network, Transport, and Session) for the AppleTalk network. Being only an engineering type, I won't pretend to understand anything but layer 1, the physical layer, which is the electrical interface between devices.

The Appletalk Physical Layer

Each AppleTalk node has exactly one physical layer. It is here that the actual ones and zeros are passed between nodes after the data has been massaged into the correct format by the higher level layers. The electrical interface between nodes is an FM0 encoded serial bit stream operating at 230.4 Kbits/sec over a transformer-isolated, multi-drop, shielded twisted-pair cable. [Note: This is the spec value. Actual value may vary slightly. See note at the end of this article. -Ed.]

Data is encoded in SDLC (Serial Data Link Control) FM0 format. SDLC defines the very low level data protocol and formats the data in a manner which assures that it can be recovered at the receiving node. FM0 defines how ones and zeros are encoded.

Most low-speed serial communication encodes the ones and zeros in an NRZ (Non-Return to Zero) format. This is how the Macintosh normally talks to printers, modems, and the like. In NRZ encoding a high level represents a one and a low level represents a zero (Figure 1). With this encoding method clocking information is only available on bit-cell boundaries when a transition occurs. Because these transitions cannot be guaranteed when transmitting random data, a start bit is usually prefixed to the beginning and a stop bit is appended to the end of every data byte. The start and stop bit provide a known bit-transition to the receiving device, which it can use to synchronize its clock to the data.

In FM0 encoding, a transition occurs at the boundary of every bit-cell. If the bit is a zero, there is an additional transition in the middle of the cell (Figure 1). These transitions provide enough information for the clock to be recovered at the receiving device.

The hardware required to support SDLC and FM0 transmission, including the Phase-locked-loop used to recover the clock from the bit-cell boundary transitions, is all contained on the 8530 Serial Communications Controller (SCC) chip in the Macintosh. This makes switching between peripherals such as the printer and the AppleTalk network just a matter of reprogramming the control registers on the SCC (and much software, of course).

Transmission Medium

AppleTalk devices send and receive data over a single shielded, 22 AWG twisted-pair cable. Twisted-pair is adequate for the signalling rate and distances involved in AppleTalk and provides a very low-cost interconnect. Nodes are transformer coupled to the cable to provide DC isolation and reduce RFI and noise susceptibility. There can be a maximum of 32 devices per bus and a total maximum cable length of 300 meters. The cable must be terminated at each end with a 100 ohm resistor for proper operation.

Appletalk Connection Module

Each node connects to the AppleTalk cable via a connection module. This module contains a transformer, two 3-pin miniature DIN connectors each with a coupled switch, some passive components and a DE-9 connector which mates to the Macintosh 512K (Does anyone but me care that there is no such thing as a DB-9 connector?) or DIN-8 connector on a Mac Plus.

Figure 2 is a schematic representation of an AppleTalk connection module. J1 and J2 are the 3-pin miniature DIN connectors which are coupled to switches connected to R2. This resistor automatically provides the 100 ohm bus termination if there is only one cable plugged into the module. R1 is a drain for the cable shield and R5 and C1 form a high pass filter to reduce EMI and isolate the grounds of AppleTalk devices from each other. R3 and R4 increase the noise immunity of the receivers.

The connection module is a completely passive device. If a node should fail it will not affect the integrity of the network as long as it fails either high or low and is not broadcasting garbage. The node is driven directly from the outputs of the Macintosh RS-422 drivers and feeds directly through R3 and R4 to the RS-422 receivers. No additional active circuitry is required to connect a Macintosh to the AppleTalk network.

The coupling transformer is a 1:1 turns ratio transformer with the primary wound as two windings of 32 AWG wire in series with one wound below the secondary and one above it on a Siemans B65651-K000-R030 core (Figure 3).

MAIL

The mail I've received generally asks one of two questions: 1) "How can I modify my Macintosh to do _____?" and 2) "How can I interface my Macintosh to _____?". My answer to the first question is it is my policy (not necessarily MacTutor's) that I will not encourage anyone to modify their Mac.

My answer to the second question hopefully will make up for the first, for all you hardware hackers out there. In keeping with the Macintosh concept of the serial ports and the AppleTalk network creating a "Virtual Bus" I will soon have an article on constructing a "Virtual Card" which will plug into this bus. Once you have the "Virtual Card" it can be expanded to add whatever type of peripheral device you'd like.

Starting next month, this column will take a more hands-on approach to hardware. We'll start building things instead of just talking about them. If you have any projects you'd like to see done, send a letter to me care of MacTutor.

Letters From Our Readers

SCC Timing Off

Dave M. Gaylee-Lincer

Rainin Research Group

Emeryville, CA

The SCC clock timing as described in the Oct 1985 MacTutor differs somewhat in practice. I have observed the following:

1. The measured frequency is 3.672 Mhz when measured with a frequency counter.

2. I examined the waveform over a number of cycles and found that the timing goes shorter and longer. When I examined the waveform in more detail, I found that in 64 clocks of the 15.6672 Mhz, that there were 15 SCC clocks. This reatio is not 4.25 to 1 as specified in the documentation, but works out to 4.266666666.

This changes several things that could be important to third party developers (like ourselves) in that the Appletalk baud rate is now: 3.672 Mhz / 16 = 229.5 Kbaud.

This is approximately .4% different from the electrical specifications given in the book Inside Appletalk by Apple Computer Inc. [Spec is 230.4 Kbaud.] This is OK if you are precisely at nominal, but it reduces the margin if you, perhaps, aren't perfect.

Power Supply Problems

Dave Roberts

Santa Barbara, CA

Recently I had my 128K Mac power supply blow out. A friend of mine's Mac also had it's power supply fail. I have also heard of several other people's power supplies failing. MacTutor has printed several letters of people with similar experiences. Now just what is the deal with the power supply? I have had an Apple II+ for over 4 years and have not had so much as a hick-up out of it. What is the deal with the Mac? For almost $100 that is kind of an expensive thing to happen. The store that I got it fixed at delayed getting mine fixed because the power supplies they had gotten in from Apple were D.O.A. You would think with all that talent they could give it a power supply that wouldn't fail so often!

[Perhaps we can cover the power supply circuit in a future column and point out some of it's short comings. -Ed]

Hardware Review Wanted

M. Joseph El-Sayed

Montreal, Quebec

You should, little suggestion here, put out a bi-annual (or something around that frequency) hardware product review. The review should be based on compiled user opinion and may be tests you guy's ran (if you have the time). By the way, some roses, your Journal is certainly THE Mac-mag to read. I have access to subscriptions of MacWorld (yech), MacUser (Better), and MacNibble (the other mag to look at). Anyways, keep up the definitly superior work.

[Hardware reviews are expensive, (you have to have the hardware!) but we'll see what we can do in that area. -Ed]

Serial Port Changes in Mac Plus?

David Smith

MacTutor

I have a question for the hardware column. Recently I bought a Spinwriter 8810 printer from Nec along with their Macintosh kit (cable and software). The software was done by Assimilation Process under contract and is very similar to their printer utilities. It modifies the Imagewriter Driver file to work in draft mode with the Nec printer. The cable and software work perfectly on a 512K Mac using all versions of the Imagewriter file. However, when I try it on my Mac Plus, the printer buffer fills up and an overflow error stops printing. Only the gnd, handshake, recieve and transmit lines are being used from the printer. We have also discovered that several computer stores are selling Mac DB-9 cables to DIN-8 connectors that are wired backwards, so beware! Help?

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »
PUBG Mobile teams up with global phenome...
Since launching in 2019, SpyxFamily has exploded to damn near catastrophic popularity, so it was only a matter of time before a mobile game snapped up a collaboration. Enter PUBG Mobile. Until May 12th, players will be able to collect a host of... | Read more »
Embark into the frozen tundra of certain...
Chucklefish, developers of hit action-adventure sandbox game Starbound and owner of one of the cutest logos in gaming, has released their roguelike deck-builder Wildfrost. Created alongside developers Gaziter and Deadpan Games, Wildfrost will... | Read more »

Price Scanner via MacPrices.net

Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New today at Apple: Series 9 Watches availabl...
Apple is now offering Certified Refurbished Apple Watch Series 9 models on their online store for up to $80 off MSRP, starting at $339. Each Watch includes Apple’s standard one-year warranty, a new... Read more
The latest Apple iPhone deals from wireless c...
We’ve updated our iPhone Price Tracker with the latest carrier deals on Apple’s iPhone 15 family of smartphones as well as previous models including the iPhone 14, 13, 12, 11, and SE. Use our price... Read more
Boost Mobile will sell you an iPhone 11 for $...
Boost Mobile, an MVNO using AT&T and T-Mobile’s networks, is offering an iPhone 11 for $149.99 when purchased with their $40 Unlimited service plan (12GB of premium data). No trade-in is required... Read more
Free iPhone 15 plus Unlimited service for $60...
Boost Infinite, part of MVNO Boost Mobile using AT&T and T-Mobile’s networks, is offering a free 128GB iPhone 15 for $60 per month including their Unlimited service plan (30GB of premium data).... Read more
$300 off any new iPhone with service at Red P...
Red Pocket Mobile has new Apple iPhones on sale for $300 off MSRP when you switch and open up a new line of service. Red Pocket Mobile is a nationwide MVNO using all the major wireless carrier... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, available for $759 for 8-Core CPU/7-Core GPU/256GB models and $929 for 8-Core CPU/8-Core GPU/512GB models. Apple’s one-year warranty is... Read more
Updated Apple MacBook Price Trackers
Our Apple award-winning MacBook Price Trackers are continually updated with the latest information on prices, bundles, and availability for 16″ and 14″ MacBook Pros along with 13″ and 15″ MacBook... Read more
Every model of Apple’s 13-inch M3 MacBook Air...
Best Buy has Apple 13″ MacBook Airs with M3 CPUs in stock and on sale today for $100 off MSRP. Prices start at $999. Their prices are the lowest currently available for new 13″ M3 MacBook Airs among... Read more

Jobs Board

Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, Read more
Omnichannel Associate - *Apple* Blossom Mal...
Omnichannel Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Operations Associate - *Apple* Blossom Mall...
Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.