Design Of Low-Cost High-Accuracy Microcontroller-Based Resolver Emulator