We develop an evolutionary fuzzy proportional-integral-derivative (PID) controller for a permanent magnet synchronous motor (PMSM). We first consider a fuzzy PID control design problem based on the common control engineering knowledge that good transient performances can be obtained by increasing the P and I gains and decreasing the D gain when the transient error is big. Then we give an evolutionary algorithm (EA) to autotune the control parameters of the fuzzy PID controller. We implement the proposed EA-based fuzzy PID control controller in real time on a Texas Instruments TMS320F28335 floating-point DSP. We also give simulation and experimental results to show the effectiveness of the proposed intelligent digital control system under abrupt load torque variation using a prototype PMSM.