Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/17/13 02:11
Read: times


 
#189207 - Some links to reduce work
Responding to: ???'s previous message
James Brzycki said:

To jim, I will look into doing the two eeprom thing as I can get my hands on a multiplexer and more eeproms. And it would be exactly what I asked, sounds rather simplier that the memory connections that I have going now.


To handle the PC end, & most of the handshake stuff, it is best to find existing software.
This page has good general lists
http://bit.kuas.edu.tw/~8051/
and the link to here
http://chaokhun.kmitl.ac.th/~kswichit.../easy2.htm
has PC software and source code for PC read/write to parallel pins.

So it is very close to what you need - in code flow terms, it is 100%.
Only the lowest level port writes will need modifies, & strip out all Vpp stuff.

For your pair of EEPROM device, look at SST39SF010A series.
These are cheaper/more avail than 64K parts, and you can jumper wire A16,
as a wear-leveling mechanism.

With 20us single byte writes, (Baud rate is slower) write is easy
Only the 100ms block erase needs a specific delay

You will need to modify that code, to remove all the static Port access, and replace with XDATA Read/Write. (MOVX opcodes)

Place that code (via work programmer) into your ROM wired device (WE#=HI,OE#=PSEN), and wire the RUN device as SRAM. (WE#=WRN, OE#=RDN)
(do not add the Multiplex until this part is all working )

Then edit-and-retry your ROM code, until you can get all these steps
working

 while(1)
  {
    getcommand();
    prompting();
    setcounter();
    erase();
    write();
    read();
    lock();
    printchksum();
    getinfo();
    PGMparameters();
    }

 


A useful early test, is to comment out the Chip-action-lines inside erase(); write(); lock(); functions (but keep the handshake and delays), and thus test in READ only mode.
Use your programmer to place a known pattern in the RAM part, and give that file to the PC link end.

When you have full link operation, the PC will verify the device against the test pattern file you used to program it.
Then, you can enable Erase action lines, and check you can read FFH's

Finally enable the Write() action lines, & test.
When all that is 100%, do a speed-up pass, to remove the unnecessary delays.
SST39SF010A data will tell you what time is needed.

Finally, add your Multiplexer to flip from Boot Download, to Run.
Then, send your tested & commented code to the Author in link #2.


List of 40 messages in thread
TopicAuthorDate
Regarding Typical memory connection for a ds80c320            01/01/70 00:00      
   drop it!            01/01/70 00:00      
   same question - same answers            01/01/70 00:00      
   It won't work            01/01/70 00:00      
      Andy Neil's previous message            01/01/70 00:00      
         little feet stamping the floor            01/01/70 00:00      
            little feet stamping the floor            01/01/70 00:00      
               Erik doesn't like it when you don't do what he wants            01/01/70 00:00      
                  KISS            01/01/70 00:00      
                     Not exactly ...            01/01/70 00:00      
                        I find it odd that you            01/01/70 00:00      
                           just to add            01/01/70 00:00      
                              If you really want to use ds80c320            01/01/70 00:00      
                                 Not necessary ...            01/01/70 00:00      
                                    What about the other option?            01/01/70 00:00      
                                    Yes, but ..            01/01/70 00:00      
                              So your development cycle will be...            01/01/70 00:00      
                           What about that other post?            01/01/70 00:00      
                              reply to all            01/01/70 00:00      
                                 'something'            01/01/70 00:00      
                                    "something" reply            01/01/70 00:00      
                                 Some links to reduce work             01/01/70 00:00      
                                 I'm not surprised ...             01/01/70 00:00      
                                    down memory lane            01/01/70 00:00      
                                       Antique chips            01/01/70 00:00      
                                          in my opinion            01/01/70 00:00      
                                             Just where, under the hood, can you look?            01/01/70 00:00      
                                                this applies equally well            01/01/70 00:00      
                                                   Did he say he wants apples?            01/01/70 00:00      
                                          Highly integrated devices deprive one of valuable experience            01/01/70 00:00      
                                       the only difference ...             01/01/70 00:00      
                                          a monitor can not             01/01/70 00:00      
                                             I don't think anyone's that foolish ...             01/01/70 00:00      
                                                I do            01/01/70 00:00      
                                                   He doesn't have to apply external memory            01/01/70 00:00      
                                                      by your posts he does            01/01/70 00:00      
                                                         You have to consider ALL his posts            01/01/70 00:00      
            The bible links            01/01/70 00:00      
               you are right            01/01/70 00:00      
                  Thanks            01/01/70 00:00      

Back to Subject List