DCmotor Hall effect encoder programming

Well first we need to know what you've got - information/datasheets on the motor, controller and encoder would
be useful, together with how you have wired them up (or intend to).