This is my POT-change-detection code:
Code: Select all
rdax POT, 1
wrax temp,1
rdax lastPotValue, -1
skp zro, processDelay
; else change detected
clr
rdax temp,1
wrax lastPotValue,0
; then trigger the mute
sof 0, 0.99 ; Reset value for the holdoffCount.
wrax holdoffCount, 1.0
Code: Select all
rdax holdoffCount, 1.0
sof 0.9997, 0 ; sets the rough holdoff window (approx 300ms)
wrax holdoffCount, 1.0 ; Save the scaled version.
sof 1.0, -0.1 ; Offset the value move the holdoffCount
; threshold around. -0.1 yeilds 190ms with 0.9997.
skp neg, unMute
If I expand the mute time long enough the phantom mute trigger is masked but we're trying to keep it as short as possible.
Any suggestions/comments?
Thanks
Bob