English
Language : 

C8051F960-B-GM Datasheet, PDF (209/492 Pages) Silicon Laboratories – Ultra Low Power 128K, LCD MCU Family
C8051F96x
15.2. Manchester Decoding
Two bytes of Manchester data are written to ENC0M and ENC0L sfrs. Then the DEC bit is set to initiate
decoding. After decoding the READY bit will be set. If the data is not a valid encoded Manchester data, the
ERROR bit will be set, and the output will be all FFs.
The encoding and decoding process should be symmetric. Data can be written to the ENC0L sfr, then
encoded, then decoding will give the original data.
bin
01010101
01010110
01011001
01011010
01100101
01100110
01101001
01101010
10010101
10010110
10011001
10011010
10100101
10100110
10101001
10101010
Table 15.3. Manchester Decoding
Input
Decoded Output
Byte
Nibble
hex
dec
dec
hex
bin
55
85
15
F
1111
56
86
14
E
1110
59
89
13
D
1101
5A
90
12
C
1100
65
101
11
B
1011
66
102
10
69
105
9
6A
106
8
95
149
7
96
150
6
A
1010
9
1001
8
1000
7
0111
6
0110
99
153
5
9A
154
4
A5
165
3
A6
166
2
A9
169
1
AA
170
0
5
0101
4
0100
3
0011
2
0010
1
0001
0
0000
Rev. 1.0
209