Professional Documents
Culture Documents
QUESTION BANK UNIT 3 - Computer Organization and Architecture
QUESTION BANK UNIT 3 - Computer Organization and Architecture
QUESTION BANK UNIT 3 - Computer Organization and Architecture
Unit 3
Answer:
Answer:
Segmentation:
• Segmentation divides the memory into different segments, each having a specific
purpose.
• In 8086, memory is divided into four segments: Code Segment (CS), Data Segment
(DS), Stack Segment (SS), and Extra Segment (ES).
• Each segment has a base address stored in a segment register.
Importance:
Answer:
Answer:
Memory interfacing with the 8086 involves connecting memory chips to the microprocessor
in a way that ensures data can be read and written correctly.
Key Points:
Steps:
1. Address Decoding: Ensure the correct memory chip is selected based on the address.
2. Control Signal Generation: Generate appropriate control signals to perform
read/write operations.
3. Data Transfer: Facilitate data transfer between the processor and memory.
Answer:
Methods:
1. Memory-Mapped I/O:
o Uses the same address space for memory and I/O devices.
o I/O devices are treated as memory locations.
o Example: MOV AX, [IO_ADDRESS]
2. I/O Mapped I/O (Isolated I/O):
o Separate address space for I/O devices.
o Special instructions IN and OUT are used.
o Example: IN AL, DX
Steps:
Example:
assembly
Copy code
MOV DX, PORT_ADDRESS ; Load port address into DX
IN AL, DX ; Read from the port
OUT DX, AL ; Write to the port
3b. Explain the function of 8255 PPI with its pin diagram.
Answer:
The 8255 Programmable Peripheral Interface (PPI) is used to interface peripheral devices
with the microprocessor.
Pin Diagram:
mathematica
Copy code
+-------------------+
| D0 - D7 | Data Bus
| RD | Read Signal
| WR | Write Signal
| CS | Chip Select
| A0 - A1 | Address Lines
| PA0 - PA7 | Port A
| PB0 - PB7 | Port B
| PC0 - PC7 | Port C
| RESET | Reset Signal
+-------------------+
Function:
• Ports: Three 8-bit ports (A, B, C) which can be programmed as input or output.
• Control Word: Determines the mode of operation for the ports.
Modes:
1. Mode 0: Basic input/output.
2. Mode 1: Strobed input/output.
3. Mode 2: Bi-directional data bus.
Example:
assembly
Copy code
MOV AL, 80H ; Set port A as input
OUT CONTROL, AL ; Send control word to control register
IN AL, PORT_A ; Read data from port A
Answer:
Direct Memory Access (DMA) allows peripheral devices to transfer data directly to/from
memory without CPU intervention.
Diagram:
lua
Copy code
+-----------+ +-------------+
| CPU | | Peripheral |
| | | Device |
| +-------+ | | +---------+ |
| | | | | | | |
| | Memory|<--------->|DMA | |
| | | | DMA |Controller| |
| +-------+ | | +---------+ |
+-----------+ +-------------+
Concept:
Steps:
Answer:
The 8257 DMA Controller manages DMA operations for data transfer between memory and
peripherals.
Architecture:
Function:
Modes:
Example:
assembly
Copy code
MOV AL, 100H ; Set DMA mode
OUT DMA_CONTROL, AL ; Send to control register
BY Laxmikant S Doijode
For further assistance or inquiries, please contact us through the ELECTRONICS ENGINEER
following :
• WhatsApp
• Instagram
• twitter