[time-nuts] Can (will) a M12+T generate a negative sawtooth message ?
albertson.chris at gmail.com
Sun May 18 23:20:01 EDT 2014
On Sun, May 18, 2014 at 5:19 PM, Tom Van Baak (lab) <tvb at leapsecond.com> wrote:
> -128 is 0x80
> +127 is 0x7F
So it's "twos complement" to negate a number you invert all the bit
then add one.
The fun part of 2's complement is when you count in binary from -1 to +1
-1 = 1111
0 = 0000
+1 = 0001
The sign bit flips and all you need is a simple ripple counter.
Redondo Beach, California
More information about the time-nuts