Manchester & differential Manchester encoder