Motor Control with Embedded Coder for Microchip MCUs