You have no items in your shopping cart.

Subtotal: 0.00

How to Interface Switch with 8086 Lab Trainer Kit

8086TRAINERKIT

PS-TRAINER-8086A microprocessor trainer kit is proposed to smooth the progress of learning and developing designs of microprocessor from Intel. It has the facility to connect PC’s 101/104 Keyboard, to enter user programs in Assembly languages. User verifies the programs through LCD or PC. User friendly Firmware confirms facilitating the beginners learns operations of a microprocessor quickly.

SWITCH

A switch is an electrical component that can break an electrical circuit, interrupting the current or diverting it from one conductor to another. A switch may be directly manipulated by a human as a control signal to a system, or to control power flow in a circuit.

INTERFACING SWITCH

Fig. 1 shows how to interface the switch to microcontroller. A simple switch has an open state and closed state. However, a microprocessor needs to see a definite high or low voltage level at a digital input. A switch requires a pull-up or pull-down resistor to produce a definite high or low voltage when it is open or closed. A resistor placed between a digital input and the supply voltage is called a "pull-up" resistor because it normally pulls the pin's voltage up to the supply.



Fig. 1 Interfacing switch to Microprocessor

INTERFACING SWITCH WITH 8086

We now want to control the LED by using switches in 8086 trainer board. It works by turning ON a LED & then turning it OFF when switch is going to LOW or HIGH.

PIN ASSIGNMENT WITH 8086

***********************************************************************************************************************

Title : To initialize port b as an input port in mode - 0 & port A as output port.

************************************************************************************************************************

 

Slide Switch

8086 Lines

Input Logic Selection

  DIGITAL INPUTS

SW20

PA.0

            Make Switch

              Make Switch

Close – Low

Open – High

SW21

PA.1

SW22

PA.2

SW23

PA.3

SW24

PA.4

SW25

PA.5

SW26

PA.6

SW27

PA.7

 



CIRCUIT DIAGRAM TO INTERFACE SWITCH WITH 8086





ASSEMBLY PROGRAM TO INTERFACE SWITCH AND LED WITH 8086

 

 

MEMORY ADDRESS

OPCODE

MNEMONICS

1100

BA 56 FF

MOV DX,FF56

1103

EE

OUT DX,AL

1105

BA 50 FF

L1:MOV DX,FF50

1106

EC

IN AL,DX

1109

BA 52 FF

MOV DX,FF52

111C

EE

OUT DX,AL

111D

EB FD

JMP L1