cho rda and sin and cos
Posted: Fri Feb 08, 2019 7:50 am
Hi,
I'm trying to understand the cho rda command. In the end, I want to make a quadrature sine wave for a chorus, with four waves 90 degrees offset. I created a simple program to try to see the effect of the sin and cos outputs. The input to the FV-1 is a sine wave from a frequency generator. The dacl and dacr outputs viewed on a scope are identical, which surprises me. I expected they would be 90 degrees offset. What am I missing?
Thanks for any help.
mem mchodel 32767
skp run, start
wlds SIN0, 25,32767
start:
ldax adcl
wra mchodel, 0
cho rda, sin0,sin|reg|compc,mchodel^
cho rda, sin0,sin,mchodel^+1
wrax dacl, 0
cho rda, sin0,cos|compc,mchodel^
cho rda, sin0,cos,mchodel^+1
wrax dacr, 0
I'm trying to understand the cho rda command. In the end, I want to make a quadrature sine wave for a chorus, with four waves 90 degrees offset. I created a simple program to try to see the effect of the sin and cos outputs. The input to the FV-1 is a sine wave from a frequency generator. The dacl and dacr outputs viewed on a scope are identical, which surprises me. I expected they would be 90 degrees offset. What am I missing?
Thanks for any help.
mem mchodel 32767
skp run, start
wlds SIN0, 25,32767
start:
ldax adcl
wra mchodel, 0
cho rda, sin0,sin|reg|compc,mchodel^
cho rda, sin0,sin,mchodel^+1
wrax dacl, 0
cho rda, sin0,cos|compc,mchodel^
cho rda, sin0,cos,mchodel^+1
wrax dacr, 0