You are on page 1of 2
32. Leaming Microcontrollers = ‘The pull-up FET only operates when there is an access to external memory. Port 0 output buffers can drive 8 LS TTL inputs. The output drivers of Port 0 (and also Port 2) can be switched to an internal ADDR (and ADDR/DATA) bus by using an internal Control signal while accessing the external memory. When used as ADDR and ADDR/DATA bus, Port 0 and Port 2 pins, respectively, cannot be used as general-purpose I/Os. 34 MEMORY ORGANIZATION WEB The MCS-51 has 64K external data memory, 64K program memory and 256 bytes of internal data memory. The program memory map of 805! is shown in Fig. 3.6. The 64K program memory space of 8051 is divided into internal snd external memory. If the EA pin is high, then 8051 executes from the internal program memory until the address exceeds OFFFHL FFFFH FFFFH External | External Program| Program Memory | Memory Porton | of aot | 64k 10004 oF | internat | | Pregram | ooo tM 00H (a) EA ) A =0 | Fig. 3.6 Program Memory of 8051 Table 3.2 Program Memory of 8051 and Program Execution Sus of BA pin Prigram execaion fron Program execiton from 0000 through OF FEEL 1000H through OFFEFH Internal program memory External peogram memory External program memory External program memory Hi ‘After that, locations 1000H through OFFFFH are executed from the external memory por- tion. If EA pin is held low, then 8051 executes instructions from external memory only. Table 3.2 shows this. The external 64 K of data memory can be accessed using MOVX insicuction. Figure 3.7 shows the internal and external data memory of 8051. 2051 Fi Deron, meine 10 Ps ane Mere Onanition 5a - ‘Extamat | ea enti | (128 bytes) (328 bytes) } oa St a

You might also like