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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/28/06 13:26
Modified:
  03/28/06 13:31

Read: times


 
#113294 - Explaination
Responding to: ???'s previous message

With 8051 you have an address space of 65536 locations (64Kbyte), each one byte wide. In the example above this address space is divided into 8 sectors of 8192 locations each (8Kbyte). The 74HC138 helps to provide this decoding. Only one output is low at a time. (Please have a look at datasheet of 74HC138!). Remember, 1K is 1024, so 1Kbyte is 1024 bytes.

So, if A13=A14=A15=0, then /CS input of 27C64 goes low and this chip is addressed. By the address lines A0...A10 then a certain location within the 27C64, one of 2^11 = 2048 is addressed.

If A13=A14=A15=1 then the /CS input of ADC0804 goes low and this chip is addressed. Means the according write ot read instruction will address the ADC0804. You will see, that no further address line is needed to address the ADC0804. So, the ADC0804 looks like exactly one memory location, although 8192 different locations within this 8Kbyte sector could be addressed.

Finally, if A13=A14=0 and A15=1 then the 82C55 is addressed. From the A0...A12 address lines only two lines are used to address different locations within the 82C55. So, again from the 8192 possible locations, which could be addressed in this 8Kbyte sector the most are wasted, only 4 addresses are used.

This wasting of memory locations is possible, if you have enough memory space. In such a case you do not fully decode the memory space, but use a solution which uses a minmium number of chips. With this 74HC138 you could address 8 such chips, each with 8192 different memory locations inside. Whether you use them or not is on you.

Kai



List of 58 messages in thread
TopicAuthorDate
How to decoder the memory address?            01/01/70 00:00      
   decoding already inside            01/01/70 00:00      
      That's not fair!            01/01/70 00:00      
         ???            01/01/70 00:00      
            Maybe unfair was the wrong way to put it            01/01/70 00:00      
               why Flash esoteric ???            01/01/70 00:00      
                  So ... where's the decoding?            01/01/70 00:00      
                     decoding in practice            01/01/70 00:00      
                        This is not a personal attack, Peter            01/01/70 00:00      
                           actually            01/01/70 00:00      
                              I don't disagree            01/01/70 00:00      
                                 hardly            01/01/70 00:00      
                                    what he asked was:            01/01/70 00:00      
                           R. E            01/01/70 00:00      
                              Not exactly            01/01/70 00:00      
                                  Sorry Richard I was a little more            01/01/70 00:00      
                              there is an ignore function available            01/01/70 00:00      
                                 that is how I currently do it            01/01/70 00:00      
                                    drop the flat mode, go threaded            01/01/70 00:00      
   There's a way, once you've decided            01/01/70 00:00      
   The first step            01/01/70 00:00      
      Requirements, a most important variable            01/01/70 00:00      
         I'm not a machine            01/01/70 00:00      
   RE: How to decoder the memory address?            01/01/70 00:00      
      it's bible time            01/01/70 00:00      
   Don't look bad each others please            01/01/70 00:00      
      74HC138            01/01/70 00:00      
      why do you refuse to read "the bible"            01/01/70 00:00      
         What chapter will answer his question?            01/01/70 00:00      
            I never answer that            01/01/70 00:00      
               Who's joy? Yours??            01/01/70 00:00      
                  places "the bible"            01/01/70 00:00      
                     Just answer the question            01/01/70 00:00      
                        then why did you not give him an answer            01/01/70 00:00      
                           because I'm just as bad as you, Erik            01/01/70 00:00      
         Not this time            01/01/70 00:00      
            You're right, and he knows it            01/01/70 00:00      
      Interesting link            01/01/70 00:00      
      Example            01/01/70 00:00      
      questions, guesses and comments            01/01/70 00:00      
         Now, was that so hard?            01/01/70 00:00      
            silliness was never here            01/01/70 00:00      
               Well, perhaps not, but ...            01/01/70 00:00      
                  So when?            01/01/70 00:00      
      RE: Don't look bad each others please            01/01/70 00:00      
   Don't look bad each others please            01/01/70 00:00      
   I do not understand            01/01/70 00:00      
   Addressing 101            01/01/70 00:00      
   Why using this processor pins left...?            01/01/70 00:00      
      What chips?            01/01/70 00:00      
      What is the problem?            01/01/70 00:00      
         Explaination            01/01/70 00:00      
            I just remembered 22V10            01/01/70 00:00      
            Be careful            01/01/70 00:00      
               How many address buses do you see?            01/01/70 00:00      
                  On the busses            01/01/70 00:00      
                     The only purpose was...            01/01/70 00:00      
                        The question has been well addressed            01/01/70 00:00      

Back to Subject List