8051 Microcontroller

ACCESSING MEMORY USING VARIOUS ADDRESSING MODES

SECTION 5.2: ACCESSING MEMORY USING VARIOUS ADDRESSING MODES We can use direct or register indirect addressing modes to access data stored either in RAM or registers of the 8051. This topic will be discussed thoroughly in this section. We will also show how to access on-chip ROM containing data using indexed addressing mode. Direct addressing […]

BIT ADDRESSES FOR I/O AND RAM

SECTION 5.3: BIT ADDRESSES FOR I/O AND RAM Many microprocessors such as the 386 or Pentium allow programs to access registers and I/O ports in byte size only. In other words, if you need to check a single bit of an I/O port, you must read the entire byte first and then manipulate the whole […]

EXTRA 128-BYTE ON-CHIP RAM IN 8052

SECTION 5.4: EXTRA 128-BYTE ON-CHIP RAM IN 8052 The 8052 microcontroller is an enhanced version of the 8051. In recent years the 8052 has replaced the 8051 due to many of its new features. DS89C420/30 is an example of 8052 architecture. One of the new features of the 8052 is an extra 128 bytes of […]

PROGRAMMING TIMERS 0 AND 1 IN 8051 C

SECTION 9.3: PROGRAMMING TIMERS 0 AND 1 IN 8051 C In Chapter 7 we showed some examples of C programming for the 8051. In this section we study C programming for the 8051 timers. As we saw in the examples in Chapter 7, the general-purpose registers of the 8051, such as RO – R7, A, […]

COUNTER PROGRAMMING

SECTION 9.2: COUNTER PROGRAMMING In the last section we used the timer/counter of the 8051 to generate time delays. These timers can also be used as counters counting events happening outside the 8051. The use of the timer/counter as an event counter is covered in this section. As far as the use of a timer […]

PROGRAMMING 8051 TIMERS

The 8051 has two timers/counters. They can be used either as timers to generate a time delay or as counters to count events happening outside the microcontroller. In Section 9.1 \ve see how these timers are used to generate time delays. In Section 9.2 we show how they are used as event counters. In Section […]

8051 TIMER PROGRAMMING IN ASSEMBLY AND C

Upon completion of this chapter, you will be able to: » List the timers of the 8051 and their associated registers » Describe the various modes of the 8051 timers » Program the 8051 timers in Assembly and C to generate time delays » Program the 8051 counters in Assembly and C as event counters

EXPLAINING THE INTEL HEX FILE

SECTION 8.3: EXPLAINING THE INTEL HEX FILE Intel hex file is a widely used file format designed to standardize the loading of executable machine codes into a ROM chip. Therefore, loaders that come Figure 8-8. List File For Test Program (Assembly) with every ROM burner (programmer) support the Intel hex file format. While in many […]

DESIGN AND TEST OF DS89C4xO TRAINER

SECTION 8.2: DESIGN AND TEST OF DS89C4xO TRAINER In this section we show connections for 8051-based systems using chips such as the AT89C51 and DS89C4xO. If you decide to wire-wrap one of these, make sure that you read Appendix B on wire wrapping. AT89C51/52-based trainer connection In systems based on an AT89C51/52-type microcontroller, you need […]

PIN DESCRIPTION OF THE 8051

This chapter describes the process of physically connecting and testing 8051-based systems. In the first section we describe the function of the pins of 8051 chip. The second section shows the hardware connection for an 8051 Trainer using the DS89C4xO (DS89C420/30/40/50) chip. It also shows how to download programs into a DS89C4xO-based system using PC […]