 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Skybuck Flying Guest
|
Posted: Thu Aug 04, 2005 10:49 am Post subject: Skybuck's universal code |
|
|
I have finally figured out what the hell it is I invented :)
It's another universal code:
http://en.wikipedia.org/wiki/Universal_code
I shall name this code:
Skybuck's universal code (pseudo name)
Houppermans's universal code (real name )
Data bits:
a,a,a,a,a,a,b,b,b,b,b,c,c,c,c
Marker bits:
0,0,0,0,0,1,0,0,0,0,1,0,0,0,1
Interleaved data and markers bits:
a0a0a0a0a0a1b0b0b0b0b1c0c0c0c1
The above serial information stream contains 3 information fields. The
fields A,B,C in binairy digits (bits)
( a,a,a,a,a,a,b,b,b,b,b,c,c,c,c ).
The information stream is interleaved (=mixed) with "marker" bits. (the
zeros and ones)
0 means another bit follows for the information field.
1 means the last bit has been reached for the information field.
To read field A a piece of software or hardware can use the following logic:
repeat
Read Data_Bit
Read Marker_Bit
until Marker_Bit = 1;
Thereafter the same logic can be used to read the next field.
Bye,
Skybuck.
|
|
| Back to top |
|
 |
Skybuck Flying Guest
|
Posted: Fri Aug 05, 2005 5:13 pm Post subject: Re: Skybuck's universal code |
|
|
I have updated this section to prevent any further confusion:
"
Data bits:
a,a,a,a,a,a,b,b,b,b,b,c,c,c,c (these bits can have value 0 or 1)
"
(Since some people though these aaaa, bbb, ccc bits behaved like unary
encoding (all ones or all zeros) This is not the case.
These bits can have any binary value, a zero or a one.
I have also included a new part for further clearity:
New part:
"
The position of the bit in the information stream identifies if it is a
marker bit or a data bit.
Positions:
0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2
0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9
Information stream:
a,0,a,0,a,0,a,0,a,0,a,1,b,0,b,0,b,0,b,0,b,1,c,0,c,0,c,0,c,1
The data bits are located on "even" positions. (0,2,4,6,8,10,12,14,16,18,20,
etc )
The marker bits are located on "oneven" positions. (
1,3,5,7,9,11,13,15,17,19, etc )
By reading a data bit, marker bit, data bit, marker bit, etc they can be
seperated from each other.
"
Bye,
Skybuck.
|
|
| Back to top |
|
 |
Skybuck Flying Guest
|
Posted: Fri Aug 05, 2005 5:27 pm Post subject: Re: Skybuck's universal code |
|
|
This is probably even a better description ;)
"
Data bits:
a,a,a,a,a,a,b,b,b,b,b,c,c,c,c (each data bit can be a zero or a one)
"
|
|
| Back to top |
|
 |
Skybuck Flying Guest
|
Posted: Fri Aug 05, 2005 5:52 pm Post subject: Re: Skybuck's universal code |
|
|
Hi,
And finally what better way than to explain it with an example ;)
"
An example:
Data bits for field A = 1,0,0,0,1,0
Data bits for field B = 1,1,1,0,1
Data bits for field C = 1,0,0,1
Market bits for field A = 0,0,0,0,0,1
Market bits for field B = 0,0,0,0,1
Market bits for field C = 0,0,0,1
Data bits and marker bits interleaved for field A: 1,0,0,0,0,0,0,0,1,0,0,1
Data bits and marker bits interleaved for field B: 1,0,1,0,1,0,0,0,1,1
Data bits and marker bits interleaved for field C: 1,0,0,0,0,0,1,1
Interleaved field A,B,C stuck together (final encoded bitstream):
1,0,0,0,0,0,0,0,1,0,0,1,1,0,1,0,1,0,0,0,1,1,1,0,0,0,0,0,1,1
"
Bye,
Skybuck
|
|
| Back to top |
|
 |
Riki Wiki Google Guest
|
|
| Back to top |
|
 |
Skybuck Flying Guest
|
Posted: Mon Aug 08, 2005 8:50 am Post subject: Re: Skybuck's universal code |
|
|
"Riki Wiki Google" <auto.del (AT) gmail (DOT) com> wrote
In rather not take part in broken newsgroups.
What if somebody wants to post a reply etc... via a local news server.
I will never see that reply nor will others ?
But thx anyway for the link ;)
Bye,
Skybuck.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|