--Your friends at LectureNotes

Note for Microprocessor - MP by ravi kumar

  • Microprocessor - MP
  • Note
  • Visvesvaraya Technological University Regional Center - VTU
  • Electronics and Communication Engineering
  • B.Tech
  • 1 Topics
  • Uploaded 11 months ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-2

Data bus: carries data stored in memory (or an I/O device) to the CPU or from the CPU to the memory (or I/O device) Control bus: is a collection of control signals that coordinate and synchronize the whole system Block diagram of a typical CPU CPU structure The main functions are –data transfer –arithmetic and logic operations –decision making (instructional flow control) The register array consists of at least one accumulator, program counter and stack pointer. The control unit controls all the operations in a CPU and basically it puts the CPU in one of the fetch and execution phases. Memory The memory in a computer system stores the data and instructions of the programs. 2

Text from page-3

Main memory types • ROM (read-only memory) o programmed permanently at the factory, cannot be altered • RAM (random-access memory) o read and write memory • EPROM (erasable programmable ROM) o nonvolatile, written electrically but erased optically • EEPROM (electrically ROM) o nonvolatile, both written and erased electrically Operation of the CPU 3

Text from page-4

• • • Fetch cycle (phase): o The CPU puts the address of the instruction to be executed on the address bus. The address information comes from the program counter (PC) maintained by the control unit. o The control bus holds the information for reading the memory location and the data bus holds the instruction from the memory which is stored into the instruction register (IR) o PC is updated to point to the next instruction. Execute cycle (phase): o Instruction in the IR is decoded o The required data transfer and the required logical and arithmetic operation are performed o The result is written back either to one of the registers or memory or I/O device Common operations performed in ALU are: o addition, subtraction, o logical AND, OR, XOR, NOT o increment, decrement, shift, clear, etc. Microcomputer o o o o o o o CPU on a single IC microprocessor (µP). The terms CPU, µP and MPU (microprocessor unit) are synonymous CPU is the combination of the ALU and control unit of any computer. When the CPU is a single IC; it is called a µP and is also referred to as the MPU. When the MPU is connected to memory and I/O, the arrangement becomes a MICROCOMPUTER. Many different MPUs are produced by many different IC vendors (e.g., Motorola, Intel, Texas Instruments, Zilog, National Semiconductors, etc.). Major differences are in o word size, o the number and types of instructions that can be performed, o the types of external control signals available, o the amount of memory that can be addressed. 4

Text from page-5

Microcontroller o o o A microcontroller unit (MCU) contains an MPU, memory, and I/O circuitry on a single chip. Such a chip can perform control operations without the need for any external circuitry. e.g. Motorola MC68HC11 (also a microprocessor in the expanded multiplexed mode)e.g. Intel 8051 Microprocessors vs microcontrollers o o o o Microprocessors: high performance, general purpose “brains” for PCs and workstations o Instruction decode and control, arithmetic/logic operations, registers, timing, external control o Typical cost: $75 -- $500, Annual demand: 10s of millions Microcontrollers: devices with high levels of integration for embedded control o Microprocessor functions plus on-chip memory and peripheral functions (e.g. ports, timers) o "Swiss army knife" of microprocessor technology o Typical cost: $1-- $25, Annual demand: billions! o Microprocessor o Includes memory management unit, lots of cache o Performance is the most important feature (cost is important, but secondary) o Used mainly in desktop machines Microcontroller o Integrated RAM and ROM, no cache o Includes lots of peripherals o Used mainly in “embedded” applications and often involves real-time control o Important features include: low cost, low power consumption, number of integrated peripherals, interrupt response time, amount of RAM and ROM Bottom-up view of microcontroller systems 5

Lecture Notes