Hello! I'm having trouble understanding RDFX. According to the syntax and instructions page,we can use it to clear the acc and load a register by writing "RDFX reg,1"
The formula for RDFX is ACC=[reg]+(ACC-[reg])*K1 If K is equal to 1, we just get [reg]+(ACC-[reg]), and as far as I can tell reg would cancel out and we'd just be left with the ACC value we started with.
Most likely I'm just missing something about order of operations, but I'd really appreciate if anyone could spell this out for me a little clearer than the manual does.
Thanks!
Loading values with RDFX
Moderator: frank
Re: Loading values with RDFX
I think it should be 'RDFX reg,0" to clear ACC and load a register into it
Where did you see the "RDFX reg, 1" ? I need to look at that page and check if that is a typo.
Where did you see the "RDFX reg, 1" ? I need to look at that page and check if that is a typo.
Frank Thomson
Experimental Noize
Experimental Noize
Re: Loading values with RDFX
Hi Frank, thanks very much for clearing that up!
I found it on this page, at the end of the notes for RDFX: http://www.spinsemi.com/knowledge_base/ ... .html#RDFX
I also found a typo later on the same page, but for WLDR: http://www.spinsemi.com/knowledge_base/ ... .html#WLDR
"The frequency variable is a 2 bit value 00 (0)=512, 01 (1)=1024, 10 (2)=2048 and 11 (3)=4096"
Should be amplitude, I think
I found it on this page, at the end of the notes for RDFX: http://www.spinsemi.com/knowledge_base/ ... .html#RDFX
I also found a typo later on the same page, but for WLDR: http://www.spinsemi.com/knowledge_base/ ... .html#WLDR
"The frequency variable is a 2 bit value 00 (0)=512, 01 (1)=1024, 10 (2)=2048 and 11 (3)=4096"
Should be amplitude, I think