微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > Manchester encoding/decoding?

Manchester encoding/decoding?

时间:04-10 整理:3721RD 点击:
What exactly is this method of encoding/decoding? Is there any .asm code examples for tx/rx modules from laipac?

I'm using TLP434A and RLP434.

Are you doing this in software or hardware?

Encoding a manchester signal is very easy. To encode a NRZ signal to a manchester signal, you simply xor the NRZ signal with a clock running 2 times the baud clock.

For example:
00 00 00 11 11 00 00 --->NRZ data
01 01 01 01 01 01 01 --->2x Baud clock
01 01 01 10 10 01 01 --->Manchester data

Decoding a Manchester signal is more complicated but still not too hard. You'll also need a clock running 2x the baud clock. From a state machine point of view

case(STATE)
A: NEXT_STATE = Input ? A : B;
B: NEXT_STATE = Input ? A : C;
C: NEXT_STATE = Input ? D : C;
D: NEXT_STATE = Input ? A : C;
endcase


While you are in state A or B the decoded data is a '1'. While you are in state C or D the decoded data is a '0'.

All of the above assumes a falling edge is a '1' and a rising edge is a '0'

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top