Quote:
Originally Posted by vamfun
Also, could you describe the 4x algorithm equations (like your description of the 1x and 2x earlier).
|
Notation:
A => value of A channel currently
A' => value of A channel last sample
A + B => A XOR B
A | B => A OR B
A & B => A AND B
!A => NOT A
Equations:
Count = (A + A') | (B + B')
Count_Dir = A + B' + !Reverse
Count_Up = Count & Count_Dir
Count_Down = Count & !Count_Dir
(Reverse is a configuration register)
-Joe