English
Language : 

C8051F960-B-GM Datasheet, PDF (210/492 Pages) Silicon Laboratories – Ultra Low Power 128K, LCD MCU Family
C8051F96x
15.3. Three-out-of-Six Encoding
Three out of six encoding is similar to Manchester encoding. In Three-out-of-Six encoding a nibble is
encoded as a six-bit symbol. Four nibbles are encoded as 24-bits (three bytes).
Two bytes of data to be encoded are written to ENC0M and ENC0L. The MODE bit is set to 1 for Three-
out-of-Six encoding. Setting the ENC bit will initiate encoding.
After encoding, the three encoded bytes are in ENC2-0.
Table 15.4. Three-out-of-Six Encoding Nibble
Input
Encoded Output
nibble
symbol
dec
hex
bin
bin
dec
hex
0
0
0000
010110
22
16
1
1
0001
001101
13
0D
2
2
0010
001110
14
0E
3
3
0011
001011
11
0B
4
4
0100
011100
28
1C
5
5
0101
011001
25
19
6
6
0110
011010
26
1A
7
7
0111
010011
19
13
8
8
1000
101100
44
2C
9
9
1001
100101
37
25
10
A
1010
100110
38
26
11
B
1011
100011
35
23
12
C
1100
110100
52
34
13
D
1101
110001
49
31
14
E
1110
110010
50
32
15
F
1111
101001
41
29
octal
26
15
16
13
34
31
32
23
54
45
46
43
64
61
62
51
210
Rev. 1.0