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

  1. Path: sparky!uunet!ukma!usenet.ins.cwru.edu!cleveland.Freenet.Edu!aa783
  2. From: aa783@cleveland.Freenet.Edu (Mark Spaeth)
  3. Newsgroups: comp.sys.apple2
  4. Subject: Re: How do I control soft switches?
  5. Date: 17 Nov 1992 22:18:16 GMT
  6. Organization: Case Western Reserve University, Cleveland, OH (USA)
  7. Lines: 49
  8. Message-ID: <1ebr38INN4hi@usenet.INS.CWRU.Edu>
  9. References: <1992Nov16.190037.2147@news2.cis.umn.edu>
  10. Reply-To: aa783@cleveland.Freenet.Edu (Mark Spaeth)
  11. NNTP-Posting-Host: hela.ins.cwru.edu
  12.  
  13.  
  14. In a previous article, hiroki@limerick.cbs.umn.edu (Hiroki Morizono) says:
  15.  
  16. >
  17. >Hi, I'm trying to open/close a switch using  a solid state relay, from
  18. >the game port of an apple2e, using game controller 0
  19. >(there is this piece of lab equipment that needs to be turned on and off at 
  20. >20 second intervals)
  21. >
  22. >
  23. >The program looks something like this:
  24. >
  25. >10 INPUT "on interval"; A
  26. >20 INPUT "off interval"; B
  27. >30 INPUT "repeats "; C
  28. >40 FOR L = 1 to C
  29. >50 POKE -16295,253   
  30. >60 FOR O = 1 TO A : NEXT O
  31. >70 POKE -16296, 0    
  32. >80 FOR F = 1 TO B : NEXT F
  33. >90 NEXT L
  34. >
  35. >-16295, -16296 are supposed to turn the game control output  on and off,
  36. >
  37. >So before doing anything, I decided to just put wires in pins 5 and 3,
  38. >Game control 0, and ground , and hook em up to a multitester. Got no changes 
  39. >when I ran the thing. (I used long intervals--100, 300 etc) 
  40. >Pin 2 (+5V) and Pin 3 (Gnd) gives me back 5v, so it isn't a loose connection. 
  41. >
  42. >How do I turn on and off the soft switches? 
  43. >
  44. >Am I right in assuming that once TTL is set high, it stays high, or do I 
  45. >need to enclose the "switch on" magic woid/line between my FOR-NEXT statements?
  46. >
  47. >What am I doing wrong (besides poking at the brains of my computer)?
  48. >(I don't need a nice program for now, just one that does the job)
  49. >
  50. >Email would be very gratefully appreciated,
  51. >Thanks in advance,
  52. >Hiroki Morizono
  53. >hiroki@limerick.cbs.umn.edu (Machine is supposed to be taken off line tonight)
  54. >mori0009@student.tc.umn.edu (Might be a better place to try.)
  55. >
  56. >
  57.  
  58. seems to be taht you proble is that you're not you're turning off and on
  59. the annuciators which aren't accessed thru the game port on the back of he
  60. computer... they're accessed on the 16 pin (?) little game port on the
  61. motherboard...
  62.