Microprocessors Module 4 Questions
Microprocessors Module 4 Questions
Part A
1. Interpret the mode and configurations of 8255 after its control
word register is loaded with 86H.
First we need to get the Binary value of 86H
(86)H = (0101 0110)B
The most significant bit D7 is 0, this implies 8255 operates in BSR Mode
This mode is used to set or reset the bits of port C, When D7 = 0
Now we just need to substitute each of the binary values in the below figure
It has four channels which can be used over four I/O devices.
Each channel can transfer data up to 64kb
Each channel can be programmed independently.
It operates in 2 modes, i.e., Master mode and Slave mode.
Each channel can perform read transfer, write transfer and verify transfer operations.
It requires a single-phase clock.
Part B
1. Explain the 8254 programmable timer and its operation
modes with a neat block diagram.
The 8254 is a Programmable Interval Timer designed for microprocessors to perform
timing and counting functions using three 16-bit registers.
Each Counter has 3 pins: Clock, Gate and OUT.
It has 3 independent 16-bit down counters.
These 2 counters can be programmed for either binary or BCD Count.
To operate a counter
Operation modes
8254 can be operated in 6 different modes
8255 PPI is designed by Intel corporation for interfacing I/O devices (Peripheral devices)
with microprocessor
Basically 8255 will function in two modes:
BSR Mode
I/O Mode
BSR mode is also known as bit reset mode is using for setting or resetting port C bits
I/O Mode is also known as Input/Ouput mode will function in 3 different modes:
Mode 0
In mode 0, all ports (Port A, Port B, Port C) are using for input/output data
transfer without handshaking.
It is also known as basic I/O mode
Mode 1
In mode 1, only port A, B are using for input/output data transfer.
Port C pins are using for handshaking operation
The upper port C bits (PC4 - PC7) are using for handshaking operation of Port
A.
The lower port C bits (PC0 - PC3) are using for handshaking operation of port B.
It is also known as strobed I/O mode
Mode 2
In mode 2, only port A is using for I/O data transfer (Bi-directional data transfer)
port C pins are using for handshaking operation of port A
It is also known as strobed bidirectional I/O mode
in 8255 IC, there are 40 pins
24 pins are for port A, port B and port C
D7 bit of control register will decide the different operations of 8255 (BSR Mode and
I/O mode)
if D7 bit = 0, then 8255 will function in BSR mode
If D7 bit = 1, then 8255 will function in I/O mode
1. Input/Output Mode