Pot range in delay

Software questions and issues with the FV-1

Moderator: frank

Post Reply
ronaldb
Posts: 19
Joined: Thu Dec 03, 2009 7:49 am

Pot range in delay

Post by ronaldb »

Hi,
I want to build a tap tempo version of the simple delay found here on the forum. I have a tap tempo timer set up in a ATmega and would like to control the FV-1 via digital potentiometer with 256 steps.

Now i would like that every step has 5ms so that i can vary between about 50ms and 1000ms.

How do i put that in code. Because now it's in steps of 10ms i believe.

Code: Select all

rdax   pot1,1 
and   %01111110_00000000_00000000   ;don't make jumps too small 
sof   61/64,3/64         ;50 ms to 1 second 
wrax   addr_ptr,0 
best regards
Ronald
frank
Posts: 1244
Joined: Wed Oct 19, 2005 12:26 pm
Contact:

Post by frank »

I have not tried this but I think this code will do it:

Code: Select all

rdax   pot1,1
and   %01111111_10000000_00000000
sof  243/256,13/256         ;50 ms to 1 second
wrax   addr_ptr,0 
Frank Thomson
Experimental Noize
ronaldb
Posts: 19
Joined: Thu Dec 03, 2009 7:49 am

Post by ronaldb »

Thanks frank,
I shall try it out.

Ronald
Post Reply