Module 2
Module 2
Microprocessors
Microprocessor vs
Microcontroller
• A microprocessor is a CPU on a chip that interfaces with memory and
other peripherals through an external bus
• A microcontroller contains a CPU, memory and I/O interface
connected by an internal bus on a single chip.
Von-neuman Architecture
• Instructions and data stored in shared memory with a common
address and data bus used for both
Havard Architecture
• Instructions and Data reside in different memory space with separate
address and data buses
AVR
• Modification of Havard architecture with enhanced memory
seperation and access
Memory
• Volatile
• RAM
• Registors
• Non-volatile
• ROM
• FLASH
Bare Metal
• Code is writen to directly interact with the hardware.
• The program runs inside an infinite loop
RTOS based embedded systems
• A Real Time Operating System sits between the user program and the
underlying hardware.
• Defers from usual operating systems in the sense that its response time to
external events is determnistic
Architecture overview