home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / hardware / 21480 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.1 KB  |  38 lines

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