Docsity

Study notes on microprocessors and microcontrollers, Study notes of Microprocessors

Toggle sidebar
bg1
Study Notes: Microcontrollers and Microprocessors (E7-
IIN-14)
These notes are based on the course materials provided by Mr. Keene Osupile at Botho
University.
1. Introduction and Course Overview
The course focuses on the fundamental concepts, architecture, and applications of
microcontrollers (MCU) and microprocessors (MPU), specifically targeting the 8086
(microprocessor) and 8051 (microcontroller).
Key Learning Outcomes:
• Design and describe assembly level programs for 8086/8051.
• Construct basic applications and demonstrate data transfer mechanisms.
• Differentiate between Microprocessors and Microcontrollers.
• Identify errors in assembly language programs.
2. Microprocessor (MPU) vs. Microcontroller (MCU)
Feature Microprocessor (MPU) Microcontroller (MCU)
Definition A CPU on a single integrated
circuit.
A compact IC designed for
embedded systems.
Integration CPU only; requires external
RAM, ROM, and peripherals.
Integrated CPU, RAM, Flash
memory, and peripherals on one
chip.
Purpose High-performance, general-
purpose computing.
Optimized for specific, dedicated
tasks.
Examples Intel Core, AMD Ryzen, ARM
Cortex-A.
Arduino, STM32, Raspberry Pi
Pico, 8051.
pf3
pf4

Partial preview of the text

Download Study notes on microprocessors and microcontrollers and more Study notes Microprocessors in PDF only on Docsity!

Study Notes: Microcontrollers and Microprocessors (E7-

IIN-14)

These notes are based on the course materials provided by Mr. Keene Osupile at Botho University.

1. Introduction and Course Overview

The course focuses on the fundamental concepts, architecture, and applications of microcontrollers (MCU) and microprocessors (MPU), specifically targeting the 8086 (microprocessor) and 8051 (microcontroller).

Key Learning Outcomes:

  • Design and describe assembly level programs for 8086/8051.
  • Construct basic applications and demonstrate data transfer mechanisms.
  • Differentiate between Microprocessors and Microcontrollers.
  • Identify errors in assembly language programs.

2. Microprocessor (MPU) vs. Microcontroller (MCU)

Feature Microprocessor (MPU) Microcontroller (MCU) Definition A CPU on a single integrated circuit. A compact IC designed for embedded systems. Integration CPU only; requires external RAM, ROM, and peripherals. Integrated CPU, RAM, Flash memory, and peripherals on one chip. Purpose High-performance, general- purpose computing. Optimized for specific, dedicated tasks. Examples Intel Core, AMD Ryzen, ARM Cortex-A. Arduino, STM32, Raspberry Pi Pico, 8051.

Feature Microprocessor (MPU) Microcontroller (MCU) Usage PCs, Laptops, Smartphones, Data Centers. IoT devices, Robotics, Medical devices.

3. Evolution of Microprocessors

The evolution of microprocessors began in the early 1970s with Intel's pioneering chips. Year Processor Key Features 1971 Intel 4004 First programmable device (4- bit); 4 KB memory; used in calculators. 1972 Intel 8008 8-bit version; 16 KB memory; 48 instructions; slow PMOS technology. 1973 Intel 8080 8-bit; 64 KB memory; 10x faster than 8008; used in early microcomputers. 1978/79 Intel 8086/ 16-bit; 1 MB memory; 8088 was used in the first IBM PC (1981). 1982 Intel 80186 16-bit; 1 MB memory; included counters/interrupt controllers; for minimal hardware systems. 1983 Intel 80286 16-bit high performance; 16 MB memory; supported Multitasking. 1986+ 386, 486, Pentium Transition to 32-bit and eventually 64-bit (Intel i9).

4. Microprocessor Fundamentals

The System Bus

A bus is a collection of wires transmitting data and signals between the CPU and other components.

  • Register: Data residing in internal registers (e.g., ADD BX, CX).
  • Memory: Data located at a memory address (e.g., MOV AX, [1234H]).

Common Addressing Modes

  • Immediate: MOV AL, 1Fh (Direct value).
  • Register: MOV AX, BX (Register to register).
  • Direct: MOV AX, [1234H] (Specific memory address).
  • Register Indirect: MOV AX, [BX] (Address stored in a register).
  • Based/Indexed: MOV AX, [BX+SI] (Sum of registers).
  • Based-Indexed with Displacement: MOV AX, [BX+SI+10H].

7. Pipelining in 8086

Pipelining is a technique to increase instruction throughput by overlapping execution phases.

The Pipeline Stages:

4 Fetch: Retrieve instruction from memory. 5 Decode: Interpret the instruction. 6 Execute: Perform the operation. 7 Memory Access: Read/Write data if needed. 8 Write Back: Store the result.

Prefetch Input Queue (PIQ)

  • A 6-byte FIFO buffer managed by the BIU.
  • While the EU is executing an instruction, the BIU fetches the next instructions and stores them in the PIQ.
  • Benefit: Maximizes efficiency and increases throughput by ensuring the EU always has instructions ready to process.