Code covered by the BSD License  

Highlights from
Manchester to standard logic decoder

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 1.79 KB File ID: #23353
image thumbnail

Manchester to standard logic decoder

by Robert

 

18 Mar 2009

Converts a manchester encoded string to its standard logic equivalent.

| Watch this File

File Information
Description

MANCHESTER2BIN(inputData) decodes a manchester serial sequence to its corresponding binary value.

Decoding is done according to G.E. Thomas' convention (high-to-low '01' = '1', low-to-high '10'= 0), assuming LSB first transmission.

Syntax: decodedData = MANCHESTER2BIN(inputData)

Where:
inputData = string with binary values which length must be EVEN, with the MSB at at the left-most position (index = 1)
decodedData = string with binary values which length is half of inputData with the MSB at the left-most position

If the inputData sequence is not a valid manchester code MANCHESTER2BIN
will return an empty string.

     Example:
          >>decodedData = manchester2bin('01011010')
   
         decodedData =
         1100

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
433 Robert 19 Mar 2009 13:40:12
binary Robert 19 Mar 2009 13:40:12
communication Robert 19 Mar 2009 13:40:12
decoder Robert 19 Mar 2009 13:40:12
encoder Robert 19 Mar 2009 13:40:12
rf modules Robert 19 Mar 2009 13:40:12
manchester Robert 19 Mar 2009 13:40:12
encoder Savas 23 Sep 2010 10:58:58
binary Savas 23 Sep 2010 10:59:11
communication Savas 23 Sep 2010 10:59:12

Contact us at files@mathworks.com