EMS22A encoder to PC serial port (USART) data transfer through SPI interface with STM32F103RC microcontroller