This application note describes a method of driving a
sensored Permanent Magnet Synchronous Motor (PMSM) with sinusoidal currents controlled by a dsPIC30F Digital Signal Controller (DSC). The motor
control firmware uses the dsPIC30F peripherals, while
the mathematical computations are performed by the
DSP engine. The firmware is written in ‘C’ language,
with some subroutines in assembly to take advantage
of the special DSP operations of the dsPIC30F.