Wrong instruction (typo) in the quick setup doc?

Algorithm development and general DSP issues

Moderator: frank

Post Reply
mark2
Posts: 22
Joined: Mon Jan 20, 2020 4:17 pm

Wrong instruction (typo) in the quick setup doc?

Post by mark2 »

In this section: http://www.spinsemi.com/knowledge_base/ ... Pot_inputs

It reads

Code: Select all

RDAX	POT0,0.01	;read POT0 times a small number
RDAX	pot0fil,0.99	;read filter register times 1-previous coefficient
WRAX	pot0fil,0	;filtered pot value ready for use in register labeled pot0fil
But should the second line be RDFX?
mark2
Posts: 22
Joined: Mon Jan 20, 2020 4:17 pm

Re: Wrong instruction (typo) in the quick setup doc?

Post by mark2 »

Actually I don't think that makes sense either. I'll spend some more time trying to figure this one out.
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Re: Wrong instruction (typo) in the quick setup doc?

Post by frank »

It works, it is doing:

old_val = C*POT + (1-C)*old_val

Put it a spread sheet program to test it.
Frank Thomson
Experimental Noize
mark2
Posts: 22
Joined: Mon Jan 20, 2020 4:17 pm

Re: Wrong instruction (typo) in the quick setup doc?

Post by mark2 »

Thank you. I've got it now. Sorry for the false start; I was too quick to post the thought/question and should have spent more time on it.
Post Reply