Microcontroller Unit (MCU) &
Microprocessor Unit (MPU) System
Basics
Sept Dec 2024
1
01/22/25
Microcontrollers
Sept Dec 2024
2
 Embedded Systems
 An embedded system is a combination of HW and SW
specifically designed to perform dedicated functions.
 In some cases, embedded systems are part of a larger system
or product, as in the case of cooling system controls in a car.
 Microcontroller Unit (MCU)
 An integrated electronic computing device that includes the
following three components on a single chip
Microprocessor (MPU)
Memory
I/O (Input/Output) ports
01/22/25
Microcontrollers
Sept Dec 2024
3
 Support Devices
 Timers
 A/D converter
 Serial I/O
 Common communication lines
 System Bus
01/22/25
Block Diagram
Sept Dec 2024
4
01/22/25
Microprocessor (MPU)
Sept Dec 2024
5
 MPU
 Read instructions
 Process binary data
01/22/25
Memory
Sept Dec 2024
6
 Storage Device
 Addresses
 Registers
 Major Categories
 Read/Write Memory
(R/W)
 Read-only-Memory
(ROM)
D7 D0
01/22/25
Input/Output Devices
Sept Dec 2024
7
 Input Devices
 Switches and Keypads
 Provide binary information to the MPU
 Output devices
 LEDs and LCDs
 Receive binary information from the MPU
01/22/25
Microprocessor Controlled System Layout
Sept Dec 2024
8
01/22/25
Cont.
Sept Dec 2024
9
 The MPU communicates with Memory and I/O
devices 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
01/22/25
Example
Sept Dec 2024
10
01/22/25
Example(detailed)
Sept Dec 2024
11
01/22/25
Software
Sept Dec 2024
12
 Machine Language
 Binary Instructions
 Difficult to decipher and write
 Error-prone(possible to replace a 0 with 1 by mistake)
 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
01/22/25
Cont.
Sept Dec 2024
13
 Characteristics of Assembly Language
 Machine instructions represented in mnemonics
 One-to-one correspondence
 Efficient execution and use of memory
 Machine-specific
01/22/25
Cont.
Sept Dec 2024
14
 Characteristics of 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
01/22/25
Data Format using 8-bits (review)
Sept Dec 2024
15
 Unsigned Integers
 All eight bits represent the magnitude of a number
 Bit7 to Bit0
 Range 00H to FFH (010 to 25510)
01/22/25
Cont.
Sept Dec 2024
16
 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)
01/22/25
Cont.
Sept Dec 2024
17
 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
01/22/25
Cont.
Sept Dec 2024
18
 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
01/22/25
Sept Dec 2024
19
 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 function of different
units in an entire system
01/22/25
MPU-Based Time
and Temperature System
Sept Dec 2024
20
01/22/25
MCU-Based Systems(Applications)
Sept Dec 2024
21
 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
01/22/25
MCU-Based Time
and Temperature System
Sept Dec 2024
22
01/22/25

Microprocessor design and Lecture Two.ppt

  • 1.
    Microcontroller Unit (MCU)& Microprocessor Unit (MPU) System Basics Sept Dec 2024 1 01/22/25
  • 2.
    Microcontrollers Sept Dec 2024 2 Embedded Systems  An embedded system is a combination of HW and SW specifically designed to perform dedicated functions.  In some cases, embedded systems are part of a larger system or product, as in the case of cooling system controls in a car.  Microcontroller Unit (MCU)  An integrated electronic computing device that includes the following three components on a single chip Microprocessor (MPU) Memory I/O (Input/Output) ports 01/22/25
  • 3.
    Microcontrollers Sept Dec 2024 3 Support Devices  Timers  A/D converter  Serial I/O  Common communication lines  System Bus 01/22/25
  • 4.
    Block Diagram Sept Dec2024 4 01/22/25
  • 5.
    Microprocessor (MPU) Sept Dec2024 5  MPU  Read instructions  Process binary data 01/22/25
  • 6.
    Memory Sept Dec 2024 6 Storage Device  Addresses  Registers  Major Categories  Read/Write Memory (R/W)  Read-only-Memory (ROM) D7 D0 01/22/25
  • 7.
    Input/Output Devices Sept Dec2024 7  Input Devices  Switches and Keypads  Provide binary information to the MPU  Output devices  LEDs and LCDs  Receive binary information from the MPU 01/22/25
  • 8.
    Microprocessor Controlled SystemLayout Sept Dec 2024 8 01/22/25
  • 9.
    Cont. Sept Dec 2024 9 The MPU communicates with Memory and I/O devices 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 01/22/25
  • 10.
  • 11.
  • 12.
    Software Sept Dec 2024 12 Machine Language  Binary Instructions  Difficult to decipher and write  Error-prone(possible to replace a 0 with 1 by mistake)  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 01/22/25
  • 13.
    Cont. Sept Dec 2024 13 Characteristics of Assembly Language  Machine instructions represented in mnemonics  One-to-one correspondence  Efficient execution and use of memory  Machine-specific 01/22/25
  • 14.
    Cont. Sept Dec 2024 14 Characteristics of 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 01/22/25
  • 15.
    Data Format using8-bits (review) Sept Dec 2024 15  Unsigned Integers  All eight bits represent the magnitude of a number  Bit7 to Bit0  Range 00H to FFH (010 to 25510) 01/22/25
  • 16.
    Cont. Sept Dec 2024 16 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) 01/22/25
  • 17.
    Cont. Sept Dec 2024 17 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 01/22/25
  • 18.
    Cont. Sept Dec 2024 18 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 01/22/25
  • 19.
    Sept Dec 2024 19 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 function of different units in an entire system 01/22/25
  • 20.
    MPU-Based Time and TemperatureSystem Sept Dec 2024 20 01/22/25
  • 21.
    MCU-Based Systems(Applications) Sept Dec2024 21  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 01/22/25
  • 22.
    MCU-Based Time and TemperatureSystem Sept Dec 2024 22 01/22/25