All Topics  
Intel 8051

 
Intel 8051

   Email Print
   Bookmark   Link






 

Intel 8051



 
 
The Intel 8051 is a Harvard architecture
Harvard architecture

The Harvard architecture is a computer architecture with physically separate computer storage and signal pathways for instructions and data. The term originated from the Harvard Mark I relay-based computer, which stored instructions on punched tape and data in electro-mechanical counters ....
, single chip microcontroller
Microcontroller

A microcontroller is a small computer on a single integrated circuit consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc....
 (µC) which was developed by Intel in 1980 for use in embedded system
Embedded system

An embedded system is a special-purpose computer system designed to perform one or a few dedicated functions, often with real-time computing constraints....
s. Intel's original versions were popular in the 1980s and early 1990s, but has largely been superseded by a vast range of faster and/or functionally enhanced 8051-compatible devices manufactured by more than 20 independent manufacturers including Atmel
Atmel

Atmel Corporation is a manufacturer of semiconductors, founded in 1984. Its focus is on system-level solutions built around flash memory microcontrollers....
, Infineon Technologies
Infineon Technologies

Infineon Technologies Aktiengesellschaft was founded in April 1999 when the semiconductor operations of parent company, Siemens AG, were spun off to form a separate legal entity....
 (formerly Siemens AG
Siemens AG

Siemens Aktiengesellschaft is Europe's largest engineering Conglomerate . Siemens' international headquarters are located in Berlin and Munich, Germany....
), Maxim Integrated Products
Maxim Integrated Products

Maxim Integrated Products is a publicly traded company that designs, manufactures, and sells high-performance semiconductor products. The company?s stated mission is to deliver innovative analog and mixed-signal engineering solutions that add value to its customers? products....
 (via its Dallas Semiconductor
Dallas Semiconductor

Dallas Semiconductor, now a subsidiary of Maxim Integrated Products, designs and manufactures analog, digital, and mixed-signal semiconductors ....
 subsidiary), NXP (formerly Philips
Philips

Koninklijke Philips Electronics N.V. , usually known as Philips, is a Netherlands electronics company. It is one of the largest electronics companies in the world, founded and headquartered in the Netherlands....
 Semiconductor), Nuvoton (formerly Winbond
Winbond

Winbond Electronics Corporationis a Taiwan-based corporation which was founded in 1987 and is a producer of semiconductors and several types of Integrated Circuit, most notably DRAM, Static Random Access Memory, microcontrollers, and personal computer integrated circuit....
), ST Microelectronics, Silicon Laboratories
Silicon Laboratories

Silicon Laboratories, Inc. is a Mixed-signal integrated circuit fabless semiconductor company based in Austin, Texas.The company was founded in 1996 by three veterans from the former Cirrus Logic – Nav Sooch, Dave Welland and Jeff Scott....
 (formerly Cygnal), Texas Instruments
Texas Instruments

Texas Instruments , better known in the electronics industry as TI, is an United States company based in Dallas, Texas, Texas, United States, renowned for developing and commercializing semiconductor and computer technology....
 and Cypress Semiconductor
Cypress Semiconductor

Cypress Semiconductor Corporation is a Silicon Valley-based semiconductor design and manufacturing company founded by T. J. Rodgers and others from Advanced Micro Devices....
.






Discussion
Ask a question about 'Intel 8051'
Start a new discussion about 'Intel 8051'
Answer questions from other users
Full Discussion Forum



Encyclopedia


The Intel 8051 is a Harvard architecture
Harvard architecture

The Harvard architecture is a computer architecture with physically separate computer storage and signal pathways for instructions and data. The term originated from the Harvard Mark I relay-based computer, which stored instructions on punched tape and data in electro-mechanical counters ....
, single chip microcontroller
Microcontroller

A microcontroller is a small computer on a single integrated circuit consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc....
 (µC) which was developed by Intel in 1980 for use in embedded system
Embedded system

An embedded system is a special-purpose computer system designed to perform one or a few dedicated functions, often with real-time computing constraints....
s. Intel's original versions were popular in the 1980s and early 1990s, but has largely been superseded by a vast range of faster and/or functionally enhanced 8051-compatible devices manufactured by more than 20 independent manufacturers including Atmel
Atmel

Atmel Corporation is a manufacturer of semiconductors, founded in 1984. Its focus is on system-level solutions built around flash memory microcontrollers....
, Infineon Technologies
Infineon Technologies

Infineon Technologies Aktiengesellschaft was founded in April 1999 when the semiconductor operations of parent company, Siemens AG, were spun off to form a separate legal entity....
 (formerly Siemens AG
Siemens AG

Siemens Aktiengesellschaft is Europe's largest engineering Conglomerate . Siemens' international headquarters are located in Berlin and Munich, Germany....
), Maxim Integrated Products
Maxim Integrated Products

Maxim Integrated Products is a publicly traded company that designs, manufactures, and sells high-performance semiconductor products. The company?s stated mission is to deliver innovative analog and mixed-signal engineering solutions that add value to its customers? products....
 (via its Dallas Semiconductor
Dallas Semiconductor

Dallas Semiconductor, now a subsidiary of Maxim Integrated Products, designs and manufactures analog, digital, and mixed-signal semiconductors ....
 subsidiary), NXP (formerly Philips
Philips

Koninklijke Philips Electronics N.V. , usually known as Philips, is a Netherlands electronics company. It is one of the largest electronics companies in the world, founded and headquartered in the Netherlands....
 Semiconductor), Nuvoton (formerly Winbond
Winbond

Winbond Electronics Corporationis a Taiwan-based corporation which was founded in 1987 and is a producer of semiconductors and several types of Integrated Circuit, most notably DRAM, Static Random Access Memory, microcontrollers, and personal computer integrated circuit....
), ST Microelectronics, Silicon Laboratories
Silicon Laboratories

Silicon Laboratories, Inc. is a Mixed-signal integrated circuit fabless semiconductor company based in Austin, Texas.The company was founded in 1996 by three veterans from the former Cirrus Logic – Nav Sooch, Dave Welland and Jeff Scott....
 (formerly Cygnal), Texas Instruments
Texas Instruments

Texas Instruments , better known in the electronics industry as TI, is an United States company based in Dallas, Texas, Texas, United States, renowned for developing and commercializing semiconductor and computer technology....
 and Cypress Semiconductor
Cypress Semiconductor

Cypress Semiconductor Corporation is a Silicon Valley-based semiconductor design and manufacturing company founded by T. J. Rodgers and others from Advanced Micro Devices....
. Intel's official designation for the 8051 family of µCs is MCS 51.

Intel's original 8051 family was developed using NMOS
NMOS logic

nMOS logic uses n-type metal-oxide-semiconductor field effect transistors to implement logic gates and other digital circuits. nMOS transistors have three modes of operation: cut-off, triode, and saturation ....
 technology, but later versions, identified by a letter "C" in their name, e.g. 80C51, used CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 technology and were less power-hungry than their NMOS predecessors - this made them eminently more suitable for battery-powered devices.

Important features and applications

  • It provides many functions (CPU
    Central processing unit

    A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
    , RAM, ROM
    Read-only memory

    Read-only memory is a class of computer storage media used in computers and other electronic devices. Because data stored in ROM cannot be modified , it is mainly used to distribute firmware ....
    , I/O
    Input/output

    In computing, input/output, or I/O, refers to the communication between an information processing system , and the outside world ? possibly a human, or another information processing system....
    , interrupt
    Interrupt

    In computing, an interrupt is an asynchronous communication signal from hardware indicating the need for attention or a synchronous event in software indicating the need for a change in execution....
     logic, timer
    Timer

    A timer is a specialized type of clock. A timer can be used to control the sequence of an event or process. Whereas a stopwatch counts upwards from zero for measuring elapsed time, a timer counts down from a specified time interval, like an hourglass....
    , etc.) in a single package
    Integrated circuit packaging

    Integrated circuit packaging is the final stage of Fabrication per se, followed by IC testing.In the integrated circuit industry it is called simply packaging and sometimes semiconductor device assembly, or simply assembly....
  • 8-bit ALU, Accumulator and Registers; hence it is an 8-bit
    8-bit

    Eight-bit CPUs normally use an 8-bit data bus and a 16-bit address bus which means that their address space is limited to 64 KBs. This is not a "natural law", however, so there are exceptions....
     microcontroller
    Microcontroller

    A microcontroller is a small computer on a single integrated circuit consisting of a relatively simple CPU combined with support functions such as a crystal oscillator, timers, watchdog, serial and analog I/O etc....
  • 8-bit data bus - It can access 8 bits of data in one operation
  • 16-bit address bus
    Address bus

    An address bus is a computer bus that is used to specify a memory address. When a central processing unit or direct memory access-enabled device needs to read or write to a memory location, it specifies that memory location on the address bus ....
     - It can access 216 memory locations - 64 kB
    Kilobyte

    Kilobyte is a unit of Computer data storage equal to either 1,024 bytes or 1,000 bytes , depending on context.It is abbreviated in a number of ways: KB, kB, K and Kbyte....
      ( 65536 locations ) each of RAM and ROM
  • On-chip RAM - 128 bytes ("Data Memory")
  • On-chip ROM - 4 kB
    Kilobyte

    Kilobyte is a unit of Computer data storage equal to either 1,024 bytes or 1,000 bytes , depending on context.It is abbreviated in a number of ways: KB, kB, K and Kbyte....
     ("Program Memory")
  • Four byte
    Byte

    A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
     bi-directional input/output
    Input/output

    In computing, input/output, or I/O, refers to the communication between an information processing system , and the outside world ? possibly a human, or another information processing system....
     port
  • UART (serial port
    Serial port

    In computing, a serial port is a serial communication physical interface through which information transfers in or out one bit at a time ....
    )
  • Two 16-bit Counter/timer
    Timer

    A timer is a specialized type of clock. A timer can be used to control the sequence of an event or process. Whereas a stopwatch counts upwards from zero for measuring elapsed time, a timer counts down from a specified time interval, like an hourglass....
    s
  • Two-level interrupt
    Interrupt

    In computing, an interrupt is an asynchronous communication signal from hardware indicating the need for attention or a synchronous event in software indicating the need for a change in execution....
     priority
  • Power saving
    Power management

    Power management is a feature of some electrical appliances, especially photocopying, computer and computer peripherals such as Computer display and Computer printer, that turns off the power or switches the system to a low-power state when inactive....
     mode


A particularly useful feature of the 8051 core is the inclusion of a boolean
Boolean datatype

In computer science, the Boolean algebra datatype, sometimes called the logical datatype, is a primitive datatype having one of two values: Truth value and false....
 processing engine which allows bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
-level boolean logic
Boolean logic

Boolean algebra is a logical calculus of logical values, developed by George Boole in the late 1830s. It resembles the algebra of real numbers as taught in high school, but with the numeric operations of multiplication xy, addition x + y, and negation −x replaced by the respective logical operations of conjun...
 operations to be carried out directly and efficiently on internal registers and RAM. This feature helped to cement the 8051's popularity in industrial control applications. Another valued feature is that it has four separate register sets, which can be used to greatly reduce interrupt latency
Interrupt latency

In real-time operating systems, interrupt latency is the time between the generation of an interrupt by a device and the servicing of the device which generated the interrupt....
 compared to the more common method of storing interrupt context
Context switch

A context switch is the computing process of storing and restoring the State of a Central processing unit such that multiple Process es can share a single CPU resource....
 on a stack.

The 8051 UARTs make it simple to use the chip as a serial communications interface. External pins can be configured to connect to internal shift registers in a variety of ways, and the internal timers can also be used, allowing serial communications in a number of modes, both synchronous and asynchronous. Some modes allow communications with no external components. A mode compatible with an RS-485
EIA-485

In telecommunications, EIA-485 is an electrical specification of a two-wire, duplex , multipoint serial communications channel. Since it uses a high-voltage differential signalling balanced line over twisted pair , it can span relatively large distances ....
 multi-point communications environment is achievable, but the 8051's real strength is fitting in with existing ad-hoc protocols, e.g when controlling serial-controlled devices.

Once a UART - and a timer, if necessary, have been configured, the programmer needs only to write a simple interrupt routine to refill the 'send' shift register whenever the last bit is shifted out by the UART and/or empty the full 'receive' shift register (copy the data somewhere else). The main program then performs serial reads and writes simply by reading and writing 8-bit data to stacks.

8051 based microcontrollers typically include one or two UARTs, two or three timers, 128 or 256 bytes of internal data RAM
Ram

Ram, ram, or RAM as a non-acronymic wordAs a non-acronymic word Ram, ram, or RAM may refer to:...
 (16 bytes of which are bit-addressable), up to 128 bytes of I/O
Input/output

In computing, input/output, or I/O, refers to the communication between an information processing system , and the outside world ? possibly a human, or another information processing system....
, 512 bytes to 64 kB of internal program memory, and sometimes a quantity of extended data RAM (ERAM) located in the external data space. The original 8051 core ran at 12 clock cycles per machine cycle, with most instructions executing in one or two machine cycles. With a 12 MHz clock frequency, the 8051 could thus execute 1 million one-cycle instructions per second or 500,000 two-cycle instructions per second. Enhanced 8051 cores are now commonly used which run at six, four, two, or even one clock per machine cycle, and have clock frequencies of up to 100 MHz, and are thus capable of an even greater number of instructions per second. All SILabs, some Dallas and a few Atmel devices have single cycle cores.

Even higher speed single cycle 8051 cores, in the range 130 MHz to 150 MHz, are now available in internet downloadable form for use in programmable logic devices such as FPGAs, and at many hundreds of MHz in ASICs
ASICS

is a Japanese athletic equipment company that started in 1949. Its founder, Kihachiro Onitsuka, began manufacturing basketball shoes in his home town in Kobe, Hyogo Prefecture, Japan....
, for example the netlist
Netlist

The word netlist can be used in several different contexts, but perhaps the most popular is in the field of electronic design. In this context, a "netlist" describes the connectivity of an electronic design....
 from .

Common features included in modern 8051 based microcontrollers include built-in reset timers with brown-out detection, on-chip oscillators, self-programmable Flash ROM program memory, bootloader code in ROM, EEPROM non-volatile data storage, I²C
I²C

I?C isa multi-master bus serial communications computer bus invented by Philips that is used to attach low-speed peripherals to a motherboard, embedded system, or cellphone....
, SPI, and USB host interfaces, PWM
Pulse-width modulation

Pulse-width modulation of a Signalling or Power source involves the modulation of its duty cycle, to either convey information over a communications channel or control the amount of power sent to a load....
 generators, analog comparators, A/D and D/A converters, RTC
Real-time clock

A real-time clock is a computer clock that keeps track of the current time. Although the term often refers to the devices in personal computers, server s and embedded systems, RTCs are present in almost any electronic device which needs to keep accurate time....
s, extra counters and timers, in-circuit debugging facilities, more interrupt sources, and extra power saving modes.

Programming

Several C
C (programming language)

C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
 compilers are available for the 8051, most of which feature extensions that allow the programmer to specify where each variable should be stored in its six types of memory, and provide access to 8051 specific hardware features such as the multiple register banks and bit manipulation instructions. Other high level languages such as Forth, BASIC, Pascal/Object Pascal
Object Pascal

Object Pascal refers to a branch of Object-oriented programming derivatives of Pascal , mostly known as the primary programming language of CodeGear Delphi....
, PL/M
PL/M

The PL/M programming languageis a high-level programming language developed byGary Kildall in 1972 for Intel for its list of Intel microprocessors....
 and Modula 2 are available for the 8051, but they are less widely used than C and assembly
Assembly language

An assembly language is a low-level language for programming computers. It implements a symbolic representation of the numeric machine codes and other constants needed to program a particular CPU architecture....
.

Related processors

The 8051's predecessor, the 8048
Intel 8048

The Intel 8048 microcontroller , Intel's first microcontroller, was used in the Magnavox Odyssey? video game console, the Korg Trident series, Roland Jupiter-4 and Roland ProMars analog synthesizers, and in the original IBM PC keyboard....
, was used in the keyboard of the first IBM PC
IBM PC

The IBM Personal Computer, commonly known as the IBM PC, is the original version and progenitor of the IBM PC compatible hardware platform ....
, where it converted keypresses into the serial data stream which is sent to the main unit of the computer. The 8048 and derivatives are still used for basic model keyboards.

The 8031 was a cut down version of the original Intel 8051 that did not contain any internal program memory (ROM
Read-only memory

Read-only memory is a class of computer storage media used in computers and other electronic devices. Because data stored in ROM cannot be modified , it is mainly used to distribute firmware ....
). To use this chip external ROM
Read-only memory

Read-only memory is a class of computer storage media used in computers and other electronic devices. Because data stored in ROM cannot be modified , it is mainly used to distribute firmware ....
 had to be added containing the program that the 8031 would fetch and execute.

The 8052 was an enhanced version of the original 8051 that featured 256 bytes of internal RAM instead of 128 bytes, 8 kB of ROM instead of 4 kB, and a third 16-bit timer. The 8032 had these same features except for the internal ROM program memory. The 8052 and 8032 are largely considered to be obsolete because these features and more are included in nearly all modern 8051 based microcontrollers.

External links

  • [https://www.silabs.com/products/mcu/pages/default.aspx Silicon Labs]