The present invention relates to a method and a device which substantially reduced the probability of the loss of a character transmitted in digital code, when biphase keying is used (PSK).
It is known that in the telecommunication field one of the systems used for transmitting information messages at a distance is the so called PCM (pulse code modulation).
According to this system, each instant value of the information or each alphanumeric symbol is associated with a particular code which uniquely identifies the instant value or the alphanumeric character associated therewith, so that this value or character can be reproduced at the receiving side.
It is known that the code comprises a given number "n" of "bits", which are of a time interval .tau. and which have one of two electric conditions--called logic states "1" or "0" according to the binary notation. The whole of the bits forming the code is called herinafter "character".
In order to detect the n bits forming each character the message is preceded by a "message beginning" code.
It is known that the distortions or noise introduced by the transmission means can change the character so that it is wrongly interpreted. It is also known that to detect the error the simplest way is to associate with the character a further bit, of such a logic value that the number of logic states 1 in the character becomes even (or odd). When at the receiving side the number of logic states "1" in the character, included the parity bit, is not even (or not odd), there is the so called "parity error" P, and the character is considered as lost. When the transmission gives rise to a double error in a same character, the parity check does not reveal the error, so that the character is accepted but it will be wrongly interpreted.
It is known that the whole of the characters forming the information to be transmitted can be sent to the transmitting means as it has been generated (baseband transmission) or by phase modulating a sine wave carrier. A particular case of this last transmission method is the "biphase" system in which, as is known, the phase of a sine wave carrier, having a period equal to the time allotted to each bit, is shifted by 180.degree. according to the logic state of the bit. If the half sinusoids composing said carrier are considered, and the symbol "A" is associated with the positive half sinusoid whereas the symbol "B" is associated to with the negative one, it is possible for instance to associate logic value "1" with sequence AB and logic value 0 with sequence BA.
If, due to distortions in the transmission system or to noise, the received sequence is AA or BB, the logic value associated with the bit can not be determined; this condition will be hereinafter called "out-of-code bit".
When an out-of-code bit is present, generally the demodulator allots the bit the logic value "1" (or "0") but generates a signal (out-of-code signal), which can be used to make the character with one or more out-of-code bits non valid.
The object of the present invention is to give a method for recovering the character in case of biphase transmission, when the character comprises only one out-of-code bit.
The method according to the invention consists in identifying the out-of-code bits and in complementing the logic value given by the demodulator to the out-of-code bit if the character has at the same time the "parity error"; only if in the character there is parity error with no out-of-code bits, or if there are two or more out-of-code bits, the character is lost.
For a clearer understanding reference is made to the accompanying drawings, in which:
FIGS. 1a-d show the known system of biphase modulation;
FIG. 2 is a block diagram illustrating the method for character recovery according to the invention;
FIG. 3 is a preferred embodiment of the validation circuit; and
FIG. 4 is a preferred embodiment of the circuit generating the clock pulses necessary to decode the biphase signal.
FIG. 1(a) shows in the baseband configuration two characters of a message, each character comprising 7 bits+1 parity bit; FIG. 1(b) shows the same message coded in biphase; FIG. 1(c) shows the biphase signal having no out-of-code bits after the signal has been reformed. FIG. 1(d) shows the same message with two out-of-code bits (respectively the configurations AA and BB, enclosed into the dotted line ellipses) and a wrong bit.
If P.sub.E is the probability that half-wave A is interpreted as B or vice-versa, the probability that a character of 7 information bits+1 parity bit is lost, is improved by using the device according to the invention, and it passes from 16 P.sub.E to about 120 P.sub.E.sup.2. On the contrary, the device according to the invention makes the probability of error in the character slightly worse (that is the error probability is increased), as this probability passes from 28 P.sub.E.sup.4 (without the device) to the value 112 P.sub.E.sup.3. However, as generally the acceptable values of P.sub.2 are very low (<10.sup.-3) the worsening may be considered as negligible in many practical applications.
The following table I shows the differences between a conventional system and the system according to the invention for a character of 7+1 bits. The table is completed by the insertion of the value of the bit error probability (P.sub.bit). A bit error occurs when configurations AB or BA are inverted, that is they become the time sequences BA and AB, respectively.
FIG. 2 is a block diagram of a preferred embodiment of the device according to the invention. It consists of: a demodulator (1) which receives the reformed diphase signal and the clock pulses at a rate .tau./2; two shift registers (2) and (3) with serial input and parallel output, each register having as many cells as the bits of a character are, and a further cell for the parity bit; a logic circuit (4) for parity check; a logic circuit (5) for validation of the character; a plurality of complementing circuits (7), whose number is the same as the number n of bits in the character; a flip-flop latch (6) having as many cells as the number (n) of bits in the character, increased by 1; and a circuit (8) generating the pulses necessary for the operation of the circuits (2), (3), (5) and (6).
The input signals are: the biphase reformed signal which is the information message; the clock pulses whose period is half the bit rate (.tau./2) and a "message beginning pulse" (which is detected from the date stream) delayed by .tau..
The operation of this circuit in the preferred embodiment of FIG. 2 is as follows. The biphase signal is sent to demodulator (1) which, by means of the clock signal coming from an external clock generator, provides two output signals: the data signal D and the signal .epsilon. meaning "out-of-code bit"; the logic values of these signals, according to the time sequence of elements A and B in the bit time .tau., are shown in table II which shows one truth table of the embodiments of the demodulator.
If different truth tables are used for the demodulator, the circuits hereinafter described are accordingly modified without alterations in the base principle of the invention.
Signals .epsilon. and D are sent into shift registers (2) and respectively (3) whose output signals .epsilon..sub.1, .epsilon..sub.2 . . . .epsilon..sub.n, D.sub.1, D.sub.2, . . . D.sub.n are each sent to a combining logic circuit (7).sub.1, (7).sub.2, . . . (7).sub.n.
All output signals of shift register (3), that is D.sub.1, D.sub.2, . . . D.sub.n, D.sub.(n+1) are sent to the parity check circuit (4) whose output P is at logic value "1" or "0" according to whether the number of "1" present at its inputs is even or odd. Also said signal P is sent to the combining logic circuits (7).sub.1, (7).sub.2 . . . (7).sub.n whose truth table is shown in table III. Here, P.ident.1 denotes a parity (or disparity) error in the character.
In the time interval in which the whole character and the parity bit associated thereto occupy n+1 cells of the shift register (3) the logic values of outputs of logics (7).sub.1, (7).sub.2, . . . (7).sub.n are latched in n memories of register (6) so as to be available at the output.
According to the invention, the character stored in (6) is considered not valid in the following cases:
there is parity error, but there are no out-of-code bits;
the out-of-code bits are more than one.
According to a less advantageous variant of the invention as shown in the dotted lines in FIG. 2, (increasing the character error probability when two or more out-of-code bits are present) the character is first identified for the out of code bits and the parity of the character. If there is no parity, the logic value of the bits corresponding to the out of code bits are complemented. The parity is then checked again by the second parity (disparity) check 4'. Only if this second check is not met is the character then inhibited. The following validation logic circuit refers to the preferred embodiment (FIG. 2).
The validation logic circuit (5) of said figure carries out the following tasks:
it checks the number of out-of-code bits in the character;
it decides according to table IV if the character is valid or is to be neglected.
The output signal of said validation logic circuit (5) is sent to the output through a latch that, in the example of FIG. 2, is comprised in the same memory set (6) storing the character.
The actual operation of character neglecting could be performed in the circuits following the device according to the invention.
The preferred embodiment of the validation logic circuit is shown in FIG. 3: here two resettable flip-flops of type D are serially connected and have a common clock input. The clock pulses are the transitions of the clock time at the bit rate (period .tau.) combined in AND Logic with .epsilon., that is with the presence of out-of-code bits. Input I.sub.1 of the first flip-flop is permanently connected to the electrical level corresponding to logic value "1". Outputs U1 and U2 of the flip-flops are logically combined with P to meet table V.
The two "D" flip-flops are reset immediately after the transfer pulse coming from (8) has latched the memory (6) with the contents of complementing circuits (7) and of the out-put of validation logic circuit (5).
FIG. 4 shows a preferred embodiment of the pulse generator: a synchronous divide by 16 receives the clock pulses of period .tau./2. The clock pulses consist of square waves whose positive front coincides with the central point of each element (A,B) forming the biphase modulated signal.
The divide by 16 is reset in position "1"1"1"1" by the "message beginning" code which, as known, precedes any digital transmission. The phase inverted output signal of the first flip-flop, of the divide by 16 (Q.sub.0) is used as pulse signal (positive edge) for blocks (3), (2) and (5) in FIG. 2; the positive edge of the output of the pulse obtained by logical AND of signals .tau./2, Q.sub.0, Q.sub.1, Q.sub.2, Q.sub.3 is the instant of transfer of the logic state of the inputs of block (6) into the memories of the same block (6) whereas the output pulse obtained by logic AND of outputs Q.sub.0, Q.sub.1, Q.sub.2, Q.sub.3 with the phase inverted clock input signal .tau./2 is the reset signal for the "D" type flip-flops of block (5).
Without any inventive effort, all circuits described in FIGS. 2, 3 and 4 can be realized by commercially available integrated circuits on the basis of tables I to V and of the preceding disclosures; in the tables the invention gist is not altered by the inversion of the logic states in each column.