Page 1 of 1

cho rda and sin and cos

Posted: Fri Feb 08, 2019 7:50 am
by dkleinjans
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

Re: cho rda and sin and cos

Posted: Fri Feb 08, 2019 9:27 am
by frank
I believe you missed the "reg" in the
cho rda, sin0,cos|compc,mchodel^
line.

Re: cho rda and sin and cos

Posted: Mon Feb 11, 2019 2:53 pm
by dkleinjans
Well, that was easy.
Thank you, Frank.