Pot range in delay
Posted: Mon Jan 31, 2011 6:16 am
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.
best regards
Ronald
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
Ronald