home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os9 / 1134 < prev    next >
Encoding:
Text File  |  1992-08-17  |  2.0 KB  |  45 lines

  1. Organization: Junior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
  2. Path: sparky!uunet!cis.ohio-state.edu!news.sei.cmu.edu!fs7.ece.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!rh2y+
  3. Newsgroups: comp.os.os9
  4. Message-ID: <seXyBCe00WB7EB4Wsn@andrew.cmu.edu>
  5. Date: Mon, 17 Aug 1992 13:35:10 -0400 
  6. From: "Russell E. Hoffman, II" <rh2y+@andrew.cmu.edu>
  7. Subject: GMX sc68681 question
  8. Lines: 35
  9.  
  10. Hello.
  11.    I have a GMX Micro-20 68020 single board computer, and I've been playing
  12. around with the 'timer' mode on the 68681's on the board. What I'm trying
  13. to do is to generate a 31,250 bps baud clock on a 68681 under the 'timer' mode
  14. so that I can directly drive an RS-232 to MIDI convertor. According to the
  15. 68681 docs, I should be able to load the ACR with a $60 to set the clock
  16. mode for internal clock divided by one, and set the CACR to $DD to selct
  17. timer mode input. Then, I should load the timer registers with 0 and #59
  18. respectively to generate the appropriate baud clock:
  19.  
  20. 3,686,400 Hz / 31250 = 117.96   ~~= 118
  21. Then 118/2 = 59.   So That should work. But it doesnt.
  22. What I'm trying to do is simply iniz the /t2 port, and then set the registers
  23. on the 68681 as above, and then simply be able to print to the port using
  24. normal i/o routines to be able to send MIDI data. But the baud rate generated
  25. by the above method is quite a bit slower than 31250 bps. I can tell by copying
  26. a large file to the port and timing it.
  27.    At first, I thought maybe somehow I was getting the divide-by-16 clock,
  28. but I found that setting the ACR to $70 accomplishes that, making the port
  29. speed even 16 times slower yet.
  30.  
  31. ANy ideas?
  32.  
  33. Thanks,
  34.  
  35. Russell Hoffman                 |  System Administrator
  36. rh2y+@andrew.cmu.edu            |  Family Practice Center of East Berlin
  37. Carnegie Mellon University      |  68020 OS9 Box managing 10,000 patients
  38. ---------------------------------------------------------------------------
  39.  
  40. -rwx        1 joe_user                   806 May  1 23:38 file
  41.  
  42. r - indicates you can look at the file
  43. w - indicates file can be hosed
  44. x - indicates file contains bugs
  45.