8 May 2013

ALP FOR INTERFACING DAC WITH 8085


Hi Friend here i am written ALP FOR INTERFACING DAC WITH 8085

ALGORITHM:

(a) Square Wave Generation
1. Load the initial value (00) to Accumulator and move it to DAC
2. Call the delay program
3. Load the final value(FF) to accumulator and move it to DAC
4. Call the delay program.
5. Repeat Steps 2 to 5


(b) Saw tooth Wave Generation
1. Load the initial value (00) to Accumulator
2. Move the accumulator content to DAC
3. Increment the accumulator content by 1.
4. Repeat Steps 3 and 4.


(c) Triangular Wave Generation
2. Load the initial value (00) to Accumulator
3. Move the accumulator content to DAC
4. Increment the accumulator content by 1.
5. If accumulator content is zero proceed to next step. Else go to step 3.
6. Load value (FF) to Accumulator
7. Move the accumulator content to DAC
8. Decrement the accumulator content by 1.
9. If accumulator content is zero go to step2. Else go to step 7.


Programing 

(a) Square Wave Generation

START: MVI A,00
OUT Port address of DAC
CALL DELAY
MVI A,FF
OUT Port address of DAC
CALL DELAY
JMP START
DELAY: MVI B,05
L1: MVI C,FF
L2: DCR C
JNZ L2
DCR B
JNZ L1
RET


(b) Saw tooth Wave Generation


START: MVI A,00
L1: OUT Port address of DAC
INR A
JNZ L1
JMP START


(c) Triangular Wave Generation

START: MVI L,00
L1: MOV A,L
OUT Port address of DAC
INR L
JNZ L1
MVI L,FF
L2: MOV A,L
OUT Port address of DAC
DCR L
JNZ L2
JMP START

No comments:

Post a Comment