PadhaikoAll subjects

Past exam question: 2082 Chaitra (Regular), Q9(c)

Microprocessors · 2 marks

Open in the Padhaiko app

Topic: Parallel Interface, Handshaking & the PPI

Question

Explain how control word is made in Intel 8255A PPI.

Solution

Control Word Format for I/O Mode (Bit D7 = 1): To configure ports in I/O mode, an 8-bit control word is written to the Control Word Register (selected when A1 = 1, A0 = 1, and CS\_bar = 0):

BitNameFunction / Setting
D7Mode Set Flag1 = I/O Mode, 0 = BSR Mode
D6, D5Group A Mode00 = Mode 0, 01 = Mode 1, 1X = Mode 2
D4Port A Direction1 = Input, 0 = Output
D3Port C Upper (PC7–PC4)1 = Input, 0 = Output
D2Group B Mode0 = Mode 0, 1 = Mode 1
D1Port B Direction1 = Input, 0 = Output
D0Port C Lower (PC3–PC0)1 = Input, 0 = Output

Illustrative Construction Example: Suppose we need to configure:

Step-by-step bit assignment:

Binary: 1001 0001b = 91H. Writing 91H to the control port sets up this operational configuration.

Answer:

The I/O control word is formed by setting D7=1, configuring Group A mode (D6-D5) and directions for Port A (D4) and Port C Upper (D3), then Group B mode (D2) and directions for Port B (D1) and Port C Lower (D0).

All past exam questions for Microprocessors