Nvis 5586A
Nvis Technologies Pvt. Ltd.
100
MASM Macro-Assembler
To use MASM Software and download generated file to Trainer please follow these steps
Write program given in following format for 8086
Note:
While writing Programs for MASM Compiler add prefix Zero (0) and postfix H as shown in
figure and use label names.
; Test for 8255 EM03 to Generate Square Wave Output
In this program the output will remain high until one half the counts has been completed (for
even numbers) and go low for other half of the count. When the counter reaches terminal
count, the state of the output is changed and the whole process is repeated.
If the count is odd and the output is high the first clock pulse (after the count is loaded)
decrements the count by 1. Subsequent clock pulses decrements the clock by 2. The time -
out, the output goes low and the full count is reloaded. In this way if the count is odd, the
output will be high for (N+1)/2 counts and low for (N-1)/2 counts.
CODE SEGMENT
ASSUME CS: CODE, DS: CODE
PROG PROC FAR
Address
Opcode
Mnemonic
Comment
Step-1
0400
B0 B6
START :
MOV
AL,B6 H
;INIT 8 253 CWR IN
MODE-3
0402
E6 06
OUT
0 6H,AL
;SET FOR COUNTER -2
Step-2
0404
B0 0A
MOV
AL ,0AH
;L OAD L SB COUNT
I N A CC DATA 0AH
0406
E6 04
OUT
04H,AL
;OUT AT COUNTER-2
Step-3
0408
B0 00
MOV
AL ,00 H
;L OAD MSB COUNT
IN ACC DATA 00 H
040A
E6 04
OUT
04 H,AL
;OUT AT C OU NTER-2
Step-4
040C
EB F1 FF
JMP
S TART
;JUMP TO START
PROG ENDP
CODE ENDS
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...