How to program stepper motor and DC motor run at the same time?

Thanks for comment .I already solve the problem by separate the DC motor to another source ,just give it direct supply to run .And the rotary encoder only just can read the velocity from shaft DC motor.But the LCD appear junk characters if the DC running. What should need to do or adjust?