EC11 encoder based on STM32 program source code