Loading values with RDFX

Software questions and issues with the FV-1

Moderator: frank

Post Reply
smear
Posts: 39
Joined: Fri Jul 01, 2016 9:47 am

Loading values with RDFX

Post by smear »

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!
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: Loading values with RDFX

Post by frank »

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.
Frank Thomson
Experimental Noize
smear
Posts: 39
Joined: Fri Jul 01, 2016 9:47 am

Re: Loading values with RDFX

Post by smear »

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
Post Reply