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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/13/08 09:29
Read: times


 
#160009 - Agreed, but...
Responding to: ???'s previous message
Richard Erlacher said:
Yes, the off-chip RAM high-address-byte appears on P2, on most chips (not necessarily on SiLabs) but it's really addressed by DPTR and not by P2.

Not with "classic" (see below) PDATA.
A "classic" PDATA access doesn't use the DPTR, and doesn't modify P2.

When using "classic" PDATA with off-chip memory, only the low address byte is modified during the memory access by a MOVX @Rn instruction; it is entirely up to the programmer to ensure that their high address byte (if the hardware has one!) is set appropriately.

By "classic" PDATA I mean memory accessed via the "classic" 8051 external memory interface, with P0 and P2 - Of course, how this happens in a device with on-chip PDATA/XDATA (like SiLabs?), or some other interface, is entirely device-dependent...

It's getting messy, as 805x architecture expansion continues, and we need to be very precise with nomenclature in order to avoid mixing up details such as where the memory lives, physically, with how it's addressed.

Thoroughly agreed!

SiLabs provides 8 KB of what's addressable as external (sic) memory.

I think calling it "external" is unhelpful here - because it is internal to the physical device!
Especially as some SiLabs chips do also support off-chip memory!

I think the best way to describe it is as XDATA or, more precisely, as "MOVX-addressed"

ie, we take "XDATA" to be synonymous with "MOVX-addressed" which may or may not be physically off the chip.

I think PDATA is enough of a special case that it need only be mentioned when specifically used?

The trick is to keep things straight in our collective understanding, so that when we refer to a given thing, it's clear to everybody what is meant.

Agreed.
Unfortunately, a lot of marketing materials aren't concerned about such precision.

This is also a great example of where out-of-date materials can cause confusion: in the original 8051, XDATA was literally external; so "off-chip" and "external" were synonymous back then - unfortunately, that assumption still persists in some places today when it is blatantly no longer true!


List of 34 messages in thread
TopicAuthorDate
a simple SETB question            01/01/70 00:00      
   SETB from 20h to 2FH            01/01/70 00:00      
      assembler missed this one            01/01/70 00:00      
         I know of none that can't            01/01/70 00:00      
   what about this?            01/01/70 00:00      
      try ORL to set any bit in internal RAM            01/01/70 00:00      
         wrong, nonstandard and why            01/01/70 00:00      
            ORL, Set any bit (more informative)            01/01/70 00:00      
               iram            01/01/70 00:00      
                  Where is that defined?            01/01/70 00:00      
                     my word was not 'defined' but            01/01/70 00:00      
                        a rose, by any other name ...            01/01/70 00:00      
                           I think Erik has it?            01/01/70 00:00      
                              aliased/overlayed            01/01/70 00:00      
                                 Fair enough            01/01/70 00:00      
                              pDATA?            01/01/70 00:00      
                                 Why do you think 64TB would be enough?            01/01/70 00:00      
                                    It would not be            01/01/70 00:00      
                                       Tools are important for size            01/01/70 00:00      
                                          That's why there's ASM to use instead            01/01/70 00:00      
                                       this flies against some previous posts of yours            01/01/70 00:00      
                                          It's like herding cats            01/01/70 00:00      
                                             Flame bait?            01/01/70 00:00      
                                                No ... not really            01/01/70 00:00      
                                                   yes            01/01/70 00:00      
                                 PDATA & XDATA            01/01/70 00:00      
                                    I won't argue that ... but ...            01/01/70 00:00      
                                       Agreed, but...            01/01/70 00:00      
                                          It is seldom that simple ...            01/01/70 00:00      
                                             That's the point!            01/01/70 00:00      
                                             since you are really interested            01/01/70 00:00      
                                                Thanks!            01/01/70 00:00      
      Yes, that is the way I normally do it            01/01/70 00:00      
      WHY TO DISTURB ACC ?            01/01/70 00:00      

Back to Subject List