TMS320F240 DSP-based SRM drive