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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/30/08 12:55
Read: times


 
#152709 - Address Spaces
Responding to: ???'s previous message
I did not check your numbers Frank but here is the deal...

Bit Numbers and the SFR Byte Addresses are parts of two different address spaces in the MCU architecture. Instructions wherein you specify a bit number will access the particular bit in question. On the other hand an instruction where you specify direct memory address of an 8-bit SFR will access the byte wide register. Both bit numbers and the direct byte addressable locations are numbers that can have values that vary from 0 to 255 (not all direct addressable locations will be implemented on all MCUs). So it should not be surprising that some bit-numbers and some direct memory addresses will happen to use the same 8-bit addresses.

There is also the additional thing to consider that, in the original grand scheme architecture design that Intel did so many years ago, they happened to arrange that the upper range of the bit number address space from 80h to 0FFh was used for bit addressing a number of the direct addressable SFRs. These bit addressable SFRs happen to have their direct byte addressable registers located at addresses 80h, 88h, 90h .... 0E8h, 0F0h and 0F8h.

Hope that helps explain...

Michael Karas


List of 6 messages in thread
TopicAuthorDate
SFR question            01/01/70 00:00      
   Address Spaces            01/01/70 00:00      
   SFR as a byte or bit address            01/01/70 00:00      
      what exception            01/01/70 00:00      
         Same value - different address            01/01/70 00:00      
            SFR's and bit Addressable SFR's            01/01/70 00:00      

Back to Subject List