CT1 Sol
CT1 Sol
CT1 Sol
Section-A
1. (a.) T-states are the number of clock cycles required to execute an instruction.
The formula to calculate the time taken to execute an instruction is:
Time taken = (Number of T-states / Clock frequency)
Given that the clock frequency of the 8085 microprocessor is 5 MHz, we can calculate the
number of T-states required to execute an instruction as follows:
Number of T-states = (Time taken x Clock frequency)
Number of T-states = (1.4 x 10^-6 s x 5 x 10^6 Hz)
Number of T-states = 7
Therefore, the number of T-states needed for executing the instruction is 7.
(b.) Vectored and Non-Vectored Interrupts –
Vectored Interrupts are those which have fixed vector address (starting address of sub-
routine) and after executing these, program control is transferred to that address. Vector
Addresses are calculated by the formula 8 * TYPE
Non-Vectored Interrupts are those in which vector address is not predefined. The interrupting
device gives the address of sub-routine for these interrupts. INTR is the only non-vectored
interrupt in 8085 microprocessor.
(c.)
• Microprocessor consists of only a Central Processing Unit, whereas Micro Controller
contains a CPU, Memory, I/O all integrated into one chip.
• Microprocessor is used in Personal Computers whereas Micro Controller is used in an
embedded system.
• Microprocessor uses an external bus to interface to RAM, ROM, and other peripherals,
on the other hand, Microcontroller uses an internal controlling bus.
• Microprocessors are based on Von Neumann model Micro controllers are based on
Harvard architecture
• Microprocessor is complicated and expensive, with a large number of instructions to
process but Microcontroller is inexpensive and straightforward with fewer instructions
to process.
(d.)
• Control Unit
• I/O Units
• Arithmetic Logic Unit (ALU)
• Registers
• Cache
(f.)
1. It is an 8-bit microprocessor i.e. it can accept, process, or provide 8-bit data
simultaneously.
2. It operates on a single +5V power supply connected at Vcc; power supply ground is
connected to Vss.
3. It can operate with a 3 MHz clock frequency. The 8085A-2 version can operate at
the maximum frequency of 5 MHz.
4. It has 16 address lines, hence it can access (216) 64 Kbytes of memory.
5. It provides 8 bit I/O addresses to access (28 ) 256 I/O ports.
(g.) Accumulator is used to perform I/O, arithmetic, and logical operations. It is connected to
ALU and the internal data bus. The accumulator is the heart of the microprocessor because for
all arithmetic operations Accumulator’s 8-bit pin will always there connected with ALU and in
most-off times all the operations carried by different instructions will be stored in the
accumulator after operation performance.
(h.)
(i.) The difference between a latch and a flip-flop is that a latch is level-triggered (outputs can
change as soon as the inputs changes) and Flip-Flop is edge-triggered (only changes state
when a control signal goes from high to low or low to high).
Flip-flops Latch
Flip-flops are built up from a latch. They are built up from gates.
OR
Vector Interrupts in 8085
1. TRAP :
– It is a non-maskable, edge and level-triggered interrupt.
– It is unaffected by any mask or interrupt enable.
– The TRAP signal must make a LOW to HIGH transition and remain HIGH until
acknowledge. This avoids false triggering due to noise or glitches.
– It has the highest priority among all interrupts.
– This interrupt transfers the microprocessor’s control to location 0024H.
– Application: It is used for emergency purposes like power failure, parity error checker,
smoke detector, etc.
2. RST 7.5 :
– It is a maskable, edge-triggered interrupt request input line. This interrupt is triggered
at the rising edge of the signal.
– It has the highest priority among all maskable interrupts and the second priority among
all interrupts.
– The interrupt vector location for this interrupt is 003CH.
3. RST 6.5 and RST 5.5 :
– These are level-triggered, maskable interrupt request input lines.
– RST 6.5 transfer the microprocessor’s control to location 0034H while RST 5.5 transfer
the microprocessor’s control to location 002CH.
4. INTR :
– It is a level triggered, maskable interrupt request input line.
– This interrupt works in conjunction with RST N or CALL instruction.
– The INTR logic consists of an INTE flip-flop, OR gate, and inverter. The INTR pin is
logically ANDed with the output of the INTE flip-flop.
Interrupt Vector Location
5.
OR
Generation of Control Signals of 8085
In any system, there are different modes of operations. Likewise, in some situation we are interested to
read data in microprocessor, in other we are interested to write data on some location from
microprocessor. Whenever, we are dealing with different peripherals using 8085 microprocessor there
are two modes of operations. One is to read data from any of the memory device or input device. Second
is to write data on some location, this location can be any of the output device location or any of the
memory location. To deal with these modes 8085 microprocessor architecture gives three different
control signals. Namely IO/M,RD and WR. The IO/M is an output pin of the 8085 microprocessor
which serves dual purpose, the high going pulse on this pin indicates the I/O type of operation. We can
state that, at this time 8085 is working with the input or output devices. The low going pulse on this pin
indicates the memory operation. The second one is the RD stand for read signal. This is active low
signal, indicates the memory or I/O type of read operation and the selected memory or I/O device is to
be read. And the third is WR stands for write signal. This is also active low signal, indicates the memory
or I/O type of write operation and data available on the Data bus is to be written in to the selected
memory or I/O location, data is set up at the trailing edge of the pin. To deal with different I/O as well
as memory device individually, we have to generate four individual control signals. This control signals
used to select any of the I/O or memory device, with a specific type of operation either of read or write.
In our case, we are interested with two operation with memory as well as output devices. First of all,
we required to fetch the instructions place inside the memory and next we write data word on output
port. According to our need we have develop the logic to generate control signals. The figure describe
the combination logic of signal generation.
6.
OR