Firmware for µC based dc-motor control. Electronics aprentice project @ GSI Darmstadt