EE2323:Microprocessors & Computer Architecture
Spring 2013
• Course Yahoo Group – http://groups.yahoo.com/group/maju_ee2323/ • Course Folder – \\dataserver\jinnah$\M Tahir\EE2323
Microprocessor
Lecture 2 February 22, 2013
2/23/2013 2
Microprocessor based System
• A Microprocessor-based systems consists of central processing unit (CPU), memories, I/O Devices and other peripherals.
• CPU takes input from I/O devices such as keyboards CPU processes data in internal registers CPU sends output to I/O devices such as monitors, speakers Microprocessor (CPU) stores data and code in Memory
Address Bus
Microprocessor based System
• There are three main components of microprocessor based system or computer – Central Processing Unit (CPU) – Memory Unit – I/O Devices • Microprocessor Buses • A bus is a communication pathway connecting two or more devices – Data Bus – Address Bus – Control Bus
2/23/2013 4
Memory
Control Bus
• •
CPU (µP) µ
Data Bus
•
I/O Devices
2/23/2013
3
Microprocessor based System
• Central Processing Unit (CPU) – Brain of the computer, coordinating all the activities between different components to process data – CPU processes program instructions one by one and operates synchronously on a clock – Clock frequency determines how fast the CPU can process data • I/O Devices – Input Devices (Keyboards, mouse) – Output Devices (Monitor, speakers)
2/23/2013 5
Microprocessor based System
• Memory Unit (Main memory) – Provides storage of information – data and program instruction – Microprocessor may have a unified memory for program & data or separate program and data memories – External memories are used for storage of large program and data files. e.g. Hard disk, CDs, flash memories – Types of memories: » Random Access Memory (RAM): Volatile, data will be lost when power is off » Read-Only Memory (ROM): Non-Volatile
2/23/2013 6
Components of a Microprocessor (CPU)
• Main