Method for modulating a signal comprising first binary data; the first binary data comprising a sequence of first binary digits a(k); each first binary digit a(k) being able to take on either a first binary digit value or a second binary digit value; the method comprising, - generating ternary data; the ternary data comprising a sequence of ternary digits α(k); and each ternary digit α(k) being able to take on a first, second or third ternary digit value; and - modulating a phase of the signal using the ternary data; the phase of the signal being able to take on M different phase states, where M > 2; the first, second and third ternary digit values corresponding to first, second and third state transitions between the M phase states; a phase state being maintained in the first state transition; the second state transition and the third state transition causing a change in the phase state; and the ternary data being generated in such a way that • ternary digits α(k) having the first ternary digit value are assigned to all binary digits a(k) having the first binary digit value; • ternary digits α(k) having the second or third ternary digit values are assigned to all binary digits a(k) having the second binary digit value, in such a way that in the sequence of ternary digits α(k) the second ternary digit value does not directly follow the third digit value and vice versa; characterised in that when the ternary data are generated the second or third ternary digit values are further assigned as a function of second binary data; - the second binary data comprising a second binary digit x(n); and - a ternary digit α(k) taking on the second ternary digit value or the third ternary digit value as a function of the second binary digit x(n). - generating ternary data; the ternary data comprising a sequence of ternary digits α(k); and each ternary digit α(k) being able to take on a first, second or third ternary digit value; and - modulating a phase of the signal using the ternary data; the phase of the signal being able to take on M different phase states, where M > 2; the first, second and third ternary digit values corresponding to first, second and third state transitions between the M phase states; a phase state being maintained in the first state transition; the second state transition and the third state transition causing a change in the phase state; and the ternary data being generated in such a way that • ternary digits α(k) having the first ternary digit value are assigned to all binary digits a(k) having the first binary digit value; • ternary digits α(k) having the second or third ternary digit values are assigned to all binary digits a(k) having the second binary digit value, in such a way that in the sequence of ternary digits α(k) the second ternary digit value does not directly follow the third digit value and vice versa; characterised in that when the ternary data are generated the second or third ternary digit values are further assigned as a function of second binary data; • ternary digits α(k) having the first ternary digit value are assigned to all binary digits a(k) having the first binary digit value; • ternary digits α(k) having the second or third ternary digit values are assigned to all binary digits a(k) having the second binary digit value, in such a way that in the sequence of ternary digits α(k) the second ternary digit value does not directly follow the third digit value and vice versa; - the second binary data comprising a second binary digit x(n); and - a ternary digit α(k) taking on the second ternary digit value or the third ternary digit value as a function of the second binary digit x(n).