Hello Georgio,
It is not possible to use DMA transfer for PWM values because the MCU not comprises the special DMA module.
For motor control application the PWM frequency is about 20kHz – it is still low frequency. The most important for proper running control loop is to build SW code in asm with lowest possible steps. The PWM duty cycle result musts be immediately written into PWM module and LDOK signal defined by PWM frequency moves the new value into PWM channel counter. So the DMA transfer is not usable for this application.
The DMA is needed for high speed transfer values from the look-up table (constants) loaded in RAM for the periodic signal generation.
Best Regards,
Stano.