Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ManchesterUART_Transmitter ManchesterUART_Receiver
Homepage
Manchester encoding using UART's hardware¶
This library implements Manchester code using UART. Each data byte is encoded into two bytes representing two nibbles of the original data. UART's hardware is then used to generate the Manchester encoded bit stream. Prior to decoding, the receiver converts the received bit stream to bytes using its UART. Start and stop patterns are sent to identify the boundaries (begin and end) of a data frame.
ACKNOWLEDGEMENT: The library is based on an article published by Adrian Mills.
Import programManchesterUART_Transmitter
Transmitter demo for the Manchester encoding library using UART's hardware.
Import programManchesterUART_Receiver
Receiver demo for the Manchester encoding library using UART's hardware.
NOTE: To perform a simple test (without radio link) connect the txPin on transmitter board to the rxPin on the receiver board and make sure that grounds are also connected one another.