Method of decoding a digital signal which is encoded as a code sequence in Manchester code and which is submitted as a sequence of frames by a data source and received by a decoder, characterized in that the decoder distinguishes between the high state and the low state of the signal by synchronizing itself both for the high halfbit and the low halfbit during the period of two start bits of the frame, and that the times t1, t2, calculated during the synchronization are used during the interpretation of the following bits of the frame, where t1 denotes the first duration time between a first signal level change and a second signal level change, the first and the second signal level change being in opposite directions, and where t2 denotes the second duration time between the second signal level change and a third signal level change, the second and the third signal level change being in opposite directions, the method further comprising the following steps: a) determine the first duration time, t1, and the second duration time, t2, based on the two start bits, b) compare the first duration time, t1, of step a) with a preset time first value, T1, and the second duration time, t2, with a preset time second value, T2; c) i) if the first duration time, t1, differs from the first value, T1, by more than a first threshold, dt1, or if the second duration time, t2, differs from the second value, T2, by more than a second threshold, dt2, then set an error flag, discard the present code sequence and request and/or expect a new code sequence to be submitted from the data source, ii) if the first duration time, t1, differs from the first value, T1, by less than a first threshold, dt1, and if the second duration time, t2, differs from the second value, T2, by less than a second threshold, dt2, then the present code sequence will be accepted and decoded according to the Manchester code which is used for encoding, and after the acceptance of the code sequence, the preset time value, T1, T2, is replaced by the corresponding duration time, t1, t2, which was determined in step a), and a new code sequence is requested and/or expected from the data source and d) proceed with step a). a) determine the first duration time, t1, and the second duration time, t2, based on the two start bits, b) compare the first duration time, t1, of step a) with a preset time first value, T1, and the second duration time, t2, with a preset time second value, T2; c) i) if the first duration time, t1, differs from the first value, T1, by more than a first threshold, dt1, or if the second duration time, t2, differs from the second value, T2, by more than a second threshold, dt2, then set an error flag, discard the present code sequence and request and/or expect a new code sequence to be submitted from the data source, ii) if the first duration time, t1, differs from the first value, T1, by less than a first threshold, dt1, and if the second duration time, t2, differs from the second value, T2, by less than a second threshold, dt2, then the present code sequence will be accepted and decoded according to the Manchester code which is used for encoding, and after the acceptance of the code sequence, the preset time value, T1, T2, is replaced by the corresponding duration time, t1, t2, which was determined in step a), and a new code sequence is requested and/or expected from the data source and i) if the first duration time, t1, differs from the first value, T1, by more than a first threshold, dt1, or if the second duration time, t2, differs from the second value, T2, by more than a second threshold, dt2, then set an error flag, discard the present code sequence and request and/or expect a new code sequence to be submitted from the data source, ii) if the first duration time, t1, differs from the first value, T1, by less than a first threshold, dt1, and if the second duration time, t2, differs from the second value, T2, by less than a second threshold, dt2, then the present code sequence will be accepted and decoded according to the Manchester code which is used for encoding, and after the acceptance of the code sequence, the preset time value, T1, T2, is replaced by the corresponding duration time, t1, t2, which was determined in step a), and a new code sequence is requested and/or expected from the data source and d) proceed with step a).