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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/20/08 17:07
Read: times


 
#159222 - Start with the datasheet ...
Responding to: ???'s previous message
The MCU datasheet will tell you what the external signal timings are. The EPROM/EEPROM/NVRAM (whichever you finally use) datasheet will tell you what its requirements of external inputs are.

If you want to "do it right," you'll then measure the current timings with an oscilloscope.

Generally, a typical 805x MCU asserts ALE for a specified time, then negates it. A short time later, it asserts one of the three nPSEN, nRD, or nWR, depending on the nature of the cycle being performed. Information about when and for how long these signals are produced is in the MCU datasheet.

You can generate nRD with MOVX A,@DPTR, nWR with MOVX @DPTR,A, and nPSEN with MOVC A,@A+DPTR. That will enable you to measure the pulse widths produced by execution of each of these instructions. These signals are generated regardless of whether there's physical memory present where the DPTR points. I'd recommend that you point to an unoccupied region of your memory map so that the effect of reading and writing that space will be innocuous. Naturally, this will require that your MCU is able to execute the code that you write. The easiest way for you to do this will be to program the EEPROM to which you've already referred, with simple code to perform these operations and subsequently make your measurements. If you can program the internal code space in the MCU, then that might be an appropriate place for your code. However, the DPTR must point to an external code location in order to generate nPSEN.

RE


List of 41 messages in thread
TopicAuthorDate
MOVX doesn't work for writing.            01/01/70 00:00      
   It's a read-only memory            01/01/70 00:00      
      EEPROM            01/01/70 00:00      
         RAM-EPROM            01/01/70 00:00      
            That wouldn't be an EEPROM.            01/01/70 00:00      
            Look at Ferro-electric memory            01/01/70 00:00      
         Not wrong.            01/01/70 00:00      
            An EEPROM is an EPROM            01/01/70 00:00      
               Technically, but not in common usage of the term.            01/01/70 00:00      
                  Common use != Definition            01/01/70 00:00      
               Not quite ...            01/01/70 00:00      
                  No, it's not            01/01/70 00:00      
                  A datasheet that actually calls it a "UVEPROM"            01/01/70 00:00      
                     OK ... I stand corrected ...            01/01/70 00:00      
                        A link with EPROM <= EEPROM            01/01/70 00:00      
                        Not that generic!            01/01/70 00:00      
                           Magnetic core memory            01/01/70 00:00      
                           it is SERIAL EEPROM            01/01/70 00:00      
                              UVEPROM?            01/01/70 00:00      
                                 I think a part number would be the solution            01/01/70 00:00      
                                    Symmetric speed too.            01/01/70 00:00      
                           ta paidia paizei !!!            01/01/70 00:00      
            EEPROM implies EPROM            01/01/70 00:00      
               Today, it's the other way round.            01/01/70 00:00      
                  assumption < implication            01/01/70 00:00      
                  You missed the point!            01/01/70 00:00      
                     As one of my old tutors used to say...            01/01/70 00:00      
         Let's not confuse things further            01/01/70 00:00      
            You have also missed the point            01/01/70 00:00      
      Or...            01/01/70 00:00      
   Some Kind Like....            01/01/70 00:00      
      Non-Volatile Memory            01/01/70 00:00      
         or maybe the AT28C64B will work            01/01/70 00:00      
      You mean you want an NVRAM?            01/01/70 00:00      
   write eeprom            01/01/70 00:00      
      that may not be the problem            01/01/70 00:00      
         EPROM has special write-procedures            01/01/70 00:00      
   Check the write waveform timings!!!!!            01/01/70 00:00      
      How?            01/01/70 00:00      
         Source code to simulate MOVX...            01/01/70 00:00      
         Start with the datasheet ...            01/01/70 00:00      

Back to Subject List