Tool to decode/encode with AMI. The (bipolar) Alternate Mark Inversion is a line coding for binary signal with a 3-level system representing logical ones by an impulsion with alternative positive or negative polarity.
Alternate Mark Inversion Code - dCode
Tag(s) : Telecom
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The AMI code replaces each logical 1 by a polarity inversion noted with + (plus) and - (minus). Some notations use +1 and -1 (instead of + and -) but the vast majority of the time, the 1 is ignored as, it is implied.
For each logical 0 (zero), nothing to do: 0 is coded, and for each logical 1 (one), a polarity impulsion is coded: alternatively (+ or -), beginning by +.
Example: The binary/logical signal 101 is coded +0-:
1 is coded +
0 remains 0
1 becomes - (polarity changed)
AMI code decryption process replaces each + or - by a logical 1, the rest (the zeros) is 0.
Example: +0- is decoded 101
The signal is bipolair (positive and negative) and has three levels, that can be coded with 3 distinct characters, generally +, - and 0. Sometimes the 1 is still written after + and -.
There is never two consecutive upper ++ or lower -- levels when coding.
A signal beginning with a negative polarity starts with a 1 at the beginning of the plain signal and causes a suppression of the first + of the coded signal.
In the 60's, after the T1 (T-carrier level 1).
Reminder : dCode is free to use.
The copy-paste of the page "Alternate Mark Inversion Code" or any of its results, is allowed as long as you cite dCode!
Cite as source (bibliography):
Alternate Mark Inversion Code on dCode.fr [online website], retrieved on 2023-02-08,