A digital code using an eleven-wire interface that is used to transmit uncorrected barometric altitude between an encoding altimeter or analog air data computer and a transponder. It is a modified form of a Gray Code and is sometimes referred to as a "Gray Code" in avionics literature.[1]
The code was named in memory of the late Ronald Lionel Gillham, the UK's representative to the IATA committee developing the specification for the second generation of Air Traffic Control System, known in the UK as "Plan Ahead", who died suddenly in March 1968. Mr Gillham was said to have had the idea of using a modified Gray Code while at a family dinner.
Altitude Encoder
The encoder uses bits designated D1 D2 D4 A1 A2 A4 B1 B2 B4 C1 C2 C4.[2]
Different classes of altitude encoder do not use all of the available bits. All use the A, B & C bits, increasing limits require more of the D bits.
Up to and including 30700ft does not require any of the D bits.
Up to and including 62700ft requires D4.
Up to and including 126700ft requires D4 & D2.
Note that D1 is never used.
The datum used by altitude encoders is -1200ft although many will not output anything lower than -1000ft.
Note that the altitude code output by a standard altitude encoder is a pressure altitude. That is to say it is always with respect to a pressure datum of 1013.2mBar (Hectopascals) or 29.92inHg. It does not indicate the height above sea level (altitude) or the ground (height). Pressure altitudes are referred to as Flight Levels and are expressed to the nearest 100ft.
Decoding the Gillham Code
Bits D1 - B4 use a standard Gray code to store the number of 500ft increments.
Bits C1 - C4 use a non-linear reflected Gray code to store the number of 100ft increments +1. The values when converted to decimal follow this pattern: 1 2 3 4 7 7 4 3 2 1 1 2 3 4 7 ....
The C bits must be converted from Gray to binary, the 7 changed to a 5 and the reflected order changed when the 500ft increment is even.
The number resulting from combining the above gives the flight level above the minimum datum.
The Gillham code can be decoded using various methods. Standard techniques use hardware [3] or software solutions. The latter often uses a look up table but an algorithmic approach can be taken.[4]
References