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

Fresh From the Land Down Under – The Tou...
After a two week hiatus, we are back with another episode of The TouchArcade Show. Eli is fresh off his trip to Australia, which according to him is very similar to America but more upside down. Also kangaroos all over. Other topics this week... | Read more »
TouchArcade Game of the Week: ‘Dungeon T...
I’m a little conflicted on this week’s pick. Pretty much everyone knows the legend of Dungeon Raid, the match-3 RPG hybrid that took the world by storm way back in 2011. Everyone at the time was obsessed with it, but for whatever reason the... | Read more »
SwitchArcade Round-Up: Reviews Featuring...
Hello gentle readers, and welcome to the SwitchArcade Round-Up for July 19th, 2024. In today’s article, we finish up the week with the unusual appearance of a review. I’ve spent my time with Hot Lap Racing, and I’m ready to give my verdict. After... | Read more »
Draknek Interview: Alan Hazelden on Thin...
Ever since I played my first release from Draknek & Friends years ago, I knew I wanted to sit down with Alan Hazelden and chat about the team, puzzle games, and much more. | Read more »
The Latest ‘Marvel Snap’ OTA Update Buff...
I don’t know about all of you, my fellow Marvel Snap (Free) players, but these days when I see a balance update I find myself clenching my… teeth and bracing for the impact to my decks. They’ve been pretty spicy of late, after all. How will the... | Read more »
‘Honkai Star Rail’ Version 2.4 “Finest D...
HoYoverse just announced the Honkai Star Rail (Free) version 2.4 “Finest Duel Under the Pristine Blue" update alongside a surprising collaboration. Honkai Star Rail 2.4 follows the 2.3 “Farewell, Penacony" update. Read about that here. | Read more »
‘Vampire Survivors+’ on Apple Arcade Wil...
Earlier this month, Apple revealed that poncle’s excellent Vampire Survivors+ () would be heading to Apple Arcade as a new App Store Great. I reached out to poncle to check in on the DLC for Vampire Survivors+ because only the first two DLCs were... | Read more »
Homerun Clash 2: Legends Derby opens for...
Since launching in 2018, Homerun Clash has performed admirably for HAEGIN, racking up 12 million players all eager to prove they could be the next baseball champions. Well, the title will soon be up for grabs again, as Homerun Clash 2: Legends... | Read more »
‘Neverness to Everness’ Is a Free To Pla...
Perfect World Games and Hotta Studio (Tower of Fantasy) announced a new free to play open world RPG in the form of Neverness to Everness a few days ago (via Gematsu). Neverness to Everness has an urban setting, and the two reveal trailers for it... | Read more »
Meditative Puzzler ‘Ouros’ Coming to iOS...
Ouros is a mediative puzzle game from developer Michael Kamm that launched on PC just a couple of months back, and today it has been revealed that the title is now heading to iOS and Android devices next month. Which is good news I say because this... | Read more »

Price Scanner via MacPrices.net

Amazon is still selling 16-inch MacBook Pros...
Prime Day in July is over, but Amazon is still selling 16-inch Apple MacBook Pros for $500-$600 off MSRP. Shipping is free. These are the lowest prices available this weekend for new 16″ Apple... Read more
Walmart continues to sell clearance 13-inch M...
Walmart continues to offer clearance, but new, Apple 13″ M1 MacBook Airs (8GB RAM, 256GB SSD) online for $699, $300 off original MSRP, in Space Gray, Silver, and Gold colors. These are new MacBooks... Read more
Apple is offering steep discounts, up to $600...
Apple has standard-configuration 16″ M3 Max MacBook Pros available, Certified Refurbished, starting at $2969 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free,... Read more
Save up to $480 with these 14-inch M3 Pro/M3...
Apple has 14″ M3 Pro and M3 Max MacBook Pros in stock today and available, Certified Refurbished, starting at $1699 and ranging up to $480 off MSRP. Each model features a new outer case, shipping is... Read more
Amazon has clearance 9th-generation WiFi iPad...
Amazon has Apple’s 9th generation 10.2″ WiFi iPads on sale for $80-$100 off MSRP, starting only $249. Their prices are the lowest available for new iPads anywhere: – 10″ 64GB WiFi iPad (Space Gray or... Read more
Apple is offering a $50 discount on 2nd-gener...
Apple has Certified Refurbished White and Midnight HomePods available for $249, Certified Refurbished. That’s $50 off MSRP and the lowest price currently available for a full-size Apple HomePod today... Read more
The latest MacBook Pro sale at Amazon: 16-inc...
Amazon is offering instant discounts on 16″ M3 Pro and 16″ M3 Max MacBook Pros ranging up to $400 off MSRP as part of their early July 4th sale. Shipping is free. These are the lowest prices... Read more
14-inch M3 Pro MacBook Pros with 36GB of RAM...
B&H Photo has 14″ M3 Pro MacBook Pros with 36GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 Pro MacBook Pro (... Read more
14-inch M3 MacBook Pros with 16GB of RAM on s...
B&H Photo has 14″ M3 MacBook Pros with 16GB of RAM and 512GB or 1TB SSDs in stock today and on sale for $150-$200 off Apple’s MSRP, each including free 1-2 day shipping: – 14″ M3 MacBook Pro (... Read more
Amazon is offering $170-$200 discounts on new...
Amazon is offering a $170-$200 discount on every configuration and color of Apple’s M3-powered 15″ MacBook Airs. Prices start at $1129 for models with 8GB of RAM and 256GB of storage: – 15″ M3... Read more

Jobs Board

*Apple* Systems Engineer - Chenega Corporati...
…LLC,** a **Chenega Professional Services** ' company, is looking for a ** Apple Systems Engineer** to support the Information Technology Operations and Maintenance Read more
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
*Apple* / Mac Administrator - JAMF Pro - Ame...
Amentum is seeking an ** Apple / Mac Administrator - JAMF Pro** to provide support with the Apple Ecosystem to include hardware and software to join our team and 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.