SlideShare a Scribd company logo
Microprocessor and
   Microcontroller Fundamentals

                  ELEC 330
         Digital Systems Engineering
                Dr. Ron Hayne

Images Courtesy of Ramesh Gaonkar and Delmar Learning
Admin
 Course materials available online
 http://ece.citadel.edu/hayne/
     Students are encouraged to print lecture slides in
      advance and use them to take notes in class




                         330_01                            2
Microcontrollers
 Embedded Systems
     Operations managed behind the scenes by a
      microcontroller
 Microcontroller (MCU)
     An integrated electronic computing device that
      includes three major components on a single chip
       Microprocessor (MPU)
       Memory

       I/O (Input/Output) ports



                          330_01                     3
Microcontrollers
 Support Devices
     Timers
     A/D converter
     Serial I/O
 Common communication lines
     System Bus




                      330_01   4
Block Diagram




          330_01   5
Microprocessor (MPU)
                    MPU (CPU)
                        Read instructions
                        Process binary data




          330_01                               6
Memory
                    Storage Device
                         Addresses
                         Registers
                    Major Categories
                         Read/Write Memory
                          (R/W)
                         Read-only-Memory
                          (ROM)



  D7     D0

          330_01                          7
Input/Output (I/O)
 Input Devices
     Switches and Keypads
     Provide binary information to the MPU
 Output devices
     LEDs and LCDs
     Receive binary information from the MPU




                       330_01                   8
Microprocessor-Based Systems




          330_01           9
Microprocessor Architecture
 The MPU communicates with Memory and
  I/O using the System Bus
     Address bus
       Unidirectional
       Memory and I/O Addresses

     Data bus
       Bidirectional
       Transfers Binary Data and Instructions

     Control lines
         Read and Write timing signals
                            330_01               10
Microprocessor-Based System




          330_01              11
Example Microprocessor System




           330_01               12
Software

 Machine Language
     Binary Instructions
     Difficult to decipher and write
         Error-prone
     All programs converted into machine language
      for execution
 Instruction Hex Mnemonic      Description        Processor
 10000000     80   ADD B       Add reg B to Acc   Intel 8085
 00101000     28   ADD A, R0 Add Reg R0 to Acc    Intel 8051
 00011011     1B   ABA         Add Acc A and B    Motorola 6811

                           330_01                              13
Software

 Assembly Language
     Machine instructions represented in mnemonics
     One-to-one correspondence
     Efficient execution and use of memory
     Machine-specific




                       330_01                         14
Software

 High-Level Languages
     BASIC, C, and C++
     Written in statements of spoken languages
     Machine independent
     Easy to write and troubleshoot
     Larger memory and less efficient execution




                        330_01                     15
Data Format (8-bit)
 Unsigned Integers
     All eight bits represent the magnitude of a number
         Bit7 to Bit0
     Range 00H to FFH (010 to 25510)




                         330_01                      16
Data Format (8-bit)
 Signed Integers
     2's Complement
         Bit 7 is sign bit
     Positive numbers: 00H to 7FH (010 to 12710)
     Negative numbers: 80H to FFH (-110 to -12810)




                              330_01                  17
Data Format (8-bit)
 Binary Coded Decimal Numbers (BCD)
     8 bits of a number divided into groups of four
         Each group represents a decimal digit from 0 to 9
     AH through FH are invalid
     Example: 0010 0101BCD = 2510




                            330_01                            18
Data Format (8-bit)
 American Standard Code for Information
  Interchange (ASCII)
     Seven-bit alphanumeric code with 128
      combinations (00H to 7FH)
     Represents English alphabet, decimal digits from
      0 to 9, symbols, and commands




                        330_01                       19
MPU-Based Systems
 System hardware
     Discrete components
         Microprocessor, Memory, and I/O
     Components connected by buses
         Address, Data, and Control
 System software
     A group of programs that monitors the functions
      of the entire system


                            330_01                  20
MPU-Based Time
and Temperature System




            330_01       21
MCU-Based Systems
 Includes microprocessor, memory, I/O ports,
  and support devices (such as timers) on a
  single semiconductor chip
 Buses are generally not available to a system
  designer
 I/O ports are generally multiplexed and can
  be programmed to perform different
  functions

                    330_01                    22
MCU-Based Time
and Temperature System




           330_01        23
Computer Architectures
 Princeton versus Harvard Architecture
 CISC versus RISC processors
 Microprocessors and Microcontrollers




                    330_01                24

More Related Content

What's hot

8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded system
sb108ec
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor
Vijay Kumar
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessor
THANDAIAH PRABU
 
Introduction to-microprocessors
Introduction to-microprocessorsIntroduction to-microprocessors
Introduction to-microprocessors
mudulin
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
Nilesh Bhaskarrao Bahadure
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
Luqman al-Hakim
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
Sudhir Reddy
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
vishi1993
 
Chapter 2: Microprocessors
Chapter 2: MicroprocessorsChapter 2: Microprocessors
Chapter 2: Microprocessors
Best of Learning Technologies
 
Microprocessor Week1: Introduction
Microprocessor Week1: IntroductionMicroprocessor Week1: Introduction
Microprocessor Week1: Introduction
Arkhom Jodtang
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
Brit4
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture Notes
FellowBuddy.com
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
Bhupati chokara
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessor
Vijay Kumar
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontroller
Rajib Roy
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
Tarun Nayak
 
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
Lakshya Sharma
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
EkeedaPvtLtd
 
Microprocessors and-microcontrollers (1)
Microprocessors and-microcontrollers (1)Microprocessors and-microcontrollers (1)
Microprocessors and-microcontrollers (1)
Nagarjun singh
 

What's hot (19)

8051 microcontroller and embedded system
8051 microcontroller and embedded system8051 microcontroller and embedded system
8051 microcontroller and embedded system
 
Origin of Microprocessor and Classification of Microprocessor
Origin of Microprocessor and  Classification of Microprocessor Origin of Microprocessor and  Classification of Microprocessor
Origin of Microprocessor and Classification of Microprocessor
 
Introduction for microprocessor
Introduction for microprocessorIntroduction for microprocessor
Introduction for microprocessor
 
Introduction to-microprocessors
Introduction to-microprocessorsIntroduction to-microprocessors
Introduction to-microprocessors
 
Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051Memory interfacing of microcontroller 8051
Memory interfacing of microcontroller 8051
 
Chapter 1 CSC118
Chapter 1 CSC118 Chapter 1 CSC118
Chapter 1 CSC118
 
Introduction to microprocessor
Introduction to microprocessorIntroduction to microprocessor
Introduction to microprocessor
 
introduction to microprocessors
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
 
Chapter 2: Microprocessors
Chapter 2: MicroprocessorsChapter 2: Microprocessors
Chapter 2: Microprocessors
 
Microprocessor Week1: Introduction
Microprocessor Week1: IntroductionMicroprocessor Week1: Introduction
Microprocessor Week1: Introduction
 
U proc ovw
U proc ovwU proc ovw
U proc ovw
 
Microprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture NotesMicroprocessors & Microcomputers Lecture Notes
Microprocessors & Microcomputers Lecture Notes
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
 
Microprocessors evolution introduction to microprocessor
Microprocessors  evolution introduction to microprocessorMicroprocessors  evolution introduction to microprocessor
Microprocessors evolution introduction to microprocessor
 
Introduction to microcontroller
Introduction to microcontrollerIntroduction to microcontroller
Introduction to microcontroller
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPTMICROPROCESSOR,BASICS AND MEMORY CONCEPT
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
 
Computer engineering - overview of microprocessors
Computer engineering - overview of microprocessorsComputer engineering - overview of microprocessors
Computer engineering - overview of microprocessors
 
Microprocessors and-microcontrollers (1)
Microprocessors and-microcontrollers (1)Microprocessors and-microcontrollers (1)
Microprocessors and-microcontrollers (1)
 

Similar to 330 01

presentation_microcontroller_1457634560_181219.ppt
presentation_microcontroller_1457634560_181219.pptpresentation_microcontroller_1457634560_181219.ppt
presentation_microcontroller_1457634560_181219.ppt
LalithKumar818864
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copy
mkazree
 
Computers6 Ch4 1
Computers6 Ch4 1Computers6 Ch4 1
Computers6 Ch4 1
miuitprofessor
 
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdfIntroduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
aienterpresses
 
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdfIntroduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
aienterpresses
 
Lec 1 DPT
Lec 1 DPTLec 1 DPT
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
SMITA V MORE
 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
ssuser7a33ea
 
Microcontroller part 1
Microcontroller part 1Microcontroller part 1
Microcontroller part 1
Keroles karam khalil
 
Embedded systems class notes
Embedded systems  class notes Embedded systems  class notes
Embedded systems class notes
Dr.YNM
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In Electronics
Asaduzzaman Kanok
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
Naheed Azam
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
ssuserb78e291
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
SaifulAhmad27
 
Dcs write up
Dcs write upDcs write up
Dcs write up
Arthur Marshall
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )
Automation123
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051
Deepak John
 
Vinod ppt on es31 08 15
Vinod ppt on es31 08 15Vinod ppt on es31 08 15
Vinod ppt on es31 08 15
Govt. Engg. Collage Ajmer
 
L1 intro-to-mpu-mcu
L1 intro-to-mpu-mcuL1 intro-to-mpu-mcu
L1 intro-to-mpu-mcu
rsamurti
 
CSC1100 - Chapter02 - Components of the System Unit
CSC1100 - Chapter02 - Components of the System UnitCSC1100 - Chapter02 - Components of the System Unit
CSC1100 - Chapter02 - Components of the System Unit
Yhal Htet Aung
 

Similar to 330 01 (20)

presentation_microcontroller_1457634560_181219.ppt
presentation_microcontroller_1457634560_181219.pptpresentation_microcontroller_1457634560_181219.ppt
presentation_microcontroller_1457634560_181219.ppt
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copy
 
Computers6 Ch4 1
Computers6 Ch4 1Computers6 Ch4 1
Computers6 Ch4 1
 
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdfIntroduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
Introduction to embedded systems using the msp430 6. 1 Enumerate the.pdf
 
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdfIntroduction to embedded systems using the msp430 6.1 Enumerate the .pdf
Introduction to embedded systems using the msp430 6.1 Enumerate the .pdf
 
Lec 1 DPT
Lec 1 DPTLec 1 DPT
Lec 1 DPT
 
Pre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systemsPre requisite of COA- for Micro controller Embedded systems
Pre requisite of COA- for Micro controller Embedded systems
 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
 
Microcontroller part 1
Microcontroller part 1Microcontroller part 1
Microcontroller part 1
 
Embedded systems class notes
Embedded systems  class notes Embedded systems  class notes
Embedded systems class notes
 
Assembly Language In Electronics
Assembly Language In ElectronicsAssembly Language In Electronics
Assembly Language In Electronics
 
Introduction To Computer Systems
Introduction To Computer SystemsIntroduction To Computer Systems
Introduction To Computer Systems
 
Assembly chapter One.pptx
Assembly chapter One.pptxAssembly chapter One.pptx
Assembly chapter One.pptx
 
EEE226a.ppt
EEE226a.pptEEE226a.ppt
EEE226a.ppt
 
Dcs write up
Dcs write upDcs write up
Dcs write up
 
DCS ( Distributed Control System )
DCS ( Distributed Control System )DCS ( Distributed Control System )
DCS ( Distributed Control System )
 
Module 5 embedded systems,8051
Module 5 embedded systems,8051Module 5 embedded systems,8051
Module 5 embedded systems,8051
 
Vinod ppt on es31 08 15
Vinod ppt on es31 08 15Vinod ppt on es31 08 15
Vinod ppt on es31 08 15
 
L1 intro-to-mpu-mcu
L1 intro-to-mpu-mcuL1 intro-to-mpu-mcu
L1 intro-to-mpu-mcu
 
CSC1100 - Chapter02 - Components of the System Unit
CSC1100 - Chapter02 - Components of the System UnitCSC1100 - Chapter02 - Components of the System Unit
CSC1100 - Chapter02 - Components of the System Unit
 

Recently uploaded

Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Diana Rendina
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
S. Raj Kumar
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
สมใจ จันสุกสี
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 

Recently uploaded (20)

Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching AptitudeUGC NET Exam Paper 1- Unit 1:Teaching Aptitude
UGC NET Exam Paper 1- Unit 1:Teaching Aptitude
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
คำศัพท์ คำพื้นฐานการอ่าน ภาษาอังกฤษ ระดับชั้น ม.1
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 

330 01

  • 1. Microprocessor and Microcontroller Fundamentals ELEC 330 Digital Systems Engineering Dr. Ron Hayne Images Courtesy of Ramesh Gaonkar and Delmar Learning
  • 2. Admin  Course materials available online  http://ece.citadel.edu/hayne/  Students are encouraged to print lecture slides in advance and use them to take notes in class 330_01 2
  • 3. Microcontrollers  Embedded Systems  Operations managed behind the scenes by a microcontroller  Microcontroller (MCU)  An integrated electronic computing device that includes three major components on a single chip  Microprocessor (MPU)  Memory  I/O (Input/Output) ports 330_01 3
  • 4. Microcontrollers  Support Devices  Timers  A/D converter  Serial I/O  Common communication lines  System Bus 330_01 4
  • 5. Block Diagram 330_01 5
  • 6. Microprocessor (MPU)  MPU (CPU)  Read instructions  Process binary data 330_01 6
  • 7. Memory  Storage Device  Addresses  Registers  Major Categories  Read/Write Memory (R/W)  Read-only-Memory (ROM) D7 D0 330_01 7
  • 8. Input/Output (I/O)  Input Devices  Switches and Keypads  Provide binary information to the MPU  Output devices  LEDs and LCDs  Receive binary information from the MPU 330_01 8
  • 10. Microprocessor Architecture  The MPU communicates with Memory and I/O using the System Bus  Address bus  Unidirectional  Memory and I/O Addresses  Data bus  Bidirectional  Transfers Binary Data and Instructions  Control lines  Read and Write timing signals 330_01 10
  • 13. Software  Machine Language  Binary Instructions  Difficult to decipher and write  Error-prone  All programs converted into machine language for execution Instruction Hex Mnemonic Description Processor 10000000 80 ADD B Add reg B to Acc Intel 8085 00101000 28 ADD A, R0 Add Reg R0 to Acc Intel 8051 00011011 1B ABA Add Acc A and B Motorola 6811 330_01 13
  • 14. Software  Assembly Language  Machine instructions represented in mnemonics  One-to-one correspondence  Efficient execution and use of memory  Machine-specific 330_01 14
  • 15. Software  High-Level Languages  BASIC, C, and C++  Written in statements of spoken languages  Machine independent  Easy to write and troubleshoot  Larger memory and less efficient execution 330_01 15
  • 16. Data Format (8-bit)  Unsigned Integers  All eight bits represent the magnitude of a number  Bit7 to Bit0  Range 00H to FFH (010 to 25510) 330_01 16
  • 17. Data Format (8-bit)  Signed Integers  2's Complement  Bit 7 is sign bit  Positive numbers: 00H to 7FH (010 to 12710)  Negative numbers: 80H to FFH (-110 to -12810) 330_01 17
  • 18. Data Format (8-bit)  Binary Coded Decimal Numbers (BCD)  8 bits of a number divided into groups of four  Each group represents a decimal digit from 0 to 9  AH through FH are invalid  Example: 0010 0101BCD = 2510 330_01 18
  • 19. Data Format (8-bit)  American Standard Code for Information Interchange (ASCII)  Seven-bit alphanumeric code with 128 combinations (00H to 7FH)  Represents English alphabet, decimal digits from 0 to 9, symbols, and commands 330_01 19
  • 20. MPU-Based Systems  System hardware  Discrete components  Microprocessor, Memory, and I/O  Components connected by buses  Address, Data, and Control  System software  A group of programs that monitors the functions of the entire system 330_01 20
  • 21. MPU-Based Time and Temperature System 330_01 21
  • 22. MCU-Based Systems  Includes microprocessor, memory, I/O ports, and support devices (such as timers) on a single semiconductor chip  Buses are generally not available to a system designer  I/O ports are generally multiplexed and can be programmed to perform different functions 330_01 22
  • 23. MCU-Based Time and Temperature System 330_01 23
  • 24. Computer Architectures  Princeton versus Harvard Architecture  CISC versus RISC processors  Microprocessors and Microcontrollers 330_01 24