A control device (12) of a polyphase synchronous rotary electrical machine (1) adapted to implement a method for controlling a polyphase synchronous rotary electrical machine (1), said method comprising a step of controlling phase currents of said electrical machine (1) by a full-wave control (C, C2, C1) generated by a pulse width modulated (PWM) signal (16) with a signal frequency (F) higher than an electrical frequency of said electrical machine, said control device (12) comprising an electronic control unit (7) controlling an inverter (3) connected to an on-board electrical network (2) supplied by a battery (B+), and configured to be connected to phase windings (u, v, w) of said polyphase synchronous rotary electrical machine (1), said electronic control unit (7) comprising:
- acquisition means (26) for acquisition of a speed of rotation (S2) of said polyphase synchronous rotary electrical machine (1);
- a peripheral (8) for generation of pulse width modulated signals at a predetermined signal frequency (F) comprising at least one programming register of a duty cycle (α) and alignment (24, 25) of said pulse width modulated signal (16);
- means for comparison of said speed of rotation (S2) with a predetermined nominal speed of rotation;
- a central processing unit (9) executing a first subroutine or a second subroutine periodically charging said programming register in order to generate said pulse width modulated signals (16) to control said inverter such as to produce first, pulse width modulated phase voltages (U1, V1, W1) or second, full-wave phase voltages (U2, V2, W2) according to a state of said means for comparison;
- a memory (10) for storing said first and second subroutines.