Line coding schemes are used to translate digital data to digital signals. They are mainly used in physical Layer of OSI model during digital transmission. Following types of LCS are implemented in this src code:
- NRZ Unipolar (Non-return to Zero-Unipolar)
- NRZ-L (NRZ Level Polar)
- NRZ-I (NRZ Invert Polar)
- RZ (Return-to-Zero)
- Manchester
- Differential Manchester
- AML (Alternate Mark Inversion)
- 2B1Q
These schemes are implemented in the attached file "lineCodingSchemes.py". I used matplotlib to plot graph of the generated signal. This code has a little issue. In all schemes, we need to append 1 in list "y" to generate correct pattern of the scheme.
You can take this code and try to update it.
Thanks!