conversion to or from pulse width coding