0% found this document useful (0 votes)
78 views16 pages

Introduction To 8051: Presented by:-SAHIL SINGLA (151001) ADITYA THAKUR (151002)

The document provides an introduction to the 8051 microcontroller. It discusses key features of the 8051 including 4KB of ROM, 128 bytes of RAM, four 8-bit I/O ports, two 16-bit timers, a serial interface, and the ability to interface with up to 64KB of external memory. The architecture of the 8051 is then described, including the functions of RAM, ROM, timers/counters, serial port, I/O ports, and interrupts.

Uploaded by

Aditya Thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views16 pages

Introduction To 8051: Presented by:-SAHIL SINGLA (151001) ADITYA THAKUR (151002)

The document provides an introduction to the 8051 microcontroller. It discusses key features of the 8051 including 4KB of ROM, 128 bytes of RAM, four 8-bit I/O ports, two 16-bit timers, a serial interface, and the ability to interface with up to 64KB of external memory. The architecture of the 8051 is then described, including the functions of RAM, ROM, timers/counters, serial port, I/O ports, and interrupts.

Uploaded by

Aditya Thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

INTRODUCTION TO 8051

Presented by :-
SAHIL SINGLA (151001)
ADITYA THAKUR (151002)
WHY DO WE NEED TO LEARN
MICROCONTROLLERS?
 Itsnot an exagerration if I say that
,today there is no electronic gadget
on the earth which is designed
without a MICROCONTROLLER.

 Example:- Communication devices


,Digital entertainment ,Portable
devices etc…
IMPORTANT FEATURES OF 8051
4k bytes ROM
128 bytes RAM
Four 8 bit i/p and o/p ports
Two 16 bit timers
Serial interface
64k external code memory space
64k data memory space
MICROCONTROLLER 8051
ARCHITECTURE:
 It is 8-bit microcontroller, means MC 8051 can
Read, Write and Process 8 bit data.

 This is mostly used microcontroller in the


robotics, home appliances like mp3 player,
washing machines, electronic iron and industries.

 Mostly used blocks in the architecture of 8051


are as follows:
128 BYTE RAM FOR DATA
STORAGE:
 MC 8051 has 128 byte Random Access memory
for data storage.
 During execution for storing the data the RAM
is used. RAM consists of the register banks,
stack for temporary data storage.
 It also consists of some special function register
(SFR) which are used for some specific purpose
like timer, input output ports etc.
 microcontroller has 256 byte RAM in which 128
byte is used for user space which is normally
Register banks and stack. But other 128 byte
RAM which consists of SFRs.
4KB ROM:
 In 8051, 4KB read only memory
(ROM) is available for program
storage. This is used for permanent
data storage.

 We can interface up to 64KB ROM


memory externally if the application
is large.
Difference between RAM
and ROM:
 RAM is used for data storage while ROM is used
for program storage.

 Data of RAM can be changed during processing


while data of ROM can’t be changed during
processing.

 Like in calculator during addition of two numbers


we type the two numbers in calculator, this is
saved in the RAM, but the Algorithms by which
the calculation is performed is saved in the ROM
TIMERS AND COUNTERS:
 In MC8051, two timer pins are
available T0 and T1, by these timers
we can give the delay of particular
time if we use these in timer mode.

 We can count external pulses at these


pins if we use these pins in counter
mode.

 TMOD, TCON registers are used for


controlling timer operation.
SERIAL PORT:
There are two pins available for serial
communication TXD and RXD.

Normally TXD is used for transmitting serial data


which is in SBUF register,RXD is used for
receiving the serial data.

SCON register is used for controlling the


operation.
INPUT OUTPUT PORTS:

 There are four input output ports


available P0, P1, P2, P3.

 Each port is 8 bit wide and has special


function register P0, P1, P2, P3 ,which
are bit addressable means each bit can
be set or reset by the Bit instructions
(SETB for high, CLR for low)
independently.
Oscillator
 It is used for providing the clock to
MC8051 which decides the speed or
baud rate of MC.

 We use crystal which frequency


vary from 4MHz to 30 MHz,
normally we use 11.0592 MHz
frequency.
INTERRUPTS:

 Interrupts are defined as requests


because they can be refused (masked)
if they are not used, that is when an
interrupt is acknowledged. A special
set of events or routines are followed
to handle the interrupts.

 INT0 and INT1 are the pins for


external interrupts.
THANKYOU

You might also like