Nvis 5586A
Nvis Technologies Pvt. Ltd.
167
Program:
To generate sine wave at
Xout and Yout:
Port A
-
70H
Port B
-
72H
Port C
-
74H
Control Word
-
76H
The following program will generate a Sine wave output at Xout and Yout.
For finding Sine wave Angles
Value = (5+ (5* sinθ)) * 25.6
Where θ = 0 – 360
Here Samples are for 10 degree
Address
Opcode
Mnemonic
Comment
0400
B0 80
MOV AL,80H
; USING PORT A, B FOR OUTPUT
0402
E6 76
OUT 76H,AL
; SETTING CW
0404
BE 1604
LOOP2: MOV SI,0416H
; PLACE SAMPLES IN MEMORY
0407
B1 24
MOV CL,24H
0409
8A 04
LOOP1: MOV AL,[SI]
; GET WHATEVER IS AT 0416
040B
E6 70
OUT 70H,AL
; OUTPUT DAC 1, PORT A,
040D
E6 72
OUT 72H,AL
040F
46
INC SI
; INCREASE MEMORY LOCATION
0410
FE C9
DEC CL
; DECREMENT COUNTER
0412
75 F5
JNE 0409
0414
EB EE
JMP 0404
; KEEP ON DOING THIS
Put this data manually using D command at address 0000:0416
0416 80, 96, AC, C0, D2 , E2, EE, F8, FE, FF, FE, F8, EE, E2, D2, C0, AC, 96, 80
69, 54, 40, 2D, 1E, 11, 07, 02, 00, 02, 07, 11, 1E, 2D, 40, 54, 69, 80
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...