Patent ID: 7280053

Claim:
A decoder comprising: a serial-to-parallel converter for converting an (n+1)-bit serial code generated by an encoder to a (n+1)-bit parallel data; the encoder including, a changing-point counter for counting changing points of n-bit data (n: a positive integer) to generate a counting result, where values of adjoining bits change at each of the changing points, the changing-point counter outputting a discrimination bit which has a first valve when the counting result exceeds a predetermined value, a code converter for converting the n-bit data in such a way that bits of the n-bit data located at predetermined positions are inverted when the discrimination bit has the first valve, a parallel-to-serial converter for converting (n+1)-bit data to a (n+1)-bit serial code, the (n+1)-bit data being generated by adding the discrimination bit to an output of the code converter; and a code deconverter for deconverting the (n+1)-bit parallel data in such a way that some of the n-bits of the (n+1)-bit parallel data located at predetermined positions excluding the discrimination bit are inverted when the discrimination bit is true.