 |
|
 |
| Parallax Forums > Public Forums > SX Microcontrollers, SX/B Compiler and SX-Key Tool > SX48 and PC RAM? | Forum Quick Jump
|
     |  David B Registered Member
        Date Joined Jul 2004 Total Posts : 382 | Posted 2/24/2006 1:13 PM (GMT -7) |   | I did this quite a few months ago, and don't remember many of the details. I don't remember ever measuring the current draw.
I used a SIMM and socket from an old motherboard I had in the garage, fastening the socket to an extension I attached to the side of the SX52 experiment board. This was mostly an educational experience, to learn about using dynamic RAMs, and to test whether DRAMs might be a worthwhile way to go in a logger, since I already have a few dozen SIMMs sitting around the garage.
It seemed to work just fine. The DRAM performed exactly as some document I'd found said they would, as soon as I found the magic number of delays to stick into various places. I haven't used it in any serious logger, but don't see any reason it wouldn't work just fine.
I don't think this version of the code shows it (I had attached the only version I happened to have on my work computer) but I had a version of the code where a PC could send data to any selected DRAM address (up to one megabyte, my SIMM size), then read it back to test the RAM. | | Back to Top | | |
  |  David B Registered Member
        Date Joined Jul 2004 Total Posts : 382 | Posted 2/24/2006 1:55 PM (GMT -7) |   | Shotgun targets?
When I get home tonight I'll look for the document I used and send it along.
Although I used the SX52, the SX48 should work identically, since both have the same ports C, D and E.
Bean, I neglected to say that I did use a 30 pin SIMM.
Actually, I wired in a dual-SIMM socket, so the circuit should be able to use two SIMMs, with chipselect managed by the column address strobe "CAS" (which is why it's labeled CAS_1 in the code) for up to 32 megs of storage. But I only tested it with a single 1-meg SIMM. | | Back to Top | | |
   |  Clock Loop =MC²

       Date Joined Jun 2005 Total Posts : 699 | Posted 2/24/2006 4:46 PM (GMT -7) |   | | | |
  |  David B Registered Member
        Date Joined Jul 2004 Total Posts : 382 | Posted 2/26/2006 9:51 PM (GMT -7) |   | Thanks for all the kind words!
In the project section, I've posted a project with a picture of my board, more recent code and a few documents.
The code listed above was an old development piece. For the project, I cleaned it up a bit and doublechecked that the RAM, the RS232 for the PC two-way communication and the RS232 for the LCD display all work properly.
James, the code attached to the project might be better for the SXLIST site, and you're welcome to post it.
I include a few references that helped - the SIMM socket pinout and a sample of code that shows the usage of each pin and gives examples of how to access the DRAM.
Chris, I also used the Z80 quite a bit in years past, and I remember its built-in refresh support. It supported a refresh mode where actual addresses were provided to the RAM, which led me to think that refresh would be a complicated procedure. But then I learned that modern SIMMs have a refresh mode where a counter internal to the DRAM chips manages all addressing, so all we need to do nowadays is toggle a couple of SIMM control lines on every ISR, and we're done.
This was a fun little project, especially because it worked so well, so quickly, even while using surplus parts.
David | | Back to Top | | |
 | Forum Information | Currently it is Thursday, July 29, 2010 5:21 PM (GMT -7) There are a total of 462,441 posts in 62,066 threads. In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
| | Who's Online | This forum has 20143 registered members. Please welcome our newest member, ME01. 57 Guest(s), 14 Registered Member(s) are currently online. Details John Abshier, Erik Friesen, Kevin Wood, simpsonmichael1, BradC, David Betz, Julian800, Martin Hodge, prof_braino, Harley, Sapieha, wiresalot, Ravenkallen, Tubular |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|