home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / apple2 / 19794 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.8 KB  |  49 lines

  1. Newsgroups: comp.sys.apple2
  2. Path: sparky!uunet!usc!rpi!zaphod.mps.ohio-state.edu!n8emr!bluemoon!t_captain
  3. From: t_captain@bluemoon.rn.com (Tc Wilson)
  4. Subject: GS flow control
  5. Message-ID: <8k6gqB1w165w@bluemoon.rn.com>
  6. Sender: bbs@bluemoon.rn.com (BBS Login)
  7. Organization: Blue Moon BBS ((614) 868-998[024])
  8. Date: Wed, 02 Sep 92 08:51:54 EDT
  9. Lines: 38
  10.  
  11. David Epsom/Soenke Behrens
  12.  
  13. Okay, here's the way it works:
  14.  
  15. The BBS's modem port driver inits the SCC with everything it needs to do - 
  16. generate interrupts on characters in (it intercepts the irq chain 
  17. cleanly), and handles both input/output flow control. It works as expected 
  18. on the Rom3 - that is, when the modem drops the CTS signal, it's read just 
  19. as the DCD signal from the modem:
  20.  
  21. SendChar   pha
  22. loop       lda SSCstat
  23.            and #mask     ; xmit ready and cts high?
  24.            cmp #mask     ; must be both
  25.            bne loop      ; one or the other isn't ready yet
  26.            pla
  27.            sta SSCout
  28.            rts
  29.  
  30. Simple and straight forward. However, on the Rom1, it doesn't respond to 
  31. the CTS signal. I've put some tracing and display routines in it, and it 
  32. seems that the Rom1 is NOT holding onto the CTS signal (DCD and xmit ready 
  33. is fine) - it's "pulsing" the signal, as if the connection is flaky (it's 
  34. not, I've checked the wiring).
  35.  
  36. What I've had to do is put in a line of code to wait for 2 vbi's (thus 
  37. 1/30th of a second) whenever it can't do the cts signal.
  38.  
  39. As for using bit 5 of reg 3, not possible - I have to be able to get 
  40. return codes from the modem when it's not connected, and be able to read 
  41. BOTH dcd and cts when needed.
  42.  
  43. Weird, eh?
  44.  
  45.  
  46. Tc Wilson/The Captain           "Programming is an art form
  47. t.captain@bluemoon.rn.com        that fights back."
  48. .... or try: TCQ, The Captain's Quarters (614) 294-0556, 300-38400 hst
  49.