Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
6 views

combinepdf

The document contains assembly code for two experiments using the I8086 processor, focusing on interfacing with LED displays and a dot-matrix LED. It includes code segments for initializing and controlling outputs to the displays, as well as timing functions. Additionally, it provides a general description of the 8255A interface and details about the dot-matrix LED display specifications.

Uploaded by

Omar Abdullah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

combinepdf

The document contains assembly code for two experiments using the I8086 processor, focusing on interfacing with LED displays and a dot-matrix LED. It includes code segments for initializing and controlling outputs to the displays, as well as timing functions. Additionally, it provides a general description of the 8255A interface and details about the dot-matrix LED display specifications.

Uploaded by

Omar Abdullah
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

;*****************************************

; MDA-Win8086 EXPERIMENT PROGRAM *


; FILENAME : LED.ASM
; PROCESSOR : I8086
;*****************************************
CODE​ SEGMENT
​ ASSUME​ CS:CODE,DS:CODE,ES:CODE,SS:CODE
​ ;
PPIC_C​EQU​ 1FH
PPIC​ EQU​ 1DH
PPIB​ EQU​ 1BH
PPIA​ EQU​ 19H
​ ;​
​ ORG​ 1000H
​ MOV​ AL,10000000B
​ OUT​ PPIC_C,AL
​ ;
​ MOV​ AL,11111111B
​ OUT​ PPIA,AL
​ ;
​ MOV​ AL,00000000B
​ OUT​ PPIC,AL
​ ;
L1:​ MOV​ AL,11110001B
L2:​ OUT​ PPIB,AL
​ CALL​ TIMER
​ SHL​ AL,1
​ TEST​ AL,00010000B
​ JNZ​ L1
​ OR​ AL,11110000B
​ JMP​ L2​ ​
​ ;
​ INT​ 3
​ ;​ ​
TIMER:​​ MOV​ CX,1
TIMER2:​ PUSH​ CX
​ ​ MOV​ CX,0
TIMER1:​ NOP
​ ​ NOP
​ ​ NOP
​ ​ NOP
​ ​ LOOP​ TIMER1
​ ​ POP​ CX
​ ​ LOOP​ TIMER2
​ ​ RET
​ ​ ;
CODE​ ENDS
​ END
Thursday, January 05, 2023
3:04 PM
Thursday, January 05, 2023
3:28 PM
;*****************************************
; MDA-Win8086 EXPERIMENT PROGRAM *
; FILENAME : FND.ASM
; PROCESSOR : I8086
; 8255 TEST
;*****************************************
CODE​ SEGMENT
​ ASSUME​ CS:CODE,DS:CODE,ES:CODE,SS:CODE
​ ;
PPIC_C​ EQU​ 1FH
PPIC​ ​ EQU​ 1DH
PPIB​ ​ EQU​ 1BH
PPIA​ ​ EQU​ 19H
​ ;​
​ ORG​ 1000H
​ MOV​ AL,10000000B
​ OUT​ PPIC_C,AL
​ ;
​ MOV​ AL,11110000B
​ OUT​ PPIB,AL
​ ;
​ MOV​ AL,00000000B
​ OUT​ PPIC,AL
​ ;
L2: ​ MOV​ SI,OFFSET DATA
L1:​ MOV​ AL,BYTE PTR CS:[SI]
​ CMP​ AL,00H
​ JE​ L2
​ OUT​ PPIA,AL
​ CALL​ TIMER
​ INC​ SI
​ JMP​ L1​ ​
​ ;
​ INT​ 3
​ ;​ ​
TIMER:​ MOV​ CX,0
TIMER1:​ NOP
​ ​ NOP
​ ​ NOP
​ ​ NOP
​ ​ LOOP​ TIMER1
​ ​ RET
​ ;
DATA:​ DB​ 11000000B
​ DB​ 11111001B
​ DB​ 10100100B
​ DB​ 10110000B
​ DB​ 10011001B
​ DB​ 10010010B
​ DB​ 10000010B
​ DB​ 11111000B
​ DB​ 10000000B
​ DB​ 10010000B
​ DB​ 00H
CODE​ ENDS
​ END
1. 8255A Interface

Experiment 1. 8255A Interface

FIGURE 1-1. 8255A INTERFACE

MDA-Win8086 MANUAL - 47 -
1. 8255A INTERFACE

1‐1. LED

☞ ☞ ☞

1‐2. 7‐Segment

☞ ☞ ☞ ☞

☞ ☞ ☞ ☞

- 48 - MDA-Win8086 MANUAL
2-1 Dot-Matrix LED Display

Experiment 2. Dot-Matrix LED

2‐1. Dot‐Matrix LED Display


General description :

The KMD D1288C is 1.26 inch height 3mm diameter and 8 × 8 dot
matrix LED displays. The KMD D1288C are dual emitting color type of
red, green chips are contained in a dot with milky and white lens color.

FIGURE 2-1. DOT MATRIX INTERNAL CIRCUIT DIAGRAM

MDA-Win8086 MANUAL - 49 -
EXPERIMENT 2. DOT-MATRIX LED

2‐2. Dot‐Matrix LED Interface

FIGURE 2-2. DOT-MATRIX LED INTERFACE

< Experiment 2-1. Dot-matrix Experiment >

- 50 - MDA-Win8086 MANUAL
2-2. DOT-MATRIX LED INTERFACE

1. Matrix ‐ Scroll bottom to top

◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
























☞ ◯























☞ ◯
























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ● ● ● ● ● ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
● ● ● ● ● ● ● ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯

◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ● ● ● ● ● ●
























☞ ●























☞ ◯
























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯

◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ● ● ● ● ● ●
● ● ● ● ● ● ● ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
























☞ ◯























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯

※ Setup jumper cap, like following;


◉ ◉
◉ ◉
◉ ◉
P6

MDA-Win8086 MANUAL - 51 -
EXPERIMENT 2. DOT-MATRIX LED

2. Matrix - Scroll left to right

● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯
● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯
● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯
























☞ ◯























☞ ◯
























● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯
● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯

◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯
◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯
◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯
























☞ ◯























☞ ◯
























◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯
◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯

◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ●
◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ●
◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ●
























☞ ◯























◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ●
◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ●

※ Setup jumper cap, like following;


◉ ◉
◉ ◉
◉ ◉
P6

- 52 - MDA-Win8086 MANUAL
2-2. DOT-MATRIX LED INTERFACE

3. Matrix - Display 'A'

◯ ◯ ◯ ● ● ◯ ◯ ◯
◯ ◯ ● ◯ ◯ ● ◯ ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ● ● ● ● ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯

※ Setup jumper cap, like following;

◉ ◉
◉ ◉
◉ ◉
P6

MDA-Win8086 MANUAL - 53 -
EXPERIMENT 2. DOT-MATRIX LED

4. Matrix - Scroll 'A' left to right

◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯
























☞ ●























☞ ◯
























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯

● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ◯ ◯ ◯ ◯ ◯
◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯
◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯
























☞ ◯























☞ ◯
























◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯
◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯

◯ ◯ ● ● ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ● ◯ ◯ ◯
◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯
● ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
























☞ ◯























● ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
● ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯

※ Setup jumper cap, like following;

◉ ◉
◉ ◉
◉ ◉
P6

- 54 - MDA-Win8086 MANUAL
2-2. DOT-MATRIX LED INTERFACE

5. Matrix - Scroll 'A' top to bottom

◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
























☞ ◯























☞ ◯
























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯

◯ ● ● ● ● ● ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ● ● ● ● ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ● ● ● ● ● ◯
























☞ ◯























☞ ◯
























◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯

◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ◯ ● ● ◯ ◯ ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯
◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
























☞ ◯























◯ ● ◯ ◯ ◯ ◯ ● ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯
◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ◯ ● ◯ ◯ ◯ ◯ ● ◯

※ Setup jumper cap, like following;

◉ ◉
◉ ◉
◉ ◉
P6

MDA-Win8086 MANUAL - 55 -
EXPERIMENT 2. DOT-MATRIX LED

2‐3. SPEAKER Interface

FIGURE 2-3. SPEAKER INTERFACE

1. Make sound

Make a laser beam sound.

- 56 - MDA-Win8086 MANUAL
2-2. DOT-MATRIX LED INTERFACE

2. Make the musical scale

Keypad 0 1 2 3 4 5 6 7 8 9 A B C D E F
Scale G A B C D E F G A B C D E F G A

MDA-Win8086 MANUAL - 57 -

You might also like