home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / 24061 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.8 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!nntp-server.caltech.edu!toddpw
  2. From: toddpw@cco.caltech.edu (Todd P. Whitesel)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: How do I control soft switches?
  5. Date: 17 Nov 1992 11:54:07 GMT
  6. Organization: California Institute of Technology, Pasadena
  7. Lines: 30
  8. Message-ID: <1eamgvINNgks@gap.caltech.edu>
  9. References: <1992Nov16.190037.2147@news2.cis.umn.edu>
  10. NNTP-Posting-Host: sandman.caltech.edu
  11.  
  12. hiroki@limerick.cbs.umn.edu (Hiroki Morizono) writes:
  13.  
  14. >Hi, I'm trying to open/close a switch using  a solid state relay, from
  15. >the game port of an apple2e, using game controller 0
  16.  
  17. Bzzt. Game controller 0 is an input. The output your program correctly controls
  18. is "Announciator 0" or AN0 for short. This is -not- connected to the 9 pin
  19. D connector you've been testing; it's only available on the 16-pin DIP plug
  20. inside the computer.
  21.  
  22. >So before doing anything, I decided to just put wires in pins 5 and 3,
  23. >Game control 0, and ground , and hook em up to a multitester. Got no changes 
  24.  
  25. This is because the changes your program was making didn't show up here. Try
  26. popping the top off and testing pin 15 of the DIP plug.
  27.  
  28. >Am I right in assuming that once TTL is set high, it stays high, or do I 
  29.  
  30. Yes. Be careful though, a reset will force it to some state (I forget which),
  31. and some applications like to mess with it because they think something else
  32. is plugged in there.
  33.  
  34. Also, make sure the relay can activate with only a few mA of current at about
  35. 3 volts, because that's all the TTL output can provide. I STRONGLY advise that
  36. you spend a little extra time working up a transistor switch or something
  37. similar; TTL outputs are _not_ designed to power things, and you may fry a
  38. chip on your motherboard if you draw too much current for too long.
  39.  
  40. Todd Whitesel
  41. toddpw @ cco.caltech.edu
  42.