home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / robotics / 2615 next >
Encoding:
Text File  |  1992-12-11  |  2.4 KB  |  56 lines

  1. Newsgroups: comp.robotics,sci.eletcronics
  2. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!cs.utexas.edu!sun-barr!decwrl!deccrl!news.crl.dec.com!dbased.nuo.dec.com!e2big.mko.dec.com!labrea.zko.dec.com!man
  3. From: man@labrea.zko.dec.com (Richard Man)
  4. Subject: Help on adding memory to HC16 EVB needed
  5. Message-ID: <1992Dec11.163950.4565@e2big.mko.dec.com>
  6. Followup-To: comp.robotics
  7. Lines: 43
  8. Sender: usenet@e2big.mko.dec.com (Mr. USENET)
  9. Reply-To: man@labrea.zko.dec.com (Richard Man)
  10. Organization: Digital Equipment Corporation
  11. Date: Fri, 11 Dec 1992 16:39:50 GMT
  12.  
  13.  
  14. Hi I am on wit's end trying to add byte-accessible RAM to the Motorola
  15. HC16 EVB. I appreciate any help on this. Thanks.
  16.  
  17. Goal: add 32K or (64K) RAM to the HC16 EVB to use as data memory. Hence
  18. it must be byte-accessible.
  19.  
  20. Try #1:
  21. Follows the direction in the exercise program #4 - put RAM chips in both U1
  22. and U3 (word) sockets. The program works. However,
  23. the program accesses the data memory using word instructions. When I try to 
  24. write to the memory using byte instructions, seems to be BOTH odd and even
  25. bytes are changing. The "ghost" byte is not necessarily a copy of the
  26. written byte, but it can be.
  27. FYI, the chip select logic is set up such that CS0, CS1,
  28. and CS2 are all 16 bit ports. CS2 is the chip select for both RAM chips, CS0
  29. is the write enable for one and CS1 is the write enable for the other. Thus
  30. when a byte is written to the memory, both chips are selected by CS2, but
  31. only one is write enabled, which I PRESUME is OK? The signals are verified
  32. by a scope and it appears to be working this way.
  33.  
  34. Try #2:
  35. Take out the RAM chip from the U1 socket and use the (byte) position on
  36. the U3 socket. Program the chip selects so that CS0, and CS2 are 8 bit ports,
  37. CS1 is left untouched. This time writing a byte appears to write the same byte
  38. to both half of the memory word! FYI: the chip select pgm is as follows:
  39.  
  40. CSINIT:                         ;Initialize the Chip Selects.....
  41.         LDD     #$0303
  42.         STD     CSBAR0          ;set U3 RAM base addr to $30000: bank 3, 64k
  43.         STD     CSBAR2          ;set Chip Select 2 to fire at base addr $30000
  44.         LDD     #$1370
  45.         STD     CSOR0           ;set Chip Select 0, write only
  46.         LDD     #$1b70
  47.         STD     CSOR2           ;set Chip Select 2, read and write
  48.         LDD     #$3FBB
  49.         STD     CSPAR0          ;set Chip Selects 0,2 to 8-bit ports
  50.  
  51. Help!
  52. --
  53. - Richard F. Man (man@labrea.zko.dec.com)
  54. "Small Rovers, Big Dreams"
  55.  
  56.