A DSP-Based Resolver-To-Digital Converter for High-Performance Electrical Drive Applications