home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hardware
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!alexia!cole
- From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
- Subject: Re: Changing DTR on a Mac II serial port
- References: <jhgillespie-121192151816@josquin.ucdavis.edu>
- Message-ID: <Bxn2r9.7nr@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Fri, 13 Nov 1992 05:18:45 GMT
- Lines: 26
-
- In <jhgillespie-121192151816@josquin.ucdavis.edu> jhgillespie@ucdavis.edu
- (John Gillespie) writes:
-
- >I want to use the DTR line on the modem port of a Mac II to send
- >a timed pulse to some lab equipment. I am totally unfamiliar
- >with low-level programming on the Mac so I need help bad! My assumption is
- >that I can write to the control register on the Z8530 by writing a control
- >byte to address sccWBase+aCtl. Is that correct? Next question: What
- >is the numeric value of sccWBase and aCtl on the Mac II? Am I correct
- >in thinking that the serial driver is of no help here? Finally,
- >I can't be the first one to want to do this, is there a book or FAQ or
- >something pointing the way? Thanks for any help that you can offer!
-
-
- Correct, the serial driver is probably useless here. For the specific address
- of sccWBase, you need to read the system global SCCWr, which on any Mac holds
- the long value of sccWBase. aCtl is just a define equal to 2. All this comes
- out of Inside Mac vol III (1st edition. IM 2nd edition is a very different
- beast, and the relevant volumes have not been published) If you are using a
- decent Mac development system (MPW, either THINK package, or most any others
- except Turbo Pascal) all these should be already defined in Apple's standard
- headers (I'd bet either Serial.h or SysEqu.h or both for the C packages, and
- similarly named files for anything else)
- Definitely check out IM v.III (p. 25 or so) and maybe also the
- relevant hardware changes in vols IV and V (which cover the Plus, SE, and II)
- You might also look for Zilog's manuals for the 8530.
-