Professional Documents
Culture Documents
Unit 1
Solution:
Functions of Microprocessor –
• To fetch decode and execute instructions in proper order.
• To transfer the data from one block to another.
• To give proper response to different external interrupts according to their
priority.
• To provide timing and control signals to the overall system.
3. Define –
i) Microprocessor ii) Monitor program iii) Assembler
iv) Microcomputer v) Word
Solution:
i) Microprocessor: Microprocessor is a semiconductor, multipurpose, programmable
logic device that reads binary instruction from storage device called memory,
accepts binary data as input & processes the data according to the instructions &
provides result as output
v) Word: A group of bits that a computer can recognize and process at a time is called
word. Word size may differ from processor to processor. Example: for
microprocessor 8085 words size is 8-bits, for Pentium word size is 64-bits.
Microprocessor Microcontroller
Consists of only a CPU with memory, I/O Contains a CPU, Memory, I/O interface all
interface chips around it. integrated into single chip.
Microprocessor uses an external bus Microcontroller uses an internal
to communicate with memory and controlling bus since memory and I/O are
other peripherals. situated on same chip.
Microprocessor is used in Micro Controller is used in an
Personal Computers. embedded system.
Microprocessors are based on Micro controllers are based on
Von Neumann architecture. Harvard architecture.
It is complicated and expensive, It is inexpensive and straightforward with
with many instructions to process. fewer instructions to process.
Microprocessor:
• Reads instruction from memory and performs computing tasks.
• Communicates with all peripherals (memory and I/O) using the system bus.
• Controls the timing of information flow.
Memory:
• Comprises of RAM (Random Access Memory) or ROM (Read Only Memory).
• ROM contains monitor program. RAM contains user program.
• Stores binary information, called instruction and data.
System Bus:
• It is the communication path between the microprocessor and peripherals.
• It is a group of wires to carry bits.
Prime Memory:
RAM / RWM
• RWM (Read/Write Memory) also as RAM (Random Access Memory). Information
can be read as well as altered.
• This memory is volatile.
• Stores user programs and instructions. Hence called user memory.
• There are two types of RAM – SRAM (Static RAM) and DRAM (Dynamic RAM)
• SRAM is mostly used as a part of cache memory.
• DRAM comprises 90% of RAM and needs to be refreshed using DRAM controller
ROM
• In ROM (Read Only Memory) information can only be read.
• ROM is non-volatile memory. Stores monitor programs.
• Can be permanent or semi-permanent.
• Permanent group includes – Masked ROM and PROM (Programmable ROM).
• Semi-permanent group includes – EPROM (Erasable Programmable Read Only
Memory), EEPROM (Electrically Erasable Programmable Read Only Memory)
and Flash memory .
Secondary Memory:
• Secondary Memory It includes devices like hard disk, floppy disk, magnetic tape
etc.
• System bus is the communication path between the microprocessor and peripherals.
• It comprises of Address Bus, Data Bus and Control Bus.
Address Bus
• 16-bit, unidirectional bus.
• Address carried by these bus lines tells memory to open the corresponding memory
location.
• It can access total 216 different memory addresses (hence 64K bytes memory)
Data Bus
• 8-bit, bidirectional bus.
• It is used to transmit data, i.e., information, instructions, data, results etc. between
microprocessor and peripherals.
• Size of the data bus limits the number of possible instructions to 28 = 256. i.e., from
00H to FFH.
Control Bus
• Comprises of various lines that carry control and timing signals for synchronization.
• Normally control signals are of following types-
– Memory Read
– Memory Write
– I/O Read
– I/O Write
• When Memory Read or I/O Read is active, data is received by the processor.
• When memory Write or I/O Write is active, data is sent by the processor.
ii) VSS
• Vss is one of the power pins of microprocessor 8085.
• Vss acts as ground (0 Volt) to microprocessor 8085 IC.
iii) X1, X2
• X1, X2 terminals are input pins associated with the external oscillator for
generating reference clock for microprocessor.
• Waveform from X1, X2 is considered as input clock given to the microprocessor.
iv) CLK(OUT)
• It is output pin which gives out clock generated by the microprocessor to operate
entire system.
• Frequency of waveform from CLK (OUT) is half of the frequency of waveform
from X1, X2.
v) S0, S1
• These are status pins which together indicate status of microprocessor operation.
iv) A8 to A15
• These are output pins. Together they are called higher order address bus.
• These lines carry higher byte of 16-bit address.
v) ALE
• This is output pin called Address Latch Enable. It is used to separate the lower order
address and data from the multiplexed address/data bus.
• During 1st clock cycle of any operation this pin goes High, indicating presence of
address bits on multiplexed bus AD0-AD7. While in next clock cycle this pin goes
low indicating presence of data bits on multiplexed bus AD0-AD7.
iii) HLDA
• This is output pin called Hold Acknowledge.
• Through this pin microprocessor gives acknowledgement of receiving HOLD
signal.
iv) SID
• This is input pin called Serial Input Data, used for serial communication.
• Bit received on this pin appears as MSB of accumulator on execution of instruction
RIM.
v) SOD
• This is output pin called Serial Output Data, used for serial communication.
• MSB of accumulator is sent on this pin on execution of instruction SIM.
ii) ̅̅̅̅̅
𝐖𝐑
• It is an output indicator pin known as active low Write control.
• When this pin goes low microprocessor writes information to memory or output
̅
iii) 𝐈𝐎/𝐌
• This output status signal decides whether the address placed on address bus belongs
to memory or input/output.
• When this pin goes high then the address belongs to input/output. When this pin
goes low then the address belongs to memory.
iii) INTR
• It is hardware non-vectored interrupt input pin called Interrupt Request.
• It is the lowest priority interrupt.
• INTR is enabled using instruction EI and can be disabled using instruction DI.
iv) ̅̅̅̅̅̅̅
𝐈𝐍𝐓𝐀
• It is active low output pin called Interrupt Acknowledge.
• When microprocessor receives Interrupt request on INTR pin, 𝐼𝑁𝑇𝐴
̅̅̅̅̅̅̅ pin goes low
indicating that INTR is received.