INTERFACING DAC USING 8085.
SQUARE WAVE GENERATOR
PROGRAM:
ADDRESS
|
OPCODE
|
LABEL
|
MNEMONICS
|
OPERAND
|
COMMENT
|
80C0
|
|
|
MVI
|
A,80H
|
Load accu with
|
80C1
|
|
|
|
|
80h
|
80C2
|
|
|
OUT
|
43H
|
Load control reg with
|
80C3
|
|
|
|
|
Control word
|
80C4
|
|
UP
|
MVI
|
A,00H
|
Clear accumulator
|
80C5
|
|
|
|
|
|
80C6
|
|
|
OUT
|
40
|
Output accumulator value
|
80C7
|
|
|
|
|
To port A
|
80C8
|
|
|
MVI
|
B,D7H
|
Initialize B reg with count=D7
|
80C9
|
|
|
|
|
|
80CA
|
|
XYZ
|
DCR
|
B
|
Decrement B reg
|
80CB
|
|
|
JNZ
|
XYZ
|
If B reg is not zero
|
80CC
|
|
|
|
|
Goto XYZ
|
80CD
|
|
|
|
|
|
80CE
|
|
|
MVI
|
A,FFH
|
Load Accumulator with FFH
|
80CF
|
|
|
|
|
|
80D0
|
|
|
OUT
|
40H
|
Output Accumulator value
|
80D1
|
|
|
|
|
To Port A
|
80D2
|
|
|
MVI
|
B,D7
|
Initialize B reg with
|
80D3
|
|
|
|
|
Count=D7
|
80D4
|
|
ABC
|
DCR
|
B
|
Decrement B reg
|
80D5
|
|
|
JNZ
|
ABC
|
If B is not zero,
|
80D6
|
|
|
|
|
Goto ABC
|
80D7
|
|
|
|
|
|
80D8
|
|
|
JMP
|
UP
|
Jmp to up
|
80D9
|
|
|
|
|
unconditionally
|
OBSERVATION:
No comments:
Post a Comment