An encoder includes a DC tracking device that generates a flip signal as a function of a statistical measure of portions of a communication signal. The flip signal has a flip state and a nonflip state. A flip device selectively flips the portions based on the flip signal to reduce an average DC value of the communication signal.