A data encoding and decoding method capable of lowering signal power
spectral density for a binary data transmission system is disclosed. The
data encoding method includes receiving binary data, performing adaptive
mode tracking encoding for the binary data to generate a first encoding
result, performing bit stuffing encoding for the first encoding result to
generate a second encoding result, performing bit stationary state
resuming encoding for the second encoding result to generate a third
encoding result, and outputting the third encoding result.