Problem Statement: 8253
Write 8086 ALP to program 8253 in Mode 0, modify the program for hardware retriggerable Mono shot
mode. Generate a square wave with a pulse of 1 ms. Comment on the difference between Hardware
Triggered and software triggered strobe mode. Observe the waveform at GATE & out pin of 1C 8254 on
CRO.
MODE 0
0000:4000 MOV AL,10
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
MODE 1
0000:4000 MOV AL, 12
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
MODE 2
0000:4000 MOV AL, 14
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
MODE 3
MODE 3
0000:4000 MOV AL, 16
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
MODE 4
0000:4000 MOV AL, 18
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
MODE 5
0000:4000 MOV AL, 1A
0000:4002 OUT 33, AL
0000:4004 MOV AL, 04
0000:4006 OUT 30, AL
0000:4007 INT 3
No comments:
Post a Comment