🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #6619

Re: Mac serial port

#6619
From: bart
Date: Tue, 29 Jul 1986 20:11
22 lines
1492 bytes
In article <154@gt-eedsp.UUCP> owen@gt-eedsp.UUCP (Owen Adair) writes:
> I am looking for info on how to initialize the serial port on the Macintosh
> for baud rates below 110 baud. Help!

{ take a baud rate (e.g. 50, 19200), and return the clock time constant }
{ analogous to the defined IM constants (e.g. baud19200).  This returns }
{ the same values as IM over the the set of IM defined constants.  This }
{ information is based on Zilog's Z8530 manual and the Hardware chapter }
{ of IM.  Note that the value for 56Kbaud is minimal, and that too low  }
{ a baud rate will return a value too large for the 16 bit counter in   }
{ the SCC.								}
function baudclock( baud : longint ) : integer;
const
	clockfreq = 3.672E6;	{ basic baud clock frequency in Hz }
	clockdiv = 16;		{ the SCC has been told to divide by this }
begin
	baudclock := round( clockfreq / ( 2 * clockdiv * baud ) ) - 2 );
end;


					Bart Massey
					UUCP: ..tektronix!reed!bart
Technical Details
Message-ID: <3929@reed.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!pyramid!hplabs!tektronix!reed!bart
References: <154@gt-eedsp.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!decvax!decwrl!pyramid!hplabs!tektronix!reed!bart
From: bart@reed.UUCP
Newsgroups: net.micro.mac
Subject: Re: Mac serial port
Message-ID: <3929@reed.UUCP>
Date: Tue, 29-Jul-86 16:11:41 EDT
Article-I.D.: reed.3929
Posted: Tue Jul 29 16:11:41 1986
Date-Received: Thu, 31-Jul-86 00:26:14 EDT
References: <154@gt-eedsp.UUCP>
Reply-To: bart@reed.UUCP (Bart Massey)
Distribution: na
Organization: Reed College, Portland, Oregon
Lines: 22