1.1 Intro
1.1 Intro
EE 180
Three Basic Blocks - microcomputer
Central Processing Unit (CPU)
executes all the instructions
performs arithmetic and logic operations on data.
Typically VLSI
Registers
control unit
arithmetic/ logic circuits of the microcomputer
Memory Unit
stores both data and instructions.
Typically consists of ROM and RAM.
Input/Output Unit
Interface for transferring of data between the
microcomputer and the external devices via I/O ports
Levels of Integration
Smallscale integration (SSI)
several independent gates in a single package.
The inputs and outputs of the gates are connected
directly to the pins in the package.
usually fewer than 10 gates and is limited by the number
of pins available in the IC.
READ operation
memory or an I/O chip sends data to the MPU
data is read from a selected memory location or an I/O
port.
Address Bus
Information transfer takes place only in one direction
microprocessor -> memory or I/O elements.
"unidirectional bus.
LOD 0010,BO;
Clock Signals
System clock signals are in the control bus.
Overflow = Cp (+) Cf
Stack pointer Register
The stack consists of a number of RAM locations set
aside for reading data from or writing data into these
locations and is typically used by subroutines .
(a subroutine is a program that performs operations
frequently needed by the main or calling program).
01102
+10102
Review
Determine the carry (C), sign (S), zero (Z), overflow
(V), and parity (P) flags for the following operation:
01102 plus 10102
Control Unit
The main purpose of the control unit is to read and
decode instructions from the program memory.
The control unit interprets the contents of the
instruction register and then responds to the
instruction by generating a sequence of enable signals.
RESET.
READ/WRITE (R/W).
READY
Interrupt Request (INT or IRQ).
RESET
This input is common to all microprocessors. When
this input pin is driven to HIGH or LOW the program
counter is loaded with a predefined address specified
by the manufacturer.
READ/WRITE
This output line is common to all microprocessors.
The status of this line tells the other microcomputer
elements whether the microprocessor is performing a
READ or a WRITE operation. A HIGH signal on this
line indicates a READ operation and a LOW indicates
a WRITE operation. Some microprocessors have
separate READ and WRITE pins.
READY
This is an input to the microprocessor. Slow devices
(memory and I/O) use this signal to gain extra time to
transfer data to or receive data from a microprocessor.