home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / oop / macapp3 / 550 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.9 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!ames!data.nas.nasa.gov!taligent!apple!applelink.apple.com
  2. From: D0989@AppleLink.Apple.COM (G-Bar Partnership, R Myers,PRT)
  3. Newsgroups: comp.sys.mac.oop.macapp3
  4. Subject: Re: Serial Port Hardware Overr
  5. Message-ID: <727590613.9275764@AppleLink.Apple.COM>
  6. Date: 21 Jan 93 03:30:00 GMT
  7. Sender: daemon@Apple.COM
  8. Organization: AppleLink Gateway
  9. Lines: 32
  10.  
  11. Dear Keith,
  12.  
  13. Just some notes from the trenches in dealing with the Mac serial ports.
  14.  
  15. If something holds the interrupts off for more than 3 character periods (about
  16. 3ms @ 9600 bps) the SCC will overrun.  The Mac OS has hooks in some interrupt
  17. routines to try to unload the SCC manually, and to insert the received chars
  18. into a buffer that will be unloaded by the driver the next time the driver is
  19. called.  If you are not doing anything special to the SCC setup, or are not
  20. writing your own driver this _generally_ works.  Apple however loudly declaims
  21. (and disclaims) that the Mac is not a real-time device and that you can't count
  22. on how long or when interrupts may be off.  Disk activity and network activity
  23. (LocalTalk particularly, for obvious reasons) can shut the interrupts off for
  24. long enough that you can drop characters.
  25.  
  26. If you are doing something silly with the SCC all bets are off.  We have a
  27. special driver that when the SCC is properly configured for the data stream
  28. that we are looking at (which is broadcast, we can't handshake it), the receipt
  29. of a character doesn't set the bit on the VIA that the little hooks are looking
  30. for.
  31.  
  32. If you are not messing too badly with the SCC, but are using your own driver
  33. you may be in better shape.  DTS sent me a copy of the serial driver in the 64k
  34. rom machines as an example of how to to use the PollProc hook (what they call
  35. that little stack of characters).
  36.  
  37. You probably just should do handshaking if you can.
  38.  
  39. Good luck,
  40.  
  41. Bob Myers
  42.  
  43.