home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / robotics / 1561 < prev    next >
Encoding:
Text File  |  1992-08-14  |  3.2 KB  |  75 lines

  1. Newsgroups: comp.robotics
  2. Path: sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!usc!snorkelwacker.mit.edu!news.media.mit.edu!fredm
  3. From: fredm@media.mit.edu (Fred G Martin)
  4. Subject: MiniBoard high speed bus
  5. Message-ID: <1992Aug14.141218.5105@news.media.mit.edu>
  6. Sender: news@news.media.mit.edu (USENET News System)
  7. Organization: MIT Media Laboratory
  8. References: <bws.7@ccs.carleton.ca>
  9. Date: Fri, 14 Aug 1992 14:12:18 GMT
  10. Lines: 63
  11.  
  12. In article <bws.7@ccs.carleton.ca> bws@ccs.carleton.ca (Brian
  13. Sullivan) writes: 
  14.  
  15. >One question. The documentation talks about a high speed bus. 
  16. >What is it used for, and does the library provide any way to
  17. >use it?
  18.  
  19.  
  20. I have not yet written library functions to use the high-speed bus.
  21. The hardware has been tested though.  The basic functionity is
  22. provided by the SPI (Serial Peripheral Interface) intrinsic to 6811's
  23. and many other Motorola microprocessors.
  24.  
  25. The way the Mini Board uses the SPI is as follows: one board chooses
  26. to become network master, and one or more other boards must choose to
  27. become network slave.  The master then controls the data flow: it
  28. shifts a byte of data bits out on its MOSI (Master Out Slave In) line,
  29. while receiving bits from the slave on the master's MISO (Master In
  30. Slave Out) line.  (While multiple slaves may *receive* a transmission
  31. from the master, only one is allowed to respond.) 
  32.  
  33. All slaves receive the master's data on their MOSI lines (the same
  34. line that is output for a master is input for a slave!); the one
  35. replying slave writes data back to the master---at the same time as
  36. the data is coming in from the master---by use of its MISO line.  You
  37. can see that this means that all the 6811 MOSI lines are wired
  38. together; same with the MISO lines.
  39.  
  40. The master generates the clock which is synchronized to the data on
  41. the SCK line (which also connects in parallel to all 6811's).
  42.  
  43. Motorola's SPI port also has a Slave Select (SS) line, which allows
  44. the construction of hardware-selectable network locations.  This
  45. requires the addition of extra non-6811 hardware---typically a
  46. latch and a comparator, which selects a slave when the appropriate
  47. number is written to the latch.
  48.  
  49. In the MiniBoard, extra hardware is eschewed.  The SS line is wired to
  50. be always true, so slaves are always selected.  This means that a
  51. network protocol must be constructed in software.
  52.  
  53. I mentioned earlier that only one of the slaves may respond to the
  54. master's message at any given time (otherwise, there will be bus
  55. contention on the MISO lines).  You may ask, ``How is this possible,
  56. given that slaves are always selected by the hardware?''  The answer
  57. is that slaves can disable their transmissions while they still are
  58. active to receive data.  This is done by turning off the output enable
  59. bit on the MISO line.  A slave in this configuration can "listen" for
  60. network bytes, and pipe up to respond only when network protocol has
  61. selected it.
  62.  
  63. If anyone goes ahead and implements a protocol, please post the code!
  64. I'm sure others would appreciate it too.
  65.  
  66. If you want all the gory details on the SPI systems, get your hands on
  67. some Motorola 6811 doc's.
  68.  
  69.  
  70.     - Fred 
  71.  
  72.  
  73. Fred Martin | fredm@media.mit.edu | (617) 253-7143 | 20 Ames St. Rm. E15-301
  74. Epistemology and Learning Group, MIT Media Lab     | Cambridge, MA 02139 USA
  75.