Introduction - If you have any usage issues, please Google them yourself
In this case the code for the microcontroller bipolar communications, can also be derived for multi-level communication. There simulation attached, hope to help a friend in need.