Professional Documents
Culture Documents
Microprocessor 02
Microprocessor 02
Microprocessor 02
CSE - 357
Course Teacher: Prof. Dr. Israt Jahan
Microprocessor Data type
The data type (typical) used by the
microprocessor are,
ASCII
•ASCII is a code that represents alphanumeric
(alpha charecters & numbers) in a microprocessor’s
memory.
•ASCII also represents special symbols such as #
and %. It is a 7 bit code.
•Also, note that the hex nos. 3016 - 3916 are ASCII
codes representing the decimal nos. 0 thugh 9.
Microcomputer hardware
The simplified block diagram of a microcomputer
System Bus
Memory
Microprocessor I/O
(ROM/RAM)
The System Bus
System bus contains 3 buses
•Address Bus
•Data Bus
•Control Bus
❖These buses connect the microprocessor to each of
the memory & I/O elements so that information transfer
between the microprocessor and any of the other
elements can take place.
•On Address Bus information transfer nomally takes
place only in one direction (microprocessor to
memory & I/O elements)
•The No. of unique addresses that the
microprocessor can generate on this bus depends
on the width of this bus.
•For 16 bit address bus, microprocessor can
generate 216 = 65,536 possible address.
•A different memory location or an I/O elements can
be represented by each one of these addresses.
•The data bus is bidirectional, i.e, information can
flow in both direction, to or from the microprocessor.
This bus is normally 8, 16, or 32 bit wide.
•The control bus is used to transmit signals that are
used to synchronize the operation of the individual
microcomputer elements.
•Typical control signals are read, write & reset.
•Interrupt is unidirectional, others (reset) are
bidirectional
The microprocessor
•Commercial microprocessor fabricated using MOS
technology is contained on a single chip.
•Microprocessor is comprised of a register section, one
or more ALUs & a control unit.
Depending on the register section, microprocessor
can be classified as
•Accumulator based
•General-purpose register based
In accumulator based microprocessor. (In 8085 &
Mot 6809),
•one of the operands is assured in a special
register “accumulator”.
08 A1
A1 5007
5008 Sp 08 5008
07 21
02 F1
F1 5008
26 500B
Top of Stack
•After PUSH , SP is decremented by 2
After POP ,SP is incremented by 2
[5008 &5009 are assured to be empty.]