Although the inverters have traditionally been designed as analog circuitry, digital inverters are now preferred. These devices use low-cost microcontrollers or digital signal processors (DSP) and offer sophisticated control algorithms with highly flexible software, the ability to add user interfaces, reduce components, introduce testing procedures, and increase reliability.Generation of DSP-based patterns to control voltage source inverters substantially helped the development of modern electric drives used in various applications. Although the DSP control is well known, there are few papers that cover in detail the control signal generation methodology.Compared to the sinus PWM, the space vector modulation (SVM) present more advantages, (like frequency commutation, implementation…etc..) Specially, in machine direct control strategy: direct torque control or direct power control. This paper presents theoretical and experimental aspects for DSP-based algorithm to generate SVM signals. The SVM generation algorithm is written in Assembly language so it can be reused easily, in addition to the flexibility it provides in terms of changing the SVM switching frequency and the fundamental frequency of the inverter output voltage.