Search found 34 matches

by sad1024
Wed May 26, 2010 10:55 am
Forum: Algorithm development
Topic: Digital state variable filter.
Replies: 8
Views: 9742

equ HP reg0 equ BP reg1 equ LP reg2 sof 0,0 ldax adcl rdax LP, -1 rdax BP, -1 wrhx HP, 0.1 Write high pass to HP, multiply acc by 0.1 and integrate. wrhx BP, 0.1 Write band pass to BP, multiply acc by 0.1 and integrate. wrax LP, 0 Write low pass to LP, acc x 0 ldax HP wrax dacl, 1 I am trying to wri...
by sad1024
Wed May 26, 2010 4:47 am
Forum: Algorithm development
Topic: Digital state variable filter.
Replies: 8
Views: 9742

equ HP reg0 equ BP reg1 ; setup registry locations for high pass, low pass, etc. equ LP reg2 ldax adcl ;read input rdax LP, -1 ;low pass feedback rdax BP, -1 ;band pass feedback wrax HP, 1 ;write high pass to reg. sof 0,0 ;clear accumulator wrhx HP, 0.1 ;read high pass, attenuate by 10th, integrate?...
by sad1024
Tue May 25, 2010 5:51 pm
Forum: Algorithm development
Topic: Digital state variable filter.
Replies: 8
Views: 9742

equ HP reg0 equ BP reg1 equ LP reg2 ldax adcl rdax LP, -1 rdax BP, -1 wrax HP, 1 sof 0,0 wrhx HP, 0.1 wrax BP, 1 sof 0,0 wrhx BP, 0.1 wrax LP, 1 sof 0,0 ldax BP wrax dacl, 1 I am trying to use wrhx as an attenuator followed by an integrator. Can this be done? The program doesn't work so far.
by sad1024
Mon May 24, 2010 3:39 pm
Forum: Algorithm development
Topic: Digital state variable filter.
Replies: 8
Views: 9742

Digital state variable filter.

equ HP reg0
equ BP reg1
equ LP reg2
equ K1 reg3

sof 0,0
ldax pot0
sof 0.8, 0.1
wrax K1, 1
sof 0,0

ldax adcl
rdax LP, 1
rdax BP, 1
wrax HP, 1
wrhx HP, K1
wrax BP, 1
wrhx BP, K1
wrax LP, 1
ldax BP
wrax adcl, 1

Can anyone tell me why this does not work?