Nvis 5586A
Nvis Technologies Pvt. Ltd.
131
Program 18:
8259 Interrupt Controller.
The following program illustrates the use of IRQ0 of 8259. Whenever user made Pin 18 of
8259 OR Pin 1 of Connector CN6 is made low. The 0000:400 program branches to 2000
address.
Note:
Keep SW2 in ON position while running this program.
Address
Opcode
Mnemonic
Comment
0400
B8 00 00
MOVAX,0000
DATA SEGMENT IS INITIALIZE TO ZERO
0403
8E D8
MOV DS,AX
0405
B8 00 20
MOV AX,2000
INTERRUPT LOCATION IS DEFINED
0408
89 06 00 00
MOV [0000],AX
040C
B8 00 00
MOV AX,0000
040F
89 06 02 00
MOV [0002],AX
0413
B0 17
MOV AL,17
ICW1 COMMAND
0415
E6 30
OUT 30,AL
0417
B0 00
MOV AL,00
ICW2 COMMAND
0419
E6 31
OUT 31,AL
041B
B0 01
MOV AL,01
ICW4 COMMAND
041D
E6 31
OUT 31,AL
041F
B0 FE
MOV AL,FE
UNMASK IRQ0
0421
E6 31
OUT 31,AL
0423
9A 7C F0 00 F0
CALL F0000:F07C
CLEAR DISPLAY
0428
B3 80
MOV BL,80
INPUT PARAMETER OF SUBPROGRAM IS STORED
IN BL, CLEAR 1ST LINE
042A
9A 78 F0 00 F0
CALL F000:F078
042F
B080
MOV AL,80
0431
9A 44 F0 00 F0
CALL F000:F044
0436
0E
PUSH CS
0437
1F
POP DS
0438
B3 00 06
MOV SI,600
STARTING ADDR OF TABLE IS STORED
043B
BE 0F 00
MOV CX,000F
STORE TABLE CHECKING LENGTH IN CX
043E
FC
L1: CLD
CLEAR DIRECTION FLAG
043F
AC
LODSB
0440
9A 48 F0 00 F0
CALL F000:F048
INPUT AL DATA INTO LCD MODULATOR
0445
E2 F7
LOOP 043E
0447
FB
STI
SET INTERRUPT FLAG
0448
E9 FD FF
JMP 0448
INTERRUPT SUBROUTINE AT 0000:2000
2000
9A 7C F0 00 F0
CALL F000:F07C
CLEAR THE DISPLAY
Summary of Contents for 5586A
Page 2: ...Nvis 5586A Nvis Technologies Pvt Ltd 2...
Page 23: ...Nvis 5586A Nvis Technologies Pvt Ltd 23 Memory Read Timing in Maximum Mode...
Page 30: ...Nvis 5586A Nvis Technologies Pvt Ltd 30...
Page 48: ...Nvis 5586A Nvis Technologies Pvt Ltd 48 Diagram of module RESET power Instruction Set Note...