Frequency shift code implementation