Design of Resolver-To-Digital Converter for Motor Control Applications