SlideShare a Scribd company logo
1 of 17
Download to read offline
Home Automation, Networking, and Entertainment Lab
Dept. of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN
Chung-Ping Young
楊中平
8051 MICROCONTROLLERS
The 8051 Microcontroller and Embedded
Systems: Using Assembly and C
Mazidi, Mazidi and McKinlay8051 MICROCONTROLLER
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 2
HANEL
OUTLINES
Microcontrollers and embedded
processors
Overview of the 8051 family
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 3
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Microcontroller
vs. General-
Purpose
Microprocessor
General-purpose microprocessors
contains
No RAM
No ROM
No I/O ports
Microcontroller has
CPU (microprocessor)
RAM
ROM
I/O ports
Timer
ADC and other peripherals
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 4
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Microcontroller
vs. General-
Purpose
Microprocessor
(cont’)
Serial
COM
Port
TimerI/O
ROMRAMCPU
Microcontroller
CPU
RAM
Address bus
Data bus
ROM
I/O
Port
Serial
COM
Port
Timer
General-
purpose
Micro-
Processor
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 5
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Microcontroller
vs. General-
Purpose
Microprocessor
(cont’)
General-purpose microprocessors
Must add RAM, ROM, I/O ports, and
timers externally to make them functional
Make the system bulkier and much more
expensive
Have the advantage of versatility on the
amount of RAM, ROM, and I/O ports
Microcontroller
The fixed amount of on-chip ROM, RAM,
and number of I/O ports makes them ideal
for many applications in which cost and
space are critical
In many applications, the space it takes,
the power it consumes, and the price per
unit are much more critical considerations
than the computing power
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 6
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Microcontrollers
for Embedded
Systems
An embedded product uses a
microprocessor (or microcontroller) to
do one task and one task only
There is only one application software that
is typically burned into ROM
A PC, in contrast with the embedded
system, can be used for any number of
applications
It has RAM memory and an operating
system that loads a variety of applications
into RAM and lets the CPU run them
A PC contains or is connected to various
embedded products
Each one peripheral has a microcontroller inside
it that performs only one task
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 7
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Microcontrollers
for Embedded
Systems
(cont’)
Home
Appliances, intercom, telephones, security systems,
garage door openers, answering machines, fax
machines, home computers, TVs, cable TV tuner,
VCR, camcorder, remote controls, video games,
cellular phones, musical instruments, sewing
machines, lighting control, paging, camera, pinball
machines, toys, exercise equipment
Office
Telephones, computers, security systems, fax
machines, microwave, copier, laser printer, color
printer, paging
Auto
Trip computer, engine control, air bag, ABS,
instrumentation, security system, transmission
control, entertainment, climate control, cellular
phone, keyless entry
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 8
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
x86 PC
Embedded
Applications
Many manufactures of general-purpose
microprocessors have targeted their
microprocessor for the high end of the
embedded market
There are times that a microcontroller is
inadequate for the task
When a company targets a general-
purpose microprocessor for the
embedded market, it optimizes the
processor used for embedded systems
Very often the terms embedded
processor and microcontroller are used
interchangeably
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 9
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
x86 PC
Embedded
Applications
(cont’)
One of the most critical needs of an
embedded system is to decrease
power consumption and space
In high-performance embedded
processors, the trend is to integrate
more functions on the CPU chip and let
designer decide which features he/she
wants to use
In many cases using x86 PCs for the
high-end embedded applications
Saves money and shortens development
time
A vast library of software already written
Windows is a widely used and well understood
platform
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 10
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Choosing a
Microcontroller
8-bit microcontrollers
Motorola’s 6811
Intel’s 8051
Zilog’s Z8
Microchip’s PIC
There are also 16-bit and 32-bit
microcontrollers made by various chip
makers
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 11
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Criteria for
Choosing a
Microcontroller
Meeting the computing needs of the
task at hand efficiently and cost
effectively
Speed
Packaging
Power consumption
The amount of RAM and ROM on chip
The number of I/O pins and the timer on
chip
How easy to upgrade to higher-
performance or lower power-consumption
versions
Cost per unit
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 12
HANEL
MICRO-
CONTROLLERS
AND
EMBEDDED
PROCESSORS
Criteria for
Choosing a
Microcontroller
(cont’)
Availability of software development
tools, such as compilers, assemblers,
and debuggers
Wide availability and reliable sources
of the microcontroller
The 8051 family has the largest number of
diversified (multiple source) suppliers
Intel (original)
Atmel
Philips/Signetics
AMD
Infineon (formerly Siemens)
Matra
Dallas Semiconductor/Maxim
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 13
HANEL
OVERVIEW OF
8051 FAMILY
8051
Microcontroller
Intel introduced 8051, referred as MCS-
51, in 1981
The 8051 is an 8-bit processor
The CPU can work on only 8 bits of data at a
time
The 8051 had
128 bytes of RAM
4K bytes of on-chip ROM
Two timers
One serial port
Four I/O ports, each 8 bits wide
6 interrupt sources
The 8051 became widely popular after
allowing other manufactures to make
and market any flavor of the 8051, but
remaining code-compatible
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 14
HANEL
OVERVIEW OF
8051 FAMILY
8051
Microcontroller
(cont’)
Interrupt
Control
Bus
Control
CPU
OSC I/O
Ports
Serial
Port
Etc.
Timer 0
Timer 1
On-chip
RAM
On-chip
ROM
for code
P0 P1 P2 P3
Address/Data
TXD RXD
CounterInputs
External
Interrupts
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 15
HANEL
OVERVIEW OF
8051 FAMILY
8051 Family
The 8051 is a subset of the 8052
The 8031 is a ROM-less 8051
Add external ROM to it
You lose two ports, and leave only 2 ports
for I/O operations
686Interrupt sources
111Serial port
323232I/O pins
232Timers
128256128RAM (bytes)
0K8K4K
ROM (on-chip program
space in bytes)
803180528051Feature
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 16
HANEL
OVERVIEW OF
8051 FAMILY
Various 8051
Microcontrollers
8751 microcontroller
UV-EPROM
PROM burner
UV-EPROM eraser takes 20 min to erase
AT89C51 from Atmel Corporation
Flash (erase before write)
ROM burner that supports flash
A separate eraser is not needed
DS89C4x0 from Dallas Semiconductor,
now part of Maxim Corp.
Flash
Comes with on-chip loader, loading program to
on-chip flash via PC COM port
Department of Computer Science and Information Engineering
National Cheng Kung University, TAIWAN 17
HANEL
OVERVIEW OF
8051 FAMILY
Various 8051
Microcontrollers
(cont’)
DS5000 from Dallas Semiconductor
NV-RAM (changed one byte at a time),
RTC (real-time clock)
Also comes with on-chip loader
OTP (one-time-programmable) version
of 8051
8051 family from Philips
ADC, DAC, extended I/O, and both OTP
and flash

More Related Content

What's hot

Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsRajalakshmiSermadurai
 
Microprocessor vs. microcontroller
Microprocessor vs. microcontrollerMicroprocessor vs. microcontroller
Microprocessor vs. microcontrolleraviban
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1deval patel
 
Task communication
Task communicationTask communication
Task communication1jayanti
 
soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring systemJoshpin Bala.B
 
8051 timer and counter 1
8051 timer and counter 18051 timer and counter 1
8051 timer and counter 1DominicHendry
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSrikrishna Thota
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processingVedavyas PBurli
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notesDr.YNM
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerSudhanshu Janwadkar
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setaviban
 

What's hot (20)

Ec8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systemsEc8791 unit 5 processes and operating systems
Ec8791 unit 5 processes and operating systems
 
Optical recording and reproduction
Optical recording and reproductionOptical recording and reproduction
Optical recording and reproduction
 
branch ins 8051
branch ins 8051branch ins 8051
branch ins 8051
 
Microprocessor vs. microcontroller
Microprocessor vs. microcontrollerMicroprocessor vs. microcontroller
Microprocessor vs. microcontroller
 
Stacks & subroutines 1
Stacks & subroutines 1Stacks & subroutines 1
Stacks & subroutines 1
 
Turbo codes.ppt
Turbo codes.pptTurbo codes.ppt
Turbo codes.ppt
 
The FFT And Spectral Analysis
The FFT And Spectral AnalysisThe FFT And Spectral Analysis
The FFT And Spectral Analysis
 
Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085Timing diagram of microprocessor 8085
Timing diagram of microprocessor 8085
 
Task communication
Task communicationTask communication
Task communication
 
soldier tracking and health monitoring system
soldier tracking and health monitoring systemsoldier tracking and health monitoring system
soldier tracking and health monitoring system
 
8051 timer and counter 1
8051 timer and counter 18051 timer and counter 1
8051 timer and counter 1
 
Seven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdfSeven segment interfacing with 8051.pdf
Seven segment interfacing with 8051.pdf
 
Switches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontrollerSwitches and LEDs interface to the 8051 microcontroller
Switches and LEDs interface to the 8051 microcontroller
 
Digital communication unit II
Digital communication unit IIDigital communication unit II
Digital communication unit II
 
8051 ch9
8051 ch98051 ch9
8051 ch9
 
Digital signal processing
Digital signal processingDigital signal processing
Digital signal processing
 
8051 timer counter
8051 timer counter8051 timer counter
8051 timer counter
 
8096 microcontrollers notes
8096 microcontrollers notes8096 microcontrollers notes
8096 microcontrollers notes
 
Keypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 MicrocontrollerKeypad Interfacing with 8051 Microcontroller
Keypad Interfacing with 8051 Microcontroller
 
Flag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction setFlag registers, addressing modes, instruction set
Flag registers, addressing modes, instruction set
 

Similar to 1 8051 microcontroller intr

Appliances control through sms
Appliances control through smsAppliances control through sms
Appliances control through smsAbhay Pratap
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)Gurwinder Singh
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsmanishpatel_79
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemRkrishna Mishra
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded SystemKaran Thakkar
 
Presentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaPresentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaAbhishekSharma2517
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxMeghdeepSingh
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontrollerVandna Sambyal
 
btech 8051 Microcontroller Programing.pptx
btech 8051 Microcontroller Programing.pptxbtech 8051 Microcontroller Programing.pptx
btech 8051 Microcontroller Programing.pptxSKWriters
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01cairo university
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontrollerSABBIR AHMED
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh KumarMitesh Kumar
 

Similar to 1 8051 microcontroller intr (20)

Vinod ppt on es31 08 15
Vinod ppt on es31 08 15Vinod ppt on es31 08 15
Vinod ppt on es31 08 15
 
Appliances control through sms
Appliances control through smsAppliances control through sms
Appliances control through sms
 
8051 microcontrollers
8051 microcontrollers8051 microcontrollers
8051 microcontrollers
 
Embedded training report(mcs 51)
Embedded training report(mcs 51)Embedded training report(mcs 51)
Embedded training report(mcs 51)
 
Solution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systemsSolution manual the 8051 microcontroller based embedded systems
Solution manual the 8051 microcontroller based embedded systems
 
Ppt embedded
Ppt embeddedPpt embedded
Ppt embedded
 
ritesh (3)
ritesh (3)ritesh (3)
ritesh (3)
 
AT89 S52
AT89 S52AT89 S52
AT89 S52
 
Project Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded SystemProject Report On Micro-controller Embedded System
Project Report On Micro-controller Embedded System
 
Microcontoller and Embedded System
Microcontoller and Embedded SystemMicrocontoller and Embedded System
Microcontoller and Embedded System
 
Presentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharmaPresentation on embedded system by abhishek sharma
Presentation on embedded system by abhishek sharma
 
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptxINDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
INDUSTRIAL TRAINING REPORT EMBEDDED SYSTEM.pptx
 
Project report on embedded system using 8051 microcontroller
Project  report on embedded system using 8051 microcontrollerProject  report on embedded system using 8051 microcontroller
Project report on embedded system using 8051 microcontroller
 
8051 dev board guide
8051 dev board guide8051 dev board guide
8051 dev board guide
 
btech 8051 Microcontroller Programing.pptx
btech 8051 Microcontroller Programing.pptxbtech 8051 Microcontroller Programing.pptx
btech 8051 Microcontroller Programing.pptx
 
Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01Lecture 1 (course overview and 8051 architecture) rv01
Lecture 1 (course overview and 8051 architecture) rv01
 
Unit 4
Unit 4Unit 4
Unit 4
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
8051 microcontroller
8051 microcontroller8051 microcontroller
8051 microcontroller
 
Embeded system by Mitesh Kumar
Embeded system by Mitesh KumarEmbeded system by Mitesh Kumar
Embeded system by Mitesh Kumar
 

More from Channabasappa Kudarihal

More from Channabasappa Kudarihal (6)

9 timer programming
9 timer programming9 timer programming
9 timer programming
 
8 hw con-and_intel_hex_file
8 hw con-and_intel_hex_file8 hw con-and_intel_hex_file
8 hw con-and_intel_hex_file
 
6 arithmetic logic inst and prog
6 arithmetic logic inst and prog6 arithmetic logic inst and prog
6 arithmetic logic inst and prog
 
5 addressing modes
5 addressing modes5 addressing modes
5 addressing modes
 
4 io port-programming
4 io port-programming4 io port-programming
4 io port-programming
 
3 jump, loop and call instructions
3 jump, loop and call instructions3 jump, loop and call instructions
3 jump, loop and call instructions
 

Recently uploaded

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)Suman Mia
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)Software Development Life Cycle By  Team Orange (Dept. of Pharmacy)
Software Development Life Cycle By Team Orange (Dept. of Pharmacy)
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

1 8051 microcontroller intr

  • 1. Home Automation, Networking, and Entertainment Lab Dept. of Computer Science and Information Engineering National Cheng Kung University, TAIWAN Chung-Ping Young 楊中平 8051 MICROCONTROLLERS The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay8051 MICROCONTROLLER
  • 2. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 2 HANEL OUTLINES Microcontrollers and embedded processors Overview of the 8051 family
  • 3. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 3 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Microcontroller vs. General- Purpose Microprocessor General-purpose microprocessors contains No RAM No ROM No I/O ports Microcontroller has CPU (microprocessor) RAM ROM I/O ports Timer ADC and other peripherals
  • 4. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 4 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Microcontroller vs. General- Purpose Microprocessor (cont’) Serial COM Port TimerI/O ROMRAMCPU Microcontroller CPU RAM Address bus Data bus ROM I/O Port Serial COM Port Timer General- purpose Micro- Processor
  • 5. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 5 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Microcontroller vs. General- Purpose Microprocessor (cont’) General-purpose microprocessors Must add RAM, ROM, I/O ports, and timers externally to make them functional Make the system bulkier and much more expensive Have the advantage of versatility on the amount of RAM, ROM, and I/O ports Microcontroller The fixed amount of on-chip ROM, RAM, and number of I/O ports makes them ideal for many applications in which cost and space are critical In many applications, the space it takes, the power it consumes, and the price per unit are much more critical considerations than the computing power
  • 6. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 6 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Microcontrollers for Embedded Systems An embedded product uses a microprocessor (or microcontroller) to do one task and one task only There is only one application software that is typically burned into ROM A PC, in contrast with the embedded system, can be used for any number of applications It has RAM memory and an operating system that loads a variety of applications into RAM and lets the CPU run them A PC contains or is connected to various embedded products Each one peripheral has a microcontroller inside it that performs only one task
  • 7. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 7 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Microcontrollers for Embedded Systems (cont’) Home Appliances, intercom, telephones, security systems, garage door openers, answering machines, fax machines, home computers, TVs, cable TV tuner, VCR, camcorder, remote controls, video games, cellular phones, musical instruments, sewing machines, lighting control, paging, camera, pinball machines, toys, exercise equipment Office Telephones, computers, security systems, fax machines, microwave, copier, laser printer, color printer, paging Auto Trip computer, engine control, air bag, ABS, instrumentation, security system, transmission control, entertainment, climate control, cellular phone, keyless entry
  • 8. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 8 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS x86 PC Embedded Applications Many manufactures of general-purpose microprocessors have targeted their microprocessor for the high end of the embedded market There are times that a microcontroller is inadequate for the task When a company targets a general- purpose microprocessor for the embedded market, it optimizes the processor used for embedded systems Very often the terms embedded processor and microcontroller are used interchangeably
  • 9. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 9 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS x86 PC Embedded Applications (cont’) One of the most critical needs of an embedded system is to decrease power consumption and space In high-performance embedded processors, the trend is to integrate more functions on the CPU chip and let designer decide which features he/she wants to use In many cases using x86 PCs for the high-end embedded applications Saves money and shortens development time A vast library of software already written Windows is a widely used and well understood platform
  • 10. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 10 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Choosing a Microcontroller 8-bit microcontrollers Motorola’s 6811 Intel’s 8051 Zilog’s Z8 Microchip’s PIC There are also 16-bit and 32-bit microcontrollers made by various chip makers
  • 11. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 11 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Criteria for Choosing a Microcontroller Meeting the computing needs of the task at hand efficiently and cost effectively Speed Packaging Power consumption The amount of RAM and ROM on chip The number of I/O pins and the timer on chip How easy to upgrade to higher- performance or lower power-consumption versions Cost per unit
  • 12. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 12 HANEL MICRO- CONTROLLERS AND EMBEDDED PROCESSORS Criteria for Choosing a Microcontroller (cont’) Availability of software development tools, such as compilers, assemblers, and debuggers Wide availability and reliable sources of the microcontroller The 8051 family has the largest number of diversified (multiple source) suppliers Intel (original) Atmel Philips/Signetics AMD Infineon (formerly Siemens) Matra Dallas Semiconductor/Maxim
  • 13. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 13 HANEL OVERVIEW OF 8051 FAMILY 8051 Microcontroller Intel introduced 8051, referred as MCS- 51, in 1981 The 8051 is an 8-bit processor The CPU can work on only 8 bits of data at a time The 8051 had 128 bytes of RAM 4K bytes of on-chip ROM Two timers One serial port Four I/O ports, each 8 bits wide 6 interrupt sources The 8051 became widely popular after allowing other manufactures to make and market any flavor of the 8051, but remaining code-compatible
  • 14. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 14 HANEL OVERVIEW OF 8051 FAMILY 8051 Microcontroller (cont’) Interrupt Control Bus Control CPU OSC I/O Ports Serial Port Etc. Timer 0 Timer 1 On-chip RAM On-chip ROM for code P0 P1 P2 P3 Address/Data TXD RXD CounterInputs External Interrupts
  • 15. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 15 HANEL OVERVIEW OF 8051 FAMILY 8051 Family The 8051 is a subset of the 8052 The 8031 is a ROM-less 8051 Add external ROM to it You lose two ports, and leave only 2 ports for I/O operations 686Interrupt sources 111Serial port 323232I/O pins 232Timers 128256128RAM (bytes) 0K8K4K ROM (on-chip program space in bytes) 803180528051Feature
  • 16. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 16 HANEL OVERVIEW OF 8051 FAMILY Various 8051 Microcontrollers 8751 microcontroller UV-EPROM PROM burner UV-EPROM eraser takes 20 min to erase AT89C51 from Atmel Corporation Flash (erase before write) ROM burner that supports flash A separate eraser is not needed DS89C4x0 from Dallas Semiconductor, now part of Maxim Corp. Flash Comes with on-chip loader, loading program to on-chip flash via PC COM port
  • 17. Department of Computer Science and Information Engineering National Cheng Kung University, TAIWAN 17 HANEL OVERVIEW OF 8051 FAMILY Various 8051 Microcontrollers (cont’) DS5000 from Dallas Semiconductor NV-RAM (changed one byte at a time), RTC (real-time clock) Also comes with on-chip loader OTP (one-time-programmable) version of 8051 8051 family from Philips ADC, DAC, extended I/O, and both OTP and flash