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