https://mevihub.com/dc-motor-speed-control-by-potentiometer-using-tms320/