Library for Manchester encoding using UART's hardware.

Dependents:   ManchesterUART_Transmitter ManchesterUART_Receiver

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.

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Wed Oct 17 16:16:34 2018 +0000
Parent:
1:b869674fe56e
Commit message:
Number of start patterns in preamble can be set.

Changed in this revision

ManchesterUART.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r b869674fe56e -r 8cb6a0a77e56 ManchesterUART.cpp
--- a/ManchesterUART.cpp	Mon Jul 30 09:38:03 2018 +0000
+++ b/ManchesterUART.cpp	Wed Oct 17 16:16:34 2018 +0000
@@ -222,3 +222,4 @@
 
     return decoded;
 }
+