Thursday, April 28, 20111
INTRODUCTION TO THE 8052 The 8052 microcontroller is the 8051's "big brother." It is a slightly more powerfulmicrocontroller, sporting a number of additional features which the developer may make use of:
256 bytes of Internal RAM (compared to 128 in the standard 8051).
A third 16-bit timer, capable of a number of new operation modes and 16-bit reloads.
Additional SFRs to support the functionality offered by the third timer.That's really about all there is to the difference between the 8051 and 8052. The remainder of thistutorial will explain these additional features offered by the 8052, and how they are used withinuser programs.256 BYTES OF INTERNAL RAM The standard 8051 microcontroller contains 128 bytes of Internal RAM that are available to thedeveloper as working memory for variables and/or for the operating stack. Instructions that refer to addresses in the range of 00h through 7Fh refer to the 8051's Internal RAM, while addressesin the range of 80h through FFh refer to Special Function Registers (SFRs).Although the 8052 has 256 bytes of Internal RAM, the above method of referrencingthemremains true. Any address between 00h and 7Fh refers to Internal RAM whereas address in therange of 80h through FFh refer to SFRs.The 8052's additional Internal RAM may only be referred byIndirect Addressing. Indirectaddressing always refers to Internal RAM, never to an SFR.Thus, to read the value contained in Internal RAM address 90h, the developer would need tocode something along the lines of the following:MOV R0,#90h ;Set the indirect address to 90hMOV A,@R0 ;Read the contents of Internal RAM pointed to by R0