8051 Microcontroller
8051 Microcontroller
Embedded
Systems/8051
Microcontroller
< Embedded Systems
About 8051
The Intel 8051 is an 8-bit microcontroller
which means that most available
operations are limited to 8 bits. There are
3 basic "sizes" of the 8051: Short,
Standard, and Extended. The Short and
Standard chips are often available in DIP
(dual in-line package) form, but the
Extended 8051 models often have a
different form factor, and are not "drop-in
compatible". All these things are called
8051 because they can all be programmed
using 8051 assembly language, and they
all share certain features (although the
different models all have their own special
features).
Typical applications
8051 chips are used in a wide variety of
control systems, telecom applications,
robotics as well as in the automotive
industry. By some estimations, 8051
family chips make up over 50% of the
embedded chip market.
Pin diagram of the 8051 DIP
Basic Pins
PIN 9: PIN 9 is the reset pin which is used
to reset the microcontroller’s internal
registers and ports upon starting up. (Pin
should be held high for 2 machine cycles.)
Ports
There are 4 8-bit ports: P0, P1, P2 and P3.
Oscillator Circuits
The 8051 requires an external oscillator
circuit. The oscillator circuit usually runs
around 12 MHz, although the 8051
(depending on which specific model) is
capable of running at a maximum of
40 MHz. Each machine cycle in the 8051 is
12 clock cycles, giving an effective cycle
rate at 1 MHz (for a 12 MHz clock) to
3.33 MHz (for the maximum 40 MHz
clock). The oscillator circuit generates the
clock pulses so that all internal operations
are synchronized.
T=(C*12d)/crystal frequency