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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/27/06 23:39
Read: times


 
#117181 - DS89C420 internal SRAM Access question
Little background:
I've just started working with an 8052 (specifically the Dallas Semiconductor DS89C420). I've successfully connected a character LCD display and programmed it using c language (SDCC compiler).

I'm trying to access the internal 1K of SRAM on this chip which requires I set bit0 of the PMR register before I can use this memory. Well I've tried to do this both in C and ASM (I don't know much / any asm for the 8052) but I have yet to be successful in being able to write/read from this memory. I've also been unable to find any sample assembly code that does this. I have an aplication note from DS that shows a sample c code for this but I have not been able to produce working code from there sample (though there SDCC version was 2.4.0 and I have 2.5.0)

So my question is does anyone use this chip (or another from Dallas) and have experience using this internal SRAM? If so could you provide sample assembly code?

Below are two of my attempts to use the memory, if anyone sees any issues that might cause my problem please let me know.

test.asm
mem.c

ASSEMBLER: A51
COMPILER: SDCC 2.5.0

Also if anyone wants to see a real mess in wiring/prototyping look at the pics on www.partingc.com


List of 67 messages in thread
TopicAuthorDate
DS89C420 internal SRAM Access question            01/01/70 00:00      
   Timed access            01/01/70 00:00      
      Re: Timed access            01/01/70 00:00      
         Lacking ?            01/01/70 00:00      
            Re: Lacking            01/01/70 00:00      
   dunno            01/01/70 00:00      
      Re: dunno            01/01/70 00:00      
         lots of features to track            01/01/70 00:00      
   Example Code            01/01/70 00:00      
      Dallas SRAM Access            01/01/70 00:00      
   Update / Further Puzzle            01/01/70 00:00      
      False Alarm            01/01/70 00:00      
         A bug, maybe?            01/01/70 00:00      
            Isn't that CPU EOL (or not for new des?)            01/01/70 00:00      
               Yes, it's been replaced but he has it.            01/01/70 00:00      
                  Not Quite EOL but thats next ...            01/01/70 00:00      
                     Could be a disappointment            01/01/70 00:00      
                  how are you going to know if the problem            01/01/70 00:00      
                  Damned with faint praise!            01/01/70 00:00      
                     Clearly it's not for production            01/01/70 00:00      
                        Is there a difference between IAP & ISP?            01/01/70 00:00      
                           what I understand is            01/01/70 00:00      
                              DS89C4x0 IAP/ISP explained            01/01/70 00:00      
                           Final Update            01/01/70 00:00      
                              Try this            01/01/70 00:00      
                                 Re: Try this            01/01/70 00:00      
                                    It may be time for a different specimen            01/01/70 00:00      
                                       Re: new specimen            01/01/70 00:00      
                                          huh?            01/01/70 00:00      
                                             not enough benefit in replacing            01/01/70 00:00      
                                          I've been at this a LONG time ...            01/01/70 00:00      
                                    what does it return            01/01/70 00:00      
                                       returns 0x00            01/01/70 00:00      
                                          probably, but why?            01/01/70 00:00      
                                          I doubt you have to connect 'em            01/01/70 00:00      
                                              do not know what ISTR is            01/01/70 00:00      
                                                what it means            01/01/70 00:00      
                                                me either            01/01/70 00:00      
                                                   before you "move on"            01/01/70 00:00      
                                          oscillscope             01/01/70 00:00      
                                             it's not clear how a 'scope will help            01/01/70 00:00      
                                                Well a 'scope would ...            01/01/70 00:00      
                                                   exactly ... so why not have another look            01/01/70 00:00      
                                                      code?            01/01/70 00:00      
                                                         What about SFR definitions?            01/01/70 00:00      
                                                            SFR Def            01/01/70 00:00      
                                                            SFR was defined            01/01/70 00:00      
                                                               bad idea            01/01/70 00:00      
                                                                  Yep, it leads to confusion!            01/01/70 00:00      
                                    but...            01/01/70 00:00      
                                       confusion            01/01/70 00:00      
                                          That was what I wondered, too.            01/01/70 00:00      
                                             So ... What about it?            01/01/70 00:00      
                                             Clear a few things up            01/01/70 00:00      
                        wrong way around            01/01/70 00:00      
                     Most the time..            01/01/70 00:00      
                        That's undoubtedly the case.            01/01/70 00:00      
   Matthew, I am curious about something            01/01/70 00:00      
      Answer as best I can            01/01/70 00:00      
         It's still not clear ...            01/01/70 00:00      
            hmmm try some more            01/01/70 00:00      
               I don't think I'd try that ...            01/01/70 00:00      
                  Re:            01/01/70 00:00      
                     It's not rude ...            01/01/70 00:00      
                        Now ... here's what I did ...            01/01/70 00:00      
               test.asm once more            01/01/70 00:00      
                  Some more questions            01/01/70 00:00      

Back to Subject List