Patent ID: 7885776

Claim:
A waveform generator for generating an analog signal, comprising: a data changing section which changes an input data sequence, which is a sequence of binary data and which is to be modulated to the signal that the waveform generator should generate, to generate an after-change data sequence such that in the signal to be obtained by MSK modulation, a residual phase obtained by dividing an initial phase of the signal by 2π and a residual phase obtained by dividing a final phase of the signal by 2π are continuous; a waveform generating section which generates basic waveform data representing a waveform corresponding to the signal obtained by subjecting the after-change data sequence to MSK modulation; and an output section which outputs the signal repeating the waveform represented by the basic waveform data, wherein the data changing section includes: a phase difference calculating section which calculates a phase difference between an initial phase and a final phase of a waveform to be obtained by subjecting the input data sequence, which includes an even number of symbols, to the MSK modulation; and an inverting section which obtains the after-change data sequence by inverting data values of an odd number of symbols included in the input data sequence in a case where the phase difference is not an integer multiple of 2π, and obtains the after-change data sequence by inverting data values of an even number of symbols included in the input data sequence in a case where the phase difference is an integer multiple of 2π.