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

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom 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.