home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / robotics / 3004 < prev    next >
Encoding:
Text File  |  1993-01-21  |  3.0 KB  |  71 lines

  1. Newsgroups: comp.robotics
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!spool.mu.edu!enterpoop.mit.edu!news.media.mit.edu!fredm
  3. From: fredm@media.mit.edu (Fred G Martin)
  4. Subject: Re: IS MY MINIBOARD WORKING?
  5. Message-ID: <1993Jan21.003432.28575@news.media.mit.edu>
  6. Sender: news@news.media.mit.edu (USENET News System)
  7. Organization: MIT Media Laboratory
  8. References: <1993Jan20.221146.13845@mixcom.com>
  9. Date: Thu, 21 Jan 1993 00:34:32 GMT
  10. Lines: 59
  11.  
  12. In article <1993Jan20.221146.13845@mixcom.com>
  13. Clint.Laskowski@mixcom.mixcom.com (Clint.Laskowski) writes: 
  14.  
  15. >Well, I just got my 6811 CPU from Alan Kilian (thanks Alan!).
  16. >I put it in my miniboard, connected the board to my Mac and powered
  17. >it up. Everything seemed to go fine (no smoke!) so I downloaded
  18. >MON (the Mac version). As soon as I downloaded it, all the motor
  19. >LEDs on the miniboard turned "on" (both green and red) and stayed
  20. >on.
  21.  
  22. This effect (both red and green motor LEDs on with MON) is an
  23. undesirable artifact of the monitor bootstrap routine having turned on
  24. extended addressing.  
  25.  
  26. You won't be able to control the motor with MON as it is.  I guess I
  27. should fix this.  Alternatively, this effect can be seen as proof that
  28. your motor chips are working, otherwise the LEDs wouldn't light at
  29. all!
  30.  
  31. >The help info was listed and the system was interactive (ie.
  32. >I could read and write memory locations. I could not turn off the
  33. >motor LEDs. I tried writing $00 and $FF to location $005D. Is this
  34. >normal?
  35.  
  36. Location $005D is just one humble byte of the 256 bytes in the 6811's
  37. internal RAM.  Writing to it will affect motors IF AND ONLY IF the CPU
  38. happens to be running HEXMON.ASM!  Otherwise you're just trashing a
  39. byte of RAM!!  (I tried to be clear on this in the manual, but people
  40. keep getting confused... am I to blame?)
  41.  
  42. If you want to control motors directly, write to address $1004, the
  43. location of the 6811 Port B register, to which the motor chips are
  44. connected.  But, because of the MON extended addressing problem, it
  45. probably won't work from MON.  I'll try to fix this soon.
  46.  
  47. ***Please don't confuse the HEXMON "registers" (implemented *only* by
  48. the HEXMON software) with the 6811 register bank (addresses $1000 to
  49. $103F).***
  50.  
  51.  
  52. >Does anyone have any .s19 files they could send me which I could
  53. >download to my miniboard to make sure things are working properly?
  54.  
  55. That's a good idea.
  56.  
  57. >I think we should work together to write a "Miniboard Test Program"
  58. >which will blink the motor LEDs or something else to let us know
  59. >the boards are working properly.
  60.  
  61. Alan Kilian has done so; the C source code is archived in
  62. pub/miniboard/hexmon/hxmtest.c.  It requires that HEXMON40 be already
  63. downloaded to the board; it then interacts with HEXMON doing things
  64. like printing sensors values and turning motors on and off.
  65.  
  66. If someone wants to upload executables of this, that would be nice.
  67.  
  68. -- 
  69. Fred Martin | fredm@media.mit.edu | (617) 253-7143 | 20 Ames St. Rm. E15-301
  70. Epistemology and Learning Group, MIT Media Lab     | Cambridge, MA 02139 USA
  71.