Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Modified AMI code
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==HDB3 (European E-carrier) <span class="anchor" id="HDB3"></span>== Used in all levels of the European [[E-carrier]] system, the '''high density bipolar of order 3 (HDB3)''' code replaces any instance of 4 consecutive 0 bits with one of the patterns "{{mono|000V}}" or "{{mono|B00V}}". The choice is made to ensure that consecutive violations are of differing polarity; i.e., separated by an odd number of normal {{mono|+ or β}} marks. {|class=wikitable style="text-align:center;" |+ HDB 3 coding of 0000{{sub|2}} ! Parity of +/β bits<br/>since previous V !! Pattern !! Previous pulse !! Coded |- |rowspan=2| Even || rowspan="2" | B00V | + || β00β |- | β || +00+ |- |rowspan=2| Odd || rowspan="2" | 000V | + || 000+ |- | β || 000- |} These rules are applied on the code as it is being built from the original string. Every time there are 4 consecutive zeros in the code they will be replaced by either 000β, 000+, +00+ or β00β. To determine which pattern to use, one must count the number of pluses (+) and the number of minuses (β) since the last violation bit V, then subtract one from the other. If the result is an odd number then 000β or 000+ is used. If the result is an even number then +00+ or β00β is used. To determine which polarity to use, one must look at the pulse preceding the four zeros. If 000V form must be used then V simply copies the polarity of last pulse, if B00V form must be used then B and V chosen will have the opposite polarity of the last pulse. ===Examples=== Here are some examples of bit streams codes with AMI and HDB3. All assume the same starting conditions: the previous 1 bit was β, and the previous violation was an even number of 1 bits ago. (E.g. the preceding bits could have been ++β.) {| | '''Input''' || {{mono|10000110}}{{sub|2}} |- | '''AMI''' || {{mono|+0000β+0}} |- | '''HDB3''' || {{mono|+B00Vβ+0}} |- | || {{mono|+β00β+β0}} |} {| | '''Input''' || {{mono|101000001100001100000001}}{{sub|2}} |- | '''AMI''' || {{mono|+0β00000+β0000+β0000000+}} |- | '''HDB3''' || {{mono|+0β000V0+βB00Vβ+B00V000+}} |- | || {{mono|+0β000β0+β+00+β+β00β000+}} |} {| | '''Input''' || {{mono|1010000100001100001110000111100001010000}}{{sub|2}} |- | '''AMI''' || {{mono|+0β0000+0000β+0000β+β0000+β+β0000+0β0000}} |- | '''HDB3''' || {{mono|+0-000V+000V-+B00V-+-000V+-+-B00V+0-B00V}} |- | || {{mono|+0-000-+000+-+-00-+-+000+-+-+-00-+0-+00+}} |} {| | '''Input''' || {{mono| 10000000000}}{{sub|2}} |- | '''AMI''' || {{mono|+000000000}} |- | '''HDB3''' || {{mono|+B00VB00V00}} |- | || {{mono|+-00-+00+00}} |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)