home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / ST_PLUS / STP18.MSA / STP_FPU68881.STP < prev    next >
Text File  |  1997-06-30  |  5KB  |  145 lines

  1.   
  2.                               68881 for the 1040  
  3.                                  Keith Sabine 
  4.  
  5.  
  6. This  describes  how you can get a 68881 coprocessor to work  with  your  Atari  
  7. 1040 or similar.  
  8.  
  9. Basically what you have to do is this;  in the following I am using '*' for the  
  10. inversion of a signal:
  11.  
  12. AS* is decode from address 0xFFFA40.  Only bits A23-A5 are used though.  To  do  
  13. this I used two 74HC133 13 I/P nand gates, oring the two outputs together using  
  14. a 74HC32. Also FC0-FC2 are inputted to the 133's, decode as x01, i.e.
  15.  
  16. Do not use FC2 and invert FC1.  A single 74HC04 will provide the inverters  for  
  17. the address decode and FC1.
  18.  
  19. DS* is just the AND of UDS* and LDS*.  Other than this,  the signals need to be  
  20. connected  just as shown in the 68881 data sheet (you'll need a copy  of  this,  
  21. if only for the 68881 pinout). The following shows the connections I used, with  
  22. MC68000 pins on the left and MC68881 pins on the right.
  23.  
  24. I soldered 2 26 way IDC cables with connectors right onto the 68000 pins (crude  
  25. but  my 68000 was not socketed,  so there wasn't much choice).  The use of  IDC  
  26. connectors  is  recommended as at least you can unplug your atari  and  use  as  
  27. normal while you're checking your circuit. I built it on a small piece of board  
  28. with plated-thru holes.  If you can make PCB's so much the better,  please send  
  29. me one!
  30.  
  31. I buffered the clock from the 68000 using a spare AND gate in the 74HC08, since  
  32. with ~8 inch leads the signal was a bit flaky, giving me errors at first.
  33.  
  34. Here's the complete schematic,  there may be one or two 68000 - > 68881 signals  
  35. that  I have forgotten (I'm working from memory here,  I'll check it  over  the  
  36. weekend). If I have forgotten anything important I'll remail you.
  37.  
  38. I tested it with a simple Laser C program linked with the lib881.a  library.  A  
  39. test of about 1000 log,  exp etc.  double precision operations took 7.00s  with  
  40. the standard lib (libc.a) and 0.53s with lib881.a.
  41.  
  42.  
  43. FC2 ---
  44.  
  45. FC1 ---|>o----|
  46.               |
  47. FC0 ----------|
  48.               |
  49. A23 ----------|
  50.               |
  51. A22 ----------|
  52.               |
  53. A21 ----------|
  54.               |  74HC133
  55. A20 ----------|
  56.               |)O-------------
  57. A19 ----------|               |
  58.               |               |
  59. A18 ----------|               |
  60.               |               |
  61. A17 ----------|               |
  62.               |               |
  63. A16 ----------|               |
  64.               |               |
  65. Vcc ----------|               |
  66.               |               |
  67. Vcc ----------|               |
  68.               |               |
  69. Vcc ----------|               |
  70.                               |
  71.                               |      74HC32
  72.                                ----|
  73.                                     )------- AS*
  74.                                ----|
  75.                               |
  76.                               |
  77. A15 ----------|               |
  78.               |               |
  79. A14 ----------|               |
  80.               |               |
  81. A13 ----------|               |
  82.               |               |
  83. A12 ----------|               |
  84.               |               |
  85. A11 ----------|               |
  86.               |  74HC133      |
  87. A10 ---|>o----|               |
  88.               |)O-------------
  89. A9  ----------| 
  90.               |
  91. A8  ---|>o----|
  92.               |
  93. A7  ---|>o----|
  94.               |
  95. A6  ----------|
  96.               |
  97. A5  ---|>o----|
  98.               |
  99. Vcc ----------|
  100.               |
  101. Vcc ----------|
  102.  
  103.                   74HC08
  104. UDS* ---------| 
  105.               |)---------------------------- DS*
  106. LDS* ---------|
  107.  
  108.  
  109. D0-D7 ------------------------+------------- D0 - D7
  110.                               |
  111.                               |
  112. D8-D15 -----------------+------------------- D8 - D15
  113.                         |     |
  114.                         |     |
  115.                         |      ------------- D16 - D23
  116.                         |
  117.                         |
  118.                         -------------------- D24 - D31
  119.  
  120.  
  121. RESET* ------------------------------------- RESET*
  122.  
  123.                    74HC08
  124. CLK ------+----|
  125.           |    |)--------------------------- CLK
  126.           -----|
  127.  
  128. DTACK -------------------------------------- DSACK1*
  129.  
  130.  
  131. R/W* --------------------------------------- R/W*
  132.  
  133.  
  134. Vdd ---------------------------------------- SIZE
  135.  
  136.  
  137. Gnd ---------------------------------------- A0
  138.  
  139.  
  140.  
  141. Pretty impressive, huh?
  142.  
  143.                        Keith Sabine (keiths@cadence.com) 
  144.  
  145.