Design of a Discrete PID Controller for a DC Motor