FLEX Message Word Definitions
Motorola FLEX Overview A-29
the ((CAPCODE – 2,068,481) modulo 32768) + 1. This value is converted to a 21-bit binary number,
which becomes the information bits in the (31,21) BCH code-word transmitted over the air as the first
address word.
The second word of the long address is determined by first calculating the integer portion of the
(CAPCODE – 2,068,481) divided by 32,768. This value is then subtracted from 2,097,151 (equivalent
to the one’s complement of the value in binary), and converted to a 21-bit binary number, which
becomes the information bits in the (31, 21) BCH code-word transmitted over the air as the second
address word.
A.3.7.4.3 Long CAPCODE 1,075,843,073 to 3,223,326,720
Long address sets 1–3 and 1–4 are in this range. The first word of the long address is calculated
following the same rules for the long addresses set 1–2. The second long address word is determined
by subtracting 2,068,481 from the CAPCODE, the resultant number is divided by 32,768 with the
integer portion added to 1,933,312. This value is converted to a 21-bit binary number, which becomes
the (31,21) BCH code-word transmitted over the air as the second address word.
A.3.7.4.4 Long CAPCODE 3,223,326,721 to 4,297,068,542
Long address set 2–3 is in this range. The first word is determined by subtracting 2,068,479 from the
CAPCODE. The remainder of dividing by 32,768 is retained (i.e., modulo 32,768). This value is then
added to 2,064,383 with the result converted to a 21-bit binary number, which becomes the
information bits in the (31,21) BCH code-word transmitted over the air as the 1st address word.
The second word is determined by subtracting 2,068,479 from the CAPCODE and finding the integer
portion after dividing by 32,768. This value is then added to 1,867,776 and converted to a 21-bit
binary number, which becomes the (31,21) BCH code-word transmitted over the air as the second
address word.
A.3.7.5 Binary to CAPCODE Conversion
With the address code-word values that are transmitted over the air, the CAPCODE can be calculated
by performing the inverse of the above-specified process. As an example, the short address code-word
is converted to decimal and the number 32,768 is subtracted to arrive at the 7-digit address portion of
the CAPCODE. For the two word long address set 1–2, the address word 1 is first converted from
binary to decimal. The second address word is then complemented, (or subtracted from 2,097,151
decimal) and converted to a decimal. This value is multiplied by 32,768, added to 2,068,480, and then
added to address word 1. The result is the address portion of the FLEX CAPCODE.
A.3.7.6 CAPCODE Assignments
Table A-24 defines the address usage assignment. All addresses not listed in this table are not defined
and reserved for future use.
Table A-24. CAPCODE Assignment Table
CAPCODE Address Value Description
0,000,000,000 Illegal
0,000,000,001 to 0,001,933,312 Short addresses
0,001,933,313 to 0,001,998,848 Illegal
0,001,998,849 to 0,002,009,087 Reserved for future use