APPLICATION OF MICROPROCESSORS TO AC AND DC ELECTRIC-MOTOR DRIVE SYSTEMS