8051 Microcontroller

Upon completion of this chapter, you will be able to: » Compare and contrast microprocessors and microcontrollers » Describe the advantages of microcontrollers for some applications » Explain the concept of embedded systems » Discuss criteria for considering a microcontroller » Explain the variations of speed, packaging, memory, and cost per unit and how these […]

MICROCONTROLLERS AND EMBEDDED PROCESSORS

This chapter begins with a discussion of the role and importance of microcontrollers in everyday life. In Section 1.1 we also discuss criteria to consider in choosing a microcontroller, as well as the use of microcontrollers in the embedded market. Section 1.2 covers various members of the 8051 family such as the 8052 and 8031, […]

OVERVIEW OF THE 8051 FAMILY

SECTION 1.2: OVERVIEW OF THE 8051 FAMILY In this section we first look at the various members of the 8051 family of microcontrollers and their internal features. Plus we see who are the different manufacturers of the 8051 and what kind of products they offer. A brief history of the 8051 In 1981, Intel Corporation […]

8051 ASSEMBLY LANGUAGE PROGRAMMING

Upon completion of this chapter, you will be able to: » List the registers of the 8051 microcontroller » Manipulate data using the registers and MOV instructions » Code simple 8051 Assembly language instructions » Assemble and run an 8051 program » Describe the sequence of events that occur upon 8051 power-up » Examine programs […]

INSIDE THE 8051

In Section 2.1 we look at the inside of the 8051. We demonstrate some of the widely used registers of the 8051 with simple instructions such as MOV and ADD. In Section 2.2 we examine. Assembly language and machine language programming and define terms such as mnemonics, opcode, operand, etc. The process of assembling and […]

INTRODUCTION TO 8051 ASSEMBLY PROGRAMMING

SECTION 2.2: INTRODUCTION TO 8051 ASSEMBLY PROGRAMMING In this section we discuss Assembly language format and define some widely used terminology associated with Assembly language programming. While the CPU can work only in binary, it can do so at a very high speed. For humans, however, it is quite tedious and slow to deal with […]

ASSEMBLING AND RUNNING AN 8051 PROGRAM

SECTION 2.3: ASSEMBLING AND RUNNING AN 8051 PROGRAM Now that the basic form of an Assembly language program has been given, the next question is: How it is created, assembled, and made ready to run? The steps to create an executable Assembly language program are outlined as follows. First we use an editor to type […]

THE PROGRAM COUNTER AND ROM SPACE IN THE 8051

SECTION 2.4: THE PROGRAM COUNTER AND ROM SPACE IN THE 8051 In this section we examine the role of the program counter (PC) register in executing an 8051 program. We also discuss ROM memory space for various 8051 family members. Program counter in the 8051 Another important register in the 8051 is the PC (program […]

8051 DATA TYPES AND DIRECTIVES

SECTION 2.5: 8051 DATA TYPES AND DIRECTIVES In this section we look at some widely used data types and directives supported by the 8051 assembler. 8051 data type and directives The 8051 microcontroller has only one data type. It is 8 bits, and the size of each register is also 8 bits. It is the […]

8051 FLAG BITS AND THE PSW REGISTER

SECTION 2.6: 8051 FLAG BITS AND THE PSW REGISTER Like any other microprocessor, the 8051 has a flag register to indicate arithmetic conditions such as the carry bit. The flag register in the 8051 is called the program status word (PSW) register. In this section we discuss various bits of this register and provide some […]